[Javascript] Ajax question

tedd tedd at sperling.com
Sat Dec 30 17:13:57 CST 2006


At 2:34 PM -0800 12/30/06, Paul Novitski wrote:
>At 12/30/2006 09:24 AM, tedd wrote:
>>-snip-
>>
>>    <a href="javascript:sndReq('rock');location.href='';" >Rock </a>
>>
>>-- none work.
>
>
>Oh, I think the problem is that the href is blank, which some (all?) 
>browsers won't act upon.  Try:
>
>         location.href='?';
>
>This will load the current page (whatever its url) with an empty querystring.
>
>Paul

Paul:

Same thing. The following ALL load the next page:

<a href="javascript:sndReq('rock');location.href='';" >Rock </a>
<a href="javascript:sndReq('rock');location.href='?';" >Rock </a>
<a href="javascript:sndReq('rock');location.href='index.php';" >Rock </a>

But, none also send the variable "rock" to ajax.

It works like this -- I can either send the variable "rock" OR launch 
the next page, but not both!

It don't make much sense to me, but that's the way it looks.

tedd

-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list