473,507 Members | 8,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Spawned Web page authentication

Hi to 1 and all,

my appologies to Nathan for the repost here....

I have an asp application/web site that uses a logon page then a page
for the menus and separate asp pages for all the options in the menus.

The options listed in the menu's spawn separate web windows leaving the menu
page in the background.

The code I am using is as follows;

The spawned page is called using the following javascript from the menu page
(watch the wrap);

picWindow=window.open("DailyPicList.asp","dailyWin ","toolbar=0,location=0,sc
rollbars=1,status=1,
resizable=1,width=650,height="+(screen.height-80)+",left=0,top=0")
picWindow.focus()

In turn the 'DailyPicList.asp' checks authentication using the following
code;

If IsEmpty(Session("UID")) then Response.Write "<script
language=javascript>doLogin();</script>"
This code is in a Javascript block at the top of the page;

function doLogin() {
if (window.opener == null) {
document.location.href = "../default.asp?status=timeout";
}
else {
window.opener.document.location.href = "../default.asp?status=timeout";
window.close();
}
}
Now the above works ok, except when the menu page (ie the opener) has been
closed while the spawned page is still open. What I would like to happen in
this case is the spawned page to close and a new browser window to open at
the login page (default.asp) starting all a fresh.

The above doLogin() javascript function would have to check if the
'window.opener' is still open and if not to open a fresh browser window.

What do uou think, is this possible?

Cheers, Bill.
Jul 19 '05 #1
3 1468
William E Hatto wrote:
Hi to 1 and all,

my appologies to Nathan for the repost here....

I have an asp application/web site that uses a logon page then a page
for the menus and separate asp pages for all the options in the menus.

The options listed in the menu's spawn separate web windows leaving
the menu page in the background.

The code I am using is as follows;

The spawned page is called using the following javascript from the
menu page (watch the wrap);


This question has absolutely nothing to do with asp. Please post to a
client-side jscript newsgroup: look for a group with "dhtml" and jscript in
its name, or go wo .scripting.jscript which has higher traffic.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #2
My appologies Bob,

My code is a combination of asp (vb script) and javascript working together.
I was not sure which group to go to.

Cheers, Bill.
"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:e3***************@TK2MSFTNGP12.phx.gbl...
William E Hatto wrote:
Hi to 1 and all,

my appologies to Nathan for the repost here....

I have an asp application/web site that uses a logon page then a page
for the menus and separate asp pages for all the options in the menus.

The options listed in the menu's spawn separate web windows leaving
the menu page in the background.

The code I am using is as follows;

The spawned page is called using the following javascript from the
menu page (watch the wrap);
This question has absolutely nothing to do with asp. Please post to a
client-side jscript newsgroup: look for a group with "dhtml" and jscript

in its name, or go wo .scripting.jscript which has higher traffic.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 19 '05 #3
William E Hatto wrote:
My appologies Bob,
There is absolutely no need to apologize. I was not the least bit offended
by your question's appearance here.

I was simply trying to explain to you why you would not get much response
here, and suggest a better route for you to take to get your question
answered.

My code is a combination of asp (vb script) and javascript working
together.
So it is. That does not mean your question has anything to do with asp :-)
ASP is server-side code: everything that happens between those <%...%>
script block markers is asp. Everything else is client-side. So your desire
to control browser windows, etc., can only be handled via client-side code.
The server does not and cannot know anything about what windows are open on
a client machine.

BTW, the scripting language does not determine whether the code is
server-side or client-side: both vbscript and javascript can be used in
server-side, as well as client-side code.
I was not sure which group to go to.


:-) I understand. That is why I tried to explain to you which group was
pertinent. :-)
I could have simply ignored your message, but that would have left you
wondering why nobody was responding.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
2879
by: Lamberti Fabrizio | last post by:
Hi all, I've to access to a network file from an asp pages. I've red a lot of things on old posts and on Microsoft article but I can't still solve my problem. I've got two server inside the...
2
1806
by: Patrick | last post by:
i have the following .aspx file defined: ..... other tags here ... <asp:TableCell><asp:button id="AddButton" Runat="server" Text="Add New Vessel..."</asp:button></asp:TableCell> ..... other tags...
4
1965
by: SB | last post by:
Hi I'm trying to get forms-based authentication to authenticate different users for differet pages, like this: <configuration> <location path="Member" allowOverride="true"> <system.web>...
0
846
by: Julieb215 | last post by:
I have an asp.net page that needs to spawn off a popup - printer friendly page. To do that when the user clicks the printer button I fire off the following code: Dim jj As String jj = "<script...
8
2225
by: Edward Mitchell | last post by:
I have a main project that is protected in that the user is directed to a login.aspx file. The text in the web.config file is: <authentication mode="Forms"> <forms loginUrl="Login.aspx" />...
4
1859
by: js | last post by:
I am building a intranet site that has public and private information that are rendered by ASP.Net pages. The site is not partitioned into private/public folders. When users hit the site's URL,...
7
2439
by: Alan Silver | last post by:
Hello, Sorry this is a bit wordy, but it's a pretty simple question... I have a web site, http://domain/ which is a public site, part of which (http://domain/a/) is protected by forms...
0
1329
by: jimratajski | last post by:
Can anyone tell me how to automate page numbering of spawned page templates in Acrobat? I have a number of forms containing hidden page templates that I would like to be auto numbered as they are...
0
1286
by: loorthu | last post by:
I am noticing that pexpect kills any child that it is spawned when the parent is terminated using SIGINT (e.g Ctrl-C on the shell), but not when it is killed by SIGKILL (e.g 'kill -9' on the parent...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.