homepage Welcome to WebmasterWorld Guest from 54.163.72.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Pop-up window after NT/2000 logon
Pop-up window after NT/2000 logon
Goodfella




msg:1489957
 3:34 pm on May 1, 2003 (gmt 0)

I am a Network Manager for a Windows NT network (shortly to upgrade to Windows 2000). I am very keen to implement a small Internet Explorer pop-up window after the user has logged on without the user having to manually open Internet Explorer. Is this possible? How easy is this task?

 

RonPK




msg:1489958
 3:46 pm on May 1, 2003 (gmt 0)

You can easily add a URL as a shortcut to the Start Up-folder. That should open the specified location on logon. You could use Javascript to resize the window to the desired size ( <body onLoad="resizeTo(300,50)"> ).

Hope this helps!

Welcome to WebmasterWorld, by the way...

[edited by: RonPK at 3:47 pm (utc) on May 1, 2003]

korkus2000




msg:1489959
 3:46 pm on May 1, 2003 (gmt 0)

Will they be directed to the same page everytime after login or will they be able to enter at any page?

Goodfella




msg:1489960
 7:41 am on May 2, 2003 (gmt 0)

Wow, thanks for the very swift response. To be perfectly honest I wasn't holding out much hope of a reply as soon as that!

Would this window be able to be manipulated in such a way as to just show the window and no buttons or menu items? As I am very very new to JavaScript, where in my HTML code would this JS go?

Could a Cookie also be used so that the user can choose whether to have this window show again after logon or not? Sorry to be a pain.

Justin

RonPK




msg:1489961
 8:49 am on May 2, 2003 (gmt 0)

> Would this window be able to be manipulated in such a way as to just show the window and no buttons or menu items?

Not with ordniary JavaScript. Maybe there is some magic IE-only code out there, but I'm not too familiar with that.

> Could a Cookie also be used so that the user can choose whether to have this window show again after logon or not?

No. The browser has to be started in order to read the cookie.

Maybe you could elaborate on what the purpose of the window is, so the folks here can come up with suggestions. (and maybe you could answer Korkus's question...)

Goodfella




msg:1489962
 9:44 am on May 2, 2003 (gmt 0)

This page will just show my users some common hyperlinks to some external web-pages (we are firewalled). It will also show scrolling effects for daily announcements etc. This page will be the same every time so I don't want the users to be able to change this page.

Goodfella




msg:1489963
 7:59 am on May 9, 2003 (gmt 0)

I have managed to find some code that looks something like the following:

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function openWin(URL) {
aWindow=window.open(URL,"thewindow","toolbar=no,width=350,height=400,status=no,scollbars=yes,resize=no,menubar=no");
}
//-->
</SCRIPT>
</HEAD>
<BODY onload="javascript:openWin('mozart.html');">
</BODY>
</HTML>

This brings up a large page with a pop-up window. I would like to get rid of the large page behind this pop-up window. Is there anybody out there that could help me with this code? Is there anything in JavaScript or do I need Visual Basic code?

Justin Medcraft

Sinner_G




msg:1489964
 8:10 am on May 9, 2003 (gmt 0)

What you are doing there is a regular popup window. Try replacing your <body> tag with the one suggested by RonPK in msg #2.

Sinner

Goodfella




msg:1489965
 8:27 am on May 9, 2003 (gmt 0)

Excellent. Thank you. Now that i've got that sorted out, how can I make it a true pop-up by taking off the toolbar, status bar etc.?

Thank you in advance.

Justin Medcraft

Sinner_G




msg:1489966
 12:07 pm on May 9, 2003 (gmt 0)

Now that's the problem. There is (AFAIK) no way to do that. I think you have to choose between having the bars or having a big window launching a small one.

Sinner

P.S.: If you nevertheless find a way to do it, please keep us posted.

Goodfella




msg:1489967
 2:44 pm on May 9, 2003 (gmt 0)

A colleague of mine has found a solution that I hope you will all like. He has used a .hta format that will bring a true pop-up window for all sites. The following is an example of this .hta format:

<html>
<head>
<title>macsta HTA Test</title>
<HTA:APPLICATION
ID = "Blandford pop UP"
APPLICATION NAME = "MAC"
BORDER = "thin"
CAPTION = "yes"
SHOWINTASKBAR ="no"
SINGLEINSTANCE = "yes"
SYSMENU = "YES"
WINDOWSTATE = "normal"
SCROLL = "NO"
SCROLLFLAT ="yes"
VERSION = "1"
INNERBORDER = "NO"
SELECTION = "NO"
MAXIMIZEBUTTON = "yes"
MINIMIZEBUTTON = "yes"
NAVIGABLE = "YES"
CONTEXTMENU = "NO"
BORDERSTYLE = "NORMAL"
>

</head>

<body ONLOAD="resizeTo(400,400)">

This will not work directly from a web-page, but will work from the desktop (ie. logon script).

Hope this helps.

macrost




msg:1489968
 7:06 pm on May 9, 2003 (gmt 0)


function openWin(URL) {
aWindow=window.open(URL,"thewindow","toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=yourvalue,height=yourvalue");

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved