[jQuery] Re: sometimes lenght property does not work but size() does return correct value

2009-12-13 Thread jpcozart
Did you misspell it in your code? $('p').length On Dec 13, 2:59 am, manko uha...@gmail.com wrote: Sometimes $('p').lenght returns undefiend property but when i replace lenght with size() method i get the  correct number of p elements in current dom ??

[jQuery] Re: Content loaded via Ajax and global JS

2009-12-05 Thread jpcozart
Check out the live function. It can solve this problem. http://docs.jquery.com/Events/live On Dec 5, 2:38 am, mysterious79 gray8...@gmail.com wrote: This probably isn't a jquery question precisely, but jquery is being used as my method for making ajax requests. I'm running into a recurring

[jQuery] Re: Once hidden elements no longer report values

2009-12-03 Thread jpcozart
One of the scripts or plugins you are using appears to be duplicating the code for the form creating 2 forms with the same attributes on the same page. The first form is never being shown at all and is not accepting input. Using some jQuery like this: $('[name=yourName]:last').val() you can

[jQuery] Re: slideToggle stops working after refreshing content with Ajax

2009-12-03 Thread jpcozart
  I tried to rebind the event handlers  and for some reason that did not   work.   However, the plugin worked perfectly!   Thanks once again, I spent days on this   On Nov 28, 2:17 pm, jpcozart jeremy.coz...@gmail.com wrote:   You can use the Live Query plugin to resolve this problem

[jQuery] Re: next()

2009-12-03 Thread jpcozart
I would have to see the structure of the document to know where the problem lies. It seems as though country.next(select.state); is not returning the node you are looking for. On Dec 3, 1:07 pm, TMNT tmand...@gmail.com wrote: Matt, thanks for your response. I had originally posted this on

[jQuery] Re: slideToggle stops working after refreshing content with Ajax

2009-11-28 Thread jpcozart
You can use the Live Query plugin to resolve this problem: http://docs.jquery.com/Plugins/livequery Or you can rebind the event handlers after the ajax call has updated the page. The new nodes do not have event handlers bound to them when they replace the old nodes: function refreshcontent(){

[jQuery] Re: slideToggle stops working after refreshing content with Ajax

2009-11-28 Thread jpcozart
You can check out the livequery plugin here which addresses this issue: http://docs.jquery.com/Plugins/livequery or you can rebind the event after the ajax call: function refreshcontent(){ $.get(mycontent.php, function(data){ $(#container).animate({ opacity: hide }, 200);