I am using Javascript on a ColdFusion page. I am pulling a name of a company out of a database and using it in the ColdFusion page, and the name has an ampersand sign in it. For Example Allied Machine & Engineering Corp. The name is stored in a ColdFusion variable. Then I take the variable and put it into a javascript variable to use in the javascript code to pass it to a ColdFusion popup window. It works like a champ for a name like AMEC, but as soon as I get a name with an & in it it dies. It will only pass the part of the name before the &. It does not pass the & or anything after that. Is there a way in javascript that I can pass a name with an ampersand sign in it in a variable? Thanks in advance for any help on this issue.
CJ
<!-- w --><a class="postlink" href="http://www.alliedmachine.com">www.alliedmachine.com</a><!-- w -->
CJ
<!-- w --><a class="postlink" href="http://www.alliedmachine.com">www.alliedmachine.com</a><!-- w -->