Betty_S Posted February 4, 2007 Share Posted February 4, 2007 Hi folks!My JS function takes the (text) value of a drop-down list and dynamecliy create a link which looks something like that:…?name=%D7%97%D7%99%D7%A4%D7%95%D7%A9+%D7%91…It works fine.Whoever if the passed text contains apostrophe, commas or hyphen it doesn't work because it will 'copy' the string until it hits those spcial chars.What to do! Link to comment Share on other sites More sharing options...
LittleSam Posted February 6, 2007 Share Posted February 6, 2007 Hello.Hard to help without an example. Post your code for more assistance.Are you using the build in JS escape() method? Link to comment Share on other sites More sharing options...
pulpfiction Posted February 6, 2007 Share Posted February 6, 2007 Use escape character \ infront of those special characters.....?name=%D7%97%D7%99%D7%A4%D7\,%95%D7\'%A9\'+%D7\-%91 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now