Side navigation
#3428 closed bug (invalid)
Opened September 30, 2008 05:02PM UTC
Closed January 08, 2009 03:57AM UTC
.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 (4)
Changed September 30, 2008 07:40PM UTC by comment:1
Changed September 30, 2008 07:57PM UTC by comment:2
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.
Changed September 30, 2008 07:58PM UTC by comment:3
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>
Changed January 08, 2009 03:57AM UTC by comment:4
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.
Replying to [ticket:3428 allcity]:
What is the expected functionality here.