473,385 Members | 1,292 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Oct 11 '05 #1
1 1376
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 ]

--
Oct 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: hemant.singh | last post by:
Hello all, I am try'g to send window.location.href to the server script who will generate dynamic javascript according to the referral name comg in as param Now bcz <script language="javascript"...
3
by: Jarod_24 | last post by:
My program (it's a webcrawler) downloads htmlpages and in some cases the html has <script> </script> tags in it that generates parts of the html. How can i interpret this javascript and get the...
12
by: Iddo | last post by:
Hi, I am having a strange problem... I have an HTML file which has 2 script tags: 1) <script language="javascript" id="ABC" src="ABC.js" /> 2) <script id="general" language="javascript">...
44
by: rhythmace | last post by:
W3C HTML validator passes this: .... <script type="text/javascript" src="foo.js"> <script type="text/javascript"> ....script in here... </script> ....
4
by: Alex Maghen | last post by:
When I do this in my page... ClientScript.RegisterStartupScript(this.GetType(), "SomeScript", "alert(\"Hi there\");"); it doesn't work AND when I view source, the alert() line is dumped into the...
2
by: bilaribilari | last post by:
Hi all, I am using Tidy (C) for parsing html pages. I encountered a page that has some script as follows: <script> .... var abc = "<script>some stuff here</" + "script>"; .... </script>
5
by: bob | last post by:
Hi, This code gives two errors, one on each </scripttag: the first: "statement cannot appear in method body" the last: "end of tag has no matching start tag" Any way to solve this? Thanks...
2
by: -Karl | last post by:
Couls someone please advise me on this error. What I am trying to do is be able to convert an XML document into arrays. I read that the subs & functions have to be in <scripttags. Thanks! ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.