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#a9501644 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/