Bug Tracker

Opened 16 years ago

Closed 16 years ago

#1332 closed bug (fixed)

script evaluation not working properly in ie6

Reported by: db Owned by: john
Priority: major Milestone: 1.1.4
Component: ajax Version: 1.1.3
Keywords: Cc:
Blocked by: Blocking:


While using this function:


type: "POST", url: page, data: args, dataType: "html", ... etc.

I found that ie6 does not evaluate any scripting included in the returned data.

like: --snip--

<script type="text/javascript">alert('loading!');</script><h1>some other html</h1>


fails completely in ie6 (6.0.2900.2180). This script evaluation does happen with other browsers; just not ie6.


-Dan Bryant

Change History (4)

comment:1 Changed 16 years ago by pedromello

same occurs on IE7

comment:2 in reply to:  1 Changed 16 years ago by pedromello

Replying to pedromello:

same occurs on IE7

Apparently IE6/7 can't correctly evaluate the regexp in find method to locate the script tags. So I've coded a temporary workaround, to be called after DOM is updated.

function extractScripts(data) {

if ($.browser.msie) {

var re = new RegExp('<script[>]*>([
s]*?)<\/script>','im'); var rs = data.match(/<script[

var parse = $.map(rs, function(tag) {

return re.exec(tag).pop();


$(parse).each(function(k,v) {





comment:3 Changed 16 years ago by john

need: ReviewTest Case
Owner: set to john

comment:4 Changed 16 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN rev [2428].

Note: See TracTickets for help on using tickets.