Opened 14 years ago
Closed 14 years ago
#3428 closed bug (invalid)
.load and script in tag <script>
Reported by: | allcity | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | ajax | Version: | 1.2.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Not working
Attachments (1)
Change History (5)
Changed 14 years ago by
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Remove the script with file test2.html to file test.html as he does not work. While other tags are working with a <script> not. Can I have something wrong week.
comment:3 Changed 14 years ago by
test.html
<html> <script src="http://code.jquery.com/jquery-latest.js"> </script> <script> $(document).ready(function() { $("#load_here").load("test2.html #test"); }); </script> <body> <div id="load_here"> </div> </body> </html>
test2.html
<html> <body> <script id="test"> alert("Hello!!!"); </script> <h1> Hello</h1> </body> </html>
comment:4 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
You cannot run a script by injecting content inside script tags with .load. If you want you can ajax a script over as text and inject it into the page with a new set of script tags.
Open page test.html