SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Jun 30, 2008, 00:48 #1
- Join Date
- Aug 2007
- Posts
- 494
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Problem with onchange event and apex
Problem with onchange event and apex
Hi all.
I have problem with this onchange event:
PHP Code:onChange="window.document.location='upload.asp?B='+this.options[this.selectedIndex].value;">
For example:
1) upload.asp?SULMONA%20CITTA' generates javascript error;
2) upload.asp?SULMONA%20CITTA not generates javascript error;
Can you help me?
Kind regards
Viki
-
Jun 30, 2008, 07:19 #2
- Join Date
- Dec 2007
- Posts
- 358
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Jun 30, 2008, 07:35 #3
- Join Date
- Aug 2007
- Posts
- 494
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Jun 30, 2008, 16:06 #4
- Join Date
- Dec 2007
- Posts
- 358
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I suspect that you have
Code:onChange="window.document.location='upload.asp?SULMONA%20CITTA'='+this.options[this.selectedIndex].value;">
So this produce javascript error. You need to encode the ' character by its hex code %27. You should check whether Server.URLEncode makes such substitution and if it is not you need to replace this char using the Replace function.
Bookmarks