Sign in to follow this  
Aaron Weier

Javascript "eating" '+'

Recommended Posts

Hi All,

 

I need to use a "+" symbol and javascript is literally eating it up. I send in the variable with the "+" symbol and when I test the variable in javascript the "+" is gone!

 

 

 

I've tried the replace function but no help:

strURL=strURL.replace("+", "%2B");

 

Please help!!

 

thanks!

Aaron

Share this post


Link to post
Share on other sites

Hello again,

 

it appears that i've fixed the problem by simply switching the following lines of javascript to look as follows:

 

strURL = strURL.replace("+", "%2B");

 

//URLEncode it - NECESSARY.

strURL = escape(strURL);

 

Aaron

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Aaron,

 

We are glad that your issue is resolved.

 

Thanks for sharing your idea.

 

Keep smiling and keep FusionCharting. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this