Skip to main content

Bug Tracker

Side navigation

#1654 closed bug (duplicate)

Opened September 17, 2007 09:33PM UTC

Closed October 17, 2007 10:10PM UTC

AJAX inserted Javascript (<script>) code not executing when document ready.

Reported by: zackgilbert Owned by:
Priority: major Milestone: 1.2.1
Component: ajax Version: 1.2
Keywords: Cc:
Blocked by: Blocking:

When a snippet of code is insert into a page with AJAX, any <script> located within the snippet is executed as the document is getting parsed and not after the snippet is actually inserted.

Sample code (that doesn't work) - Located in the file being loaded with AJAX:


A fix (thanks John):

$(document).ready(function(){ setTimeout(..., 10); });

Attachments (0)
Change History (2)

Changed September 25, 2007 08:39AM UTC by diz comment:1

I think that this is the same bug as the one described here: (with patch available)

Changed October 17, 2007 10:10PM UTC by john comment:2

resolution: → duplicate
status: newclosed

Duplicate of #1698.