View Single Post
  #4 (permalink)  
Old 07-16-08, 12:06 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
You can't do that. I suggest putting your response into a XML document, eg:
xml Code:
  1. <response>
  2.     <alert>Hello world!</alert>
  3.     <html><![CDATA[ HTML HERE ]]></html>
  4.     <!-- Or: -->
  5.     <script>myscript.js</script>
  6. </response>
... and then you could parse each part separately. Or even dynamically add a script tag to the header and load the URL you specified in the XML document.
Reply With Quote