2 Replies Latest reply: Nov 28, 2011 12:19 AM by Adam Cameron. RSS

    Special Character Handling

    Phinehas1234 Community Member

      Hi,

       

      I'm using the ColdFusion.navigate in JavaScript to call Method in CFC.

       

      ColdFusion.navigate('cfc/data_control.cfc?method=insertCompanyName&company_id='+document.g etElementById('company_id_'+i).value+'&company_name='+document.getElementById('company_nam e_'+i).innerText,'addMessage',loadCompanyList);

       

      However, I find that when I input the name "Testing & Checking" in the field, it will only show me the word "Testing ". I think this is because of the character "&". "&" is used to divide different parameter. Since some companies have the character "&", I want to find some method to retrieve the character "&" correctly.

       

      Is there any method on handling "&" correctly?