Discussion Forum

Welcome to the Discussion Forum, we encourage you to REGISTER on our forum and participate in the debate.For more details Click here

Online Advertising

Viewers now you can promote Your Websites/Blogs/Products by using our online advertising program.Using this feature you can place your Ads in my blog and can attract the people logging over here.To place your ads, just sign in my Guest Book and leave your details over there.

Sunday, March 14, 2010

Encode/Decode the String in Webload

While creating a script in webload, often we may need to decode the string that will appear in url or for the data that needs to be submitted using POST method.To encode or decode the string we can use the below two methods,
1."encodeURI()" or "encodeURIComponent()"
2."decodeURI()" or "decodeURIComponent()"

Sample Script for encodeURIComponent():
var userInputStr = "What is javascript?";
var searchStr = "?userinput=" + nextline
encodeURIComponent(userInputStr);
Sample Script for decodeURIComponent():
var userInputStr = "What is javascript?";
var searchStr = "?userinput=" + nextline
decodeURIComponent(userInputStr);


No comments:

Post a Comment

Free advertising


Lowes Coupon
How to Blog

Free Advertising