Search code examples
jquerybrowser-state

jQuery History Access Denied


i'm testing jquery history plugin (http://plugins.jquery.com/project/history) firefox fine working. but i'm testing ie7 browser has error reporting to "Access Denied". What solution this problem ?

Error Line : var iframe = ihistory.contentWindow.document;

Best Regards


Solution

  • This line is trying to get the contents of an iframe. IE has lots of issues with that. But if You get the Access Denied it looks like the iframe is in a different domain or it's not loaded yet.

    The code should call this line in an onload event for this iframe. To make iframe lod faster you can set its src to an empty javascript call or something like that

    Still using BBQ plugin seems a nice solution. I do that ;)