Skip to main content

Bug Tracker

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:

Not working

Attachments (1)
  • (0.4 KB) - added by allcity September 30, 2008 05:05PM UTC.

    Open page test.html

Change History (4)

Changed September 30, 2008 07:40PM UTC by brandonZ comment:1

Replying to [ticket:3428 allcity]:

Not working

What is the expected functionality here.

Changed September 30, 2008 07:57PM UTC by allcity 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 allcity comment:3



<script src="">



$(document).ready(function() {

$("#load_here").load("test2.html #test");




<div id="load_here">







<script id="test">



<h1> Hello</h1>



Changed January 08, 2009 03:57AM UTC by dmethvin comment:4

resolution: → invalid
status: newclosed

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.