PDA

View Full Version : Help window.open() crosssite.scripting ERROR in FF



reignman
20 Feb 2007, 1:49 PM
Hey....
a longtime known bug from Firefox....
I'm using firefox 1.5.0.9 and if I open a well working page with a treeview in a popup I get following error with a HTTPXml request


[Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

as this library is the best and there are so many options in it...
can I set any option that this error doesn't occure?
I think its a problem with crossite scripting in ff... but who knows.

This error doesn't occur if iI reload the window.. just when I click on the link with the window.open() function.

PLEASE HELP... whole World would appreciate a sollution :)

tryanDLS
20 Feb 2007, 1:59 PM
You can't access another domain via XHR - it's not a FF bug. IE may let you do it after putting a warning initially. You can load data into an iframe from another domain.

reignman
21 Feb 2007, 2:33 AM
ohhh... then I expressed not really clearly:

i just open a relative url in the window.open()
for example tree.php

tree.php is a url havin a XHR on Ext.onready()

loding url directly no prob.
loding url by clicking on a link with window.open() ERROR
reloading opened window no error...

oh and one addition:
don't blame me for not using a basic dialog instead of window open... but my prof doesn't like dialog... (kick him)