Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question What does "Singed Scripts" means?????

    In a Js Handboock I found this description:
    screenX.-(JavaScript 1.2) Specifies the distance the new window is placed from the left side of the screen. To place a window offscreen, set this feature in a signed scripts.

    What does "Singed Scripts" means?????
    What is a signed script???

    Thnx
    BTW I'm trying to put a pup-up window in the center of the screen and this atribute (screenX and screenY) does not work, Im only interest in explorer 6.0 over Windows. Thnx again.

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    A signed script means that they user will be prompted on whether or not they want the script to run. This is for security purposes. So in the case of opening windows offscreen, that is not allowed as you can imagine why.....imagine having popup windows opening offscreen and you don't know about it. Then they could use that offscreen popup window to continuously open other popup windows and you probably wouldn't figure out what is controlling all of them.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I see...

    What the user or me have to do to sign a script???
    after all the page is going to run in a lan so I can configure the browsers and stuf I guess...

  • #4
    Regular Coder
    Join Date
    Feb 2003
    Location
    California
    Posts
    925
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the signed script comes from the server side, the user side has to accept the new window... thats how I understand it.


    Jason

  • #5
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Originally posted by Jason
    the signed script comes from the server side, the user side has to accept the new window... thats how I understand it.


    Jason
    Well no. A signed script just means that the script requires additional priviliges from the browser which the user must grant before the script will execute. No server involved with that.

    Here is an example I wrote that will access your browser history and print every site you have visited during the current browser session as clickable links:

    PHP Code:

    <html>
    <
    head>
    <
    title>Displaying the History List - Netscape</title>
    </
    head>
    <
    body>
    <
    script language="JavaScript">
    <!--
    //
    netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead');
        for (
    i=0;i<history.length;i++){
            
    document.writeln('<h3><a href="'+history[i]+'">'+history[i]+'</a></h3>');
            
    document.close();
        }
    //-->
    </script>
    </body>
    </html> 
    Obviously you need to open this one in either Netscape or Mozilla.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #6
    New Coder
    Join Date
    Jan 2003
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts
    BTW I'm trying to put a pup-up window in the center of the screen and this atribute (screenX and screenY) does not work, Im only interest in explorer 6.0 over Windows.
    The example ("Opening a Centered Window") on this page works for me...

    Utilizing Window Features

  • #7
    New Coder
    Join Date
    Jun 2002
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thnx F.N.G.

    thnx F.N.G. I'll work it from here, thnx alot

  • #8
    New Coder
    Join Date
    Jun 2002
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer How do I sign a script

    Spookster, I saw your script that prints the history as a clickable links, and I guess this line:
    Code:
    netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead');
    is the one that "signs" the script so yo can acces the hole History objet; If this is right I will need a line like that to sign in Internet Explorer 6.0 could you tell me how to do it? otherwise just tellme what to do to sign a script in Internet Explorer 6.0.

    Thnx

    Btw I just need to do it in WindowsInternet Explorer 6.0 thnx again.


  •  

    Posting Permissions

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