[jQuery] UI replacing background image after resizing, how??

2009-08-16 Thread webmas...@terradon.nl
Hi all, i have a resizable (grid 50) div with a background image. When i resize, i want to change my background image, like: bg400.png for bg350.png. But how do i detect the new heigth/width and how do i replace the background image? Thanks in advance for any answer!

[jQuery] ajaxSubmit disabled fields using Forms plugin

2009-08-16 Thread nickfrancesch...@gmail.com
the HTML spec says that disabled fields aren't submitted during post- back... but I want them to be submitted with ajaxSubmit using the Forms plugin. is this possible with an option now? or something I have to work around?

[jQuery] Overriding default checkbox behavior

2009-08-16 Thread Jay
Hello, I'm working on an application wherein I have a checkbox that triggers an ajax call to update a database. Should the database operation fail, I want the checkbox to retain its old state. I'm having trouble making this work. The closest I've gotten is that if I bind the 'click' event of t

[jQuery] autocomplete

2009-08-16 Thread ser999
I am new to using jQuery and the autocomplete widget (which is great). I would like to add a button with an event to show ALL availbale options. Kind of like regular dropdown element. Is there a way to do this? Thanks Sergey

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-16 Thread nipponese
This it perfect for me but it brings up another issue: I am using a left-right scroller and as far as I can tell, the fx option only allows for one type of transition animation (in my case, I am using fx: 'scrollLeft', so even when I hit the prev button, it scrolls to the right when it should scr

[jQuery] [validate] and [tooltip] integration

2009-08-16 Thread Matthew
I am having trouble getting tooltips to work with the generated custom error message created by the validator plugin. I noticed that the tooltips do not work on dynamically generated elements unless the $ ('a').tooltip(); is called sometime after the element is actually created. My custom error m

[jQuery] Re: jQuery Cycle - Get Current Slide Number

2009-08-16 Thread noahT
This it perfect for me but it brings up another issue: I am using a left-right scroller and as far as I can tell, the fx option only allows for one type of transition animation (in my case, I am using fx: 'scrollLeft', so even when I hit the prev button, it scrolls to the right when it should scro

[jQuery] how do you add your site to the "sites using jQuery" list?

2009-08-16 Thread webster.net
when going to the 'edit' link on http://docs.jquery.com/Sites_Using_jQuery_UI it says it's locked from editing. Is there any way to add another site to that list of successful jQuery sites?

[jQuery] Re: FF processes this line fine; IE doesn't...why?

2009-08-16 Thread Rick Faircloth
Thanks, Keegan! I had to modify the query string to: var filePath = '../components/propertiesDisplay.cfm?' + new Date().getTime(); but that's working perfectly! A life saver! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Kee

[jQuery] [validate] How to focus on error container above the form after the form tries to submit

2009-08-16 Thread Manoj
Hi everyone, apologies for the re-post but I forgot to add 'validate' to the Subject: I have the validate plugin working for my form so that on submit the errors are all displayed in a container div above my form. By default the focus goes to the first input field that didn't pass validation, but

[jQuery] Re: FF processes this line fine; IE doesn't...why?

2009-08-16 Thread KeeganWatkins
Can you be sure that the response isn't being cached in IE? Even if the .cfm response is changing, you might try to bust the cache with a semi-random query string, i.e: var path = '../components/propertiesDisplay.cfm?' + (new Date).getMilliseconds(); $("#hiddenResult").load(path, null, initPagina

[jQuery] Re: .each() loop with custom function

2009-08-16 Thread andrew.croce
As I said, I am new to JQuery and javascript in general, so I am not really aware of the "normal" ways. I am trying to create code that is accessible and understandable to a wider group of people, and it seems a good way to do that is to use custom functions related to the job at hand. That way I

[jQuery] Re: FF processes this line fine; IE doesn't...why?

2009-08-16 Thread Rick Faircloth
Thoughts on this anyone? From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Saturday, August 15, 2009 8:10 PM To: jquery-en@googlegroups.com Subject: [jQuery] FF processes this line fine; IE doesn't...why? Does IE have a problem with th

[jQuery] Re: .each() loop with custom function

2009-08-16 Thread MorningZ
"//CREATE EACH THUMBNAIL $(this).find("thumbpath").each(i).createThumb (); <<<-- I think I am using "i" incorrectly " No, that is not correct, it would be like: $(this).find("thumbpath").each(function(i) { $(this).createThumb(i); }); and need to chang

[jQuery] Re: How to Clean Up Asynch Code

2009-08-16 Thread Ricardo
Yes you should. cheers, ricardo On Aug 15, 10:46 pm, finneycanhelp wrote: > // what's a clean way to populate a list asynchronously and then > compare the number of items in the list to a count? > > $(function() { >         populateList(); // this is an asynch call using $get - so the next > li

[jQuery] .each() loop with custom function

2009-08-16 Thread andrew.croce
Hi, I am pretty new to this so please excuse problems that might seem obvious...they're not necessarily obvious to me yet. I am writing some basic image gallery functionality, using my own defined jquery functions. I am trying to use .each() to loop through the "image" tags of an xml file, and cr

[jQuery] Re: how do I hide an element after my function completes

2009-08-16 Thread brian
Use the 3rd param of $.get() $(function() { $(".pagination a").live("click", function() { var loader = $('#loader') loader.show() // <-- hidden loader div $.get( this.href, null, function()

[jQuery] Re: Validate groups of input fields, checkbox highlight and reset

2009-08-16 Thread Carlos Becar
The problem is validation , but do you want validate only one radio/checkbox or group of them, because if it this a group you have validate length for know if at least one checkbox is checked or none one. if none one is checked , method continue with try/catch and add class highlight to all of the

[jQuery] how do I hide an element after my function completes

2009-08-16 Thread Rich Sturim
I have a hidden spinner div. When my jquery function is called -- I show the spinner. But, how do hide I the spinner div after the ajax request has completed? $(function() { $(".pagination a").live("click", function() { var loader = $('#loader') loader.show() // <-- hidde

[jQuery] Re: How to select neighbouring elements

2009-08-16 Thread marc
Solved: I have this HTML Toon vanaf: #rc.utils.showTimepart("Years")# #rc.utils.showTimepart("Months")# #rc.utils.showTimepart("Days")#

[jQuery] Re: How to select neighbouring elements

2009-08-16 Thread marc
Solved: I have this HTML Toon vanaf: #rc.utils.showTimepart("Years")# #rc.utils.showTimepart("Months")# #rc.utils.showTimepart("Days")#

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-16 Thread Benjamin Wohlwend
Hi, On Aug 16, 1:58 pm, Charlie wrote: > what happens if you load the whole #container div? seems like within the > AJAX load it is ignoring

[jQuery] Re: Validate groups of input fields, checkbox highlight and reset

2009-08-16 Thread hendra
Carlos, Thanks for your response for problem #2. I viewed the generated source code using web developer addon-firefox. The has class "valid" instead of "error". So i guess you are right, the problem is with the checkbox validation. I guess this is a bug with Jquery validation. Here is the built

[jQuery] Re: Needing each element attribute, jQuery only returning the first element attributes

2009-08-16 Thread Charlie
within your $.each when you look at selector $("a") to get style you are not defining the current within the $each try changing  $src = ""> to  $src = ""> Samuel wrote: Hi people. I was trying to port a script to a system that I'm developing but I have some trouble with it's functio

[jQuery] Re: Animate menu effect on mouseout

2009-08-16 Thread Wolf
Thanks Charlie - I appreciate! On Aug 16, 10:05 am, Charlie wrote: > I don't have a solution for you and would have to tinker quite a bit to get > a  cross browser solution but if you look at the master hover function, it > uses "over" and "out" functions , and all hiding seems to be done in

[jQuery] Re: Animate menu effect on mouseout

2009-08-16 Thread Charlie
I don't have a solution for you and would have to tinker quite a bit to get a  cross browser solution but if you look at the master hover function, it uses "over" and "out" functions , and all hiding seems to be done in hideSuperfishUl so you are on right track Wolf wrote: This is related

[jQuery] How to select neighbouring elements

2009-08-16 Thread zephyr
Hi, I have this setup (pseudo code): formA table td checkbox select select select formB table td checkbox select select select The "checkbox select select select" part is included so it is identical in the 2 places (ie it is not possible to have different id's) What I want is that checking the

[jQuery] How to select neighbouring elements

2009-08-16 Thread zephyr
Hi, I have this setup (pseudo code): formA table td checkbox select select select formB table td checkbox select select select The "checkbox select select select" part is included so it is identical in the 2 places (ie it is not possible to have different id's) What I want is that checking the

[jQuery] Re: Animate menu effect on mouseout

2009-08-16 Thread Wolf
This is related to an earlier question I posted ('Superfish - animate effect"). So, yes Charlie - the 'menu' is a plugin and I am now trying to write some code to make it animate (slideup) on mousout. I understand from you previous reply that I would have to write a new function into Superfish

[jQuery] Needing each element attribute, jQuery only returning the first element attributes

2009-08-16 Thread Samuel
Hi people. I was trying to port a script to a system that I'm developing but I have some trouble with it's function. The thing is, I have a list with elements that contain inline styles for background-images. The script I'm using creates a element inside the element with a CSS selector that sh

[jQuery] Re: Jquery works in FF but not IE

2009-08-16 Thread Charlie
try: attr("src", largePath) Dan Cowley wrote: The following code works fine in FF chrome etc but not IE, anyone know why? Basically everything works accept the replacement of the image attribute $("#container #main_image img#largeId").attr({ src: largePath }); Even the rest of the func

[jQuery] Re: Plugins and Ajax

2009-08-16 Thread Charlie
Where is plugin script located? . Is plugin in the head of loaded page? If so- head content doesn't get loaded. Can put plugin  in body of page you want to load or use $.getScript in callback of load() or whatever AJAX function you're using If plugin is in page you are loading into will need

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-16 Thread Charlie
what happens if you load the whole #container div? seems like within the AJAX load it is ignoring

[jQuery] Re: text slider

2009-08-16 Thread Charlie
http://jqueryui.com/demos/slider/ dziobacz wrote: Why jquery doesn't have text slider ? Screen: http://yfrog.com/5kbeztytuuitnj

[jQuery] Re: new at jquery; can't get settimout or callback to work

2009-08-16 Thread Charlie
your show() is a jQuery UI effect I believe, you can add a callback function for your slideshow. Then the slideshow won't initiate until header is complete http://jqueryui.com/demos/show/#option-callback $('#headerimg').show("slide", {direction: "left"}, 3000, function(){ //initiate slidesho

[jQuery] Re: Animate menu effect on mouseout

2009-08-16 Thread Charlie
I suspect "the menu" is a plugin? If so,  will depend on how the plugin is designed sundowatch wrote: mouseout is an event what works when mouse get out from an object. You can do it like this: $("#menu").mouseout(function(){ $(this).slideDown("normal"); }); On 15 Ağustos, 17:32, Wolf wr

[jQuery] Re: Howto: Select a sub-list from a long list

2009-08-16 Thread Charlie
not very clear what you are trying to do here but jQueryUI has sortable and selectable plugins that would likely help you http://jqueryui.com/demos/sortable/ lihao wrote: I have a MySQL table with 90 columns and I want the users to be able to select any columns they concern and output the

[jQuery] Re: Superfish - animate menu on mouseout

2009-08-16 Thread Charlie
default built in the script is removing the class that allows visibility, there are no built in options to animate this you could modify hideSuperfishUl in script or build a custom "onHide" function Wolf wrote: Is it possible to animate the Superfish menu on mouseout (like a slidedown/sli

[jQuery] Re: cycle plugin questions

2009-08-16 Thread Charlie
apply overflow: hidden to container and try using synch: 1 in script. ckee wrote: I have a cycle working here: http://www.violinatta.com/node/19 Two questions: (1) initially more than one image shows, one under the other, eventually consolidating to 1. The container and images are both d

[jQuery] Re: Animate menu effect on mouseout

2009-08-16 Thread sundowatch
mouseout is an event what works when mouse get out from an object. You can do it like this: $("#menu").mouseout(function(){ $(this).slideDown("normal"); }); On 15 Ağustos, 17:32, Wolf wrote: > I am new to this. I want to animate the menu 'height' on mouseout (it > works fine on mouseover) - basi

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-16 Thread Benjamin Wohlwend
Hi Carlos, On Aug 15, 10:59 pm, Carlos Becar wrote: > ok, but ".some-filter" is a variable or element or what contain? > contain a apge exmaple radmonpage.asp ? I'm not really sure what you're saying. Do you want an example? Here you go: http://dump.piquadrat.ch/jquery_load/1_working.html http