dcsimg
submit ajax problem for characters like +
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bojan_Kraut
Posted On:   Monday, March 26, 2007 05:51 PM

Hi,

I need to enter a sql query into textarea on the form. When I try to use + sign, submit cuts them out from the string.

How could I submit let say equations?

Re: submit ajax problem for characters like +

Posted By:   Anonymous  
Posted On:   Tuesday, March 27, 2007 12:43 AM

forgot one more use this


youtStringValue = yourStringValue.replace(/+/g,"%2B");

youtStringValue = yourStringValue.replace(/=/g,"%3D");

youtStringValue = yourStringValue.replace(/?/g,"%3F");

youtStringValue = yourStringValue.replace(///g,"%2F");


now you send the string.

Re: submit ajax problem for characters like +

Posted By:   Anonymous  
Posted On:   Tuesday, March 27, 2007 12:40 AM

before sending your string from html form in the javascript use

yourStringValue = escape(yourStringValue);


now send your string using ajax.
About | Sitemap | Contact