View Single Post
  #1 (permalink)  
Old 08-14-2007, 11:33 AM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,135
Rep Power: 16
Lop is on a distinguished road
Default AJAX - Escaping (

I have JavaScript and PHP working together fairly well except for this one error.

Code:
<script>
if value == 1
  document.write('$phpVariable');
</script>
Only the phpVariable has () in it so I get an error in my javascript - expecting ")". How do I escape the () in JavaScript?
__________________
Lop
Reply With Quote

Sponsored Links