Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Ajax question
- From: tedd at sperling.com (tedd)
- Subject: [Javascript] Ajax question
- Date: Sat Dec 30 17:14:09 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
- Follow-Ups:
- [Javascript] Ajax question
- From: Paul Novitski
- [Javascript] Ajax question
- References:
- [Javascript] Ajax question
- From: tedd
- [Javascript] Ajax question
- From: Paul Novitski
- [Javascript] Ajax question
- Prev by Date: [Javascript] Ajax question
- Next by Date: [Javascript] Ajax question
- Previous by thread: [Javascript] Ajax question
- Next by thread: [Javascript] Ajax question
- Index(es):