...

View Full Version : What does "Singed Scripts" means?????



wert
04-07-2003, 11:28 PM
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.

Spookster
04-07-2003, 11:44 PM
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.

wert
04-07-2003, 11:51 PM
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...

Jason
04-08-2003, 12:13 AM
the signed script comes from the server side, the user side has to accept the new window... thats how I understand it.


Jason

Spookster
04-08-2003, 12:42 AM
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:




<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.

F.N.G.
04-08-2003, 12:58 AM
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 (http://www.webreference.com/js/tutorial1/utilize.html)

wert
04-08-2003, 01:24 AM
thnx F.N.G. I'll work it from here, thnx alot

wert
04-10-2003, 12:44 AM
Spookster, I saw your script that prints the history as a clickable links, and I guess this line:

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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum