SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Dec 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    OpenDialog is not working mozilla

    window.openDialog("webform1.aspx", "dlg", "", "pizza", 6.98);

    I wrote this code to open dialogbox in javascript but i m getting error message...

    Error: uncaught exception: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "http://localhost/MozillaRandD/Default.aspx Line: 25"]


    Please help me on this........

    Regards
    Adil

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,869
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Do you define the openDialog function in your code anywhere. It isn't a part of standard JavaScript. It is probably a part of JScript and so can be used on IE on an intranet but unless you write your own JavaScript equivalent cannot be used on the internet where people have a choice of thousands of different browsers only one of which will understand that command.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Member
    Join Date
    Dec 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    Do you define the openDialog function in your code anywhere. It isn't a part of standard JavaScript. It is probably a part of JScript and so can be used on IE on an intranet but unless you write your own JavaScript equivalent cannot be used on the internet where people have a choice of thousands of different browsers only one of which will understand that command.


    I want to open ModalDIalogBox in Mozilla browswe using Javascript.
    For mozilla i think we are using window.openDialog().......
    But its not working plz help me on this......

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •