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 elements on your page.
John W wrote: > > 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 after the load? And yes I didnt use > parameters because I intended to use a GET not POST. Are there any > technique to force .load to only fire once? > > function headersearch() { > > var g,h,ch,u; > > g=document.nsearch.acct.value; > h=document.nsearch.bustype.value; > ch=document.nsearch.report_type.value; > u="parstring=1," + g + ch + "&bustype=" + h; > > if(ch=="bud") > { > $('div#mypage').load('mypage.html?' + u); > return false; > } > else > { > $('div#mypage').load('mypage.html'); > return false; > } > } > -- View this message in context: http://www.nabble.com/.load-and-page-reloading-twice-tf3410393.html#a9502336 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/