javascript encodeURI() to context().request().formValueForKey() improper decoding...
javascript encodeURI() to context().request().formValueForKey() improper decoding...
- Subject: javascript encodeURI() to context().request().formValueForKey() improper decoding...
- From: shravan kumar <email@hidden>
- Date: Sat, 14 Mar 2009 05:37:11 -0700 (PDT)
Hello Group,
Problem:
I have a text field and user may enter any kind of text like french, spanish, german characters apart of english characters.
Am using AJAX to send this field input to server and get the matching data. While sending data to server I am using javascript encodeURI() function to encode the user entered text (for eg: Jiménez) and append it to the Ajax URL: http://localhost/cgi-bin/WebObjects/MyPeanut.woa/-45001/wo/G7enthVGBXdPyZWw2wZkFg/38.7.9?qin=jiménez
But on the server-side action method when I try to read the above user input using following api:
context().request().formValueForKey("qin")
following data is returned by above API: jiménez
"Can any one advise me how to exactly decode the user input in the WebObjects, encoded by encodeURI javascript function." I have checked the WORequest API and googled but could not find any helpful response.
Please advise.
Thanks in advance,
Shravan Kumar. M
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden