Problem changing active tab (by code) in chrome


I have the following setup:

main.html → creates Tabbar with 4 pages

myTabbar.tabs("a1").attachURL("a.html"); myTabbar.tabs("a2").attachURL("b.html"); myTabbar.tabs("a3").attachURL("c.html"); myTabbar.tabs("a4").attachURL("d.html");

“d.html” is an index page, and it has this function to change the active tab via code:

<script> function gotolink(p, i){ parent.myTabbar.tabs(p).setActive(); // p is the tab id } </script>

This works fine in IE and Firefox, but in chrome I get this error:

Uncaught SecurityError: Blocked a frame with origin “null” from accessing a frame with origin “null”. Protocols, domains, and ports must match.

Note: I am working from the local filesystem, and it is important that I can get this to work from the local filesystem.

Is there anything that can be done to allow this to work in chrome as well?



please send us demo to support at dhtmlx dot com