• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
javascript encodeURI() to context().request().formValueForKey() improper decoding...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: javascript encodeURI() to context().request().formValueForKey() improper decoding...
      • From: "Ricardo J. Parada" <email@hidden>
  • Prev by Date: Re: WoMonitor "Failed to contact ..."
  • Next by Date: Re: Returning previously instantiated Main page
  • Previous by thread: Re: Returning previously instantiated Main page
  • Next by thread: Re: javascript encodeURI() to context().request().formValueForKey() improper decoding...
  • Index(es):
    • Date
    • Thread