PDA

View Full Version : BasicDialog with Tabs and UpdateManager



rizakoyt
1 Dec 2006, 9:18 AM
Hi all, I have a BasicDialog with two tabs. I have set the second tab to load from a new url using it UpdateManager. However, upon update attempt, I get the following error:

[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]

Is it possible to update the tab inside of a BasicDialog?

Thanks for the help,
kurT

tryanDLS
1 Dec 2006, 9:43 AM
Are you trying to call a different domain than that of your page (e.g. google.com)? That's not permitted by the XMLHttpRequest object. Do some searches on cross-domain XHR if you're not familiar with this.

jbowman
1 Dec 2006, 11:28 AM
Are you sure you're passing the url to the updateManager?

location: "<unknown>"

rizakoyt
1 Dec 2006, 11:42 AM
Thanks guys, I pointed my url to the same domain and it worked like a charm. I should have figured that out. Sorry to bother everyone.