AJAX and disapeard javascripts tags <script></script>

G

Grzegorz ¦lusarek

Hello everyone. I1m writing webb aplication using AJAX (prototype
library: http://prototype.conio.net/ and
scriptacuolous:http://script.aculo.us/).
My Problem is that that I'm doing XMLHttpRequest to server and i get the
piece of HTML code (one div - container). Tha div is change on site and
almost everything is good but the html code hava javascript code between
<script> and </script> and that code is missing. This is weird because
i can see the server response and everything is ok(js tag are in the
response),using greasemonkey i can see thatwhen my browser is getting
the ajax data , (still everything ok), but at the finish at browser's
output the javascript code is missing. What I'm doing wrong? or maybe
there is error in library? or maybe this is situation that AJAX not
working very vell..
thanks for any help
Gregor
 
K

knocte

Grzegorz ¦lusarek escribió:
Hello everyone. I1m writing webb aplication using AJAX (prototype
library: http://prototype.conio.net/ and
scriptacuolous:http://script.aculo.us/).
My Problem is that that I'm doing XMLHttpRequest to server and i get the
piece of HTML code (one div - container). Tha div is change on site and
almost everything is good but the html code hava javascript code between
<script> and </script> and that code is missing. This is weird because
i can see the server response and everything is ok(js tag are in the
response),using greasemonkey i can see thatwhen my browser is getting
the ajax data , (still everything ok), but at the finish at browser's
output the javascript code is missing. What I'm doing wrong? or maybe
there is error in library? or maybe this is situation that AJAX not
working very vell..
thanks for any help
Gregor

Perhaps you must enclose script content using CDATA.

Andrew [ knocte ]

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top