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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Grzegorz ¦lusarek

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

    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
  • knocte

    #2
    Re: AJAX and disapeard javascripts tags &lt;script&gt;& lt;/script&gt;

    Grzegorz ¦lusarek escribió:[color=blue]
    > 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[/color]

    Perhaps you must enclose script content using CDATA.

    Andrew [ knocte ]

    --

    Comment

    Working...