Asha said:
i have a dynamically build link and javascript cant handle values like &?
why is taht?
You mean a hyperlink? Hyperlinks are URL - they must be URL encoded.
Characters like '&' separate query string parameters in HTTP GET requests,
so if you have an ampersand ('&') that is not a delimiter in a query string then
the URL must URL-encode it as "%26".
So if you had a URL in the request like,
http://www.example.com/merger.aspx?acquirer=SBC&acquiree=AT&T
Then the '?' separates the endpoint on the web server,
"
http://www.example.com/merger.aspx," from the query string which
contains two parameters, each separated by '&',
Name = acquirer Value = SBC
Name = acquiree Value = AT&T
Notice that when performing the URL decoding step, the '&' character
that is part of the parameter value gets converted back from "%26" to
'&'. 0x26 hex, by the way, is that character code of '&'.
Javascript includes an encode( ) function for performing these URL
encoding duties.
Derek Harmon