Question:

Javascript throws the error "Permission denied" while trying to pass the value from modal dialog window

by  |  earlier

0 LIKES UnLike

Hi,

I am stuck with the javascript error for long time. when i tried to pass the window object(self) as the second parameter from window.modalDialog.

When i use local host in the URL, it doesn't cause any error and is able to launch the modal dialogue window without any error. But if i specify the IP address in the address url to launch my web page and click on some button to open up the dialog window, it cause the following javascript error.

"Permission Denied" Lin1 char 40

Parent.aspx

returnVal = window.showModalDialog(exportUrl, self, style);

Child.aspx

<script>window.opener = window.dialogArguments;window.opener.Upd...

I am unable to understand what could be the cause for the security error "Permission Denied! :-( how to get rid of this error??

Please guide me asap.

regards

 Tags:

   Report

1 ANSWERS


  1. Hope this helps

    http://www.captain.at/howto-ajax-permiss...

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions