p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript (http://p2p.wrox.com/forumdisplay.php?f=85)
-   -   String.replace() method (http://p2p.wrox.com/showthread.php?t=17180)

JohnD August 20th, 2004 06:46 AM

String.replace() method
 
Hello,

Can anybody explain this for me?

var strName = "John Archer";
    strName = strName.replace(" ","_");

I should get

strName = "John_Archer";

This is great in client side Javascript. However, the same trick doesn't work when you are using javascript in an ASP application. It seems to falter with both "'" and " ".



All times are GMT -4. The time now is 08:20 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.