[jQuery] .load and page reloading twice

2007-03-15 Thread John W
Hi all, Im in the process of updating some old javascript to utilize jquery. I had some old javascript that used the old document.location. For the heck of it I replaced that with a .load. It works, and I know this may not be the best way to do this, but Im curious why the page is drawn twice af

Re: [jQuery] .load and page reloading twice

2007-03-15 Thread Daemach
Do you by any chance have elements with the sameID? If you are using firebug, try going to the console and pasting in that selector - $('div#mypage') - if it returns an array with more than 1 element, there's your problem. You can mouse over the array elements and firebug will highlight the elem

Re: [jQuery] .load and page reloading twice

2007-03-15 Thread John W
Tried than in firebug, only one instance found. Thanks for the suggestion. Daemach wrote: > > Do you by any chance have elements with the sameID? If you are using > firebug, try going to the console and pasting in that selector - > $('div#mypage') - if it returns an array with more than 1 elem

Re: [jQuery] .load and page reloading twice

2007-03-15 Thread Daemach
I would try stepping through it then to see what is happening. BTW, since you are supposed to have unique IDs for every element on your page, you don't really need the div in the selector - #mypage should grab the element using getElementByID John W wrote: > > Tried than in firebug, only one

Re: [jQuery] .load and page reloading twice

2007-03-15 Thread John W
Yeah its got to do with something possibly with the script being called server side for the ahah load. Its tricky going through old spaghetti code. Daemach wrote: > > I would try stepping through it then to see what is happening. > > BTW, since you are supposed to have unique IDs for every ele

Re: [jQuery] .load and page reloading twice

2007-03-15 Thread John W
The problems resolved, and it had nothing to do with .load, it was my cgi script. I bow before the greatness that is jquery. -- View this message in context: http://www.nabble.com/.load-and-page-reloading-twice-tf3410393.html#a9506600 Sent from the JQuery mailing list archive at Nabble.com. __