3

I have a function that create an iframe in the page:

var wrapper = outer_doc.find('#wrapper');
create('iframe_sub', url + 'pages/page.html', '565px', '466px');
$('<div class="submenu" ></div>').appendTo(wrapper).append(ifrm);

another function change the source of the iframe:

outer_doc.find("#iframe_sub").attr('src',menu_item).

on the second function I get this error on firebug console on firefox 5.0:

attempt to run compile-and-go script on a cleared scope

@ jquery.1.6.1.js (line 16)

what does it mean?

Paul Draper
  • 78,542
  • 46
  • 206
  • 285
junray
  • 163
  • 3
  • 15

2 Answers2

0

I have experienced this problem a few times. It has always been because of an action being performed within $(document).ready. Most recently the actions were with google.load for maps and for other api's. If you are using google services then be sure they are loading before the document is ready I guess, but initialized after the DOM is available.

Wilk
  • 7,873
  • 9
  • 46
  • 70
Edward
  • 1
0

Try clearing your browser cache. That seemed to be the solution here with the bug listed here.

Community
  • 1
  • 1
John Kalberer
  • 5,690
  • 1
  • 23
  • 27