HighDots Forums  

Help with understanding of window handling??

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Help with understanding of window handling?? in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bob Mariotti
 
Posts: n/a

Default Help with understanding of window handling?? - 07-31-2003 , 09:12 PM






Please bear with me as I am not a skilled html programmer. I have a
situation that I am having difficulty overcoming and perhaps you
"experts" can show me the way.

I have a given web site where the first page is a login page. From
this page an imbedded <FORM> contains a <TARGET="_blank"> to open the
reference cgi (a perl script) in a new window. The perl script
authenticates the login and then does one of two things.

If successful it generates a dynamic page of content output to the 2nd
window.

If NOT successful it redisplays the login screen which now contains an
error message.

Obviously this works great IF the login is successful. However, if
not the redisplayed login in displayed in the 2nd window as well. Of
course this is not correct.

My question(s) relate to the following:

How can I cause the redisplayed login page to display in the 1st
window and then close the 2nd window. OR, is there any way to modify
the message field in the 1st screen from the 2nd screen then close the
2nd window?

Or, is there a better way to do this? And, remember, the generated
successful page is dynamic so its not as easy as calling an html URL.

Advice, suggestions, recommendations very much appreciated. We all
have to learn.

Thanks

Bob

Reply With Quote
  #2  
Old   
Dave Patton
 
Posts: n/a

Default Re: Help with understanding of window handling?? - 08-01-2003 , 12:37 AM






R.Mariotti (AT) FinancialDataCorp (DOT) com (Bob Mariotti) wrote in
news:3f29bcc9.134463071 (AT) news (DOT) cshore.com:

Quote:
Please bear with me as I am not a skilled html programmer. I have a
situation that I am having difficulty overcoming and perhaps you
"experts" can show me the way.

I have a given web site where the first page is a login page. From
this page an imbedded <FORM> contains a <TARGET="_blank"> to open the
reference cgi (a perl script) in a new window. The perl script
authenticates the login and then does one of two things.

If successful it generates a dynamic page of content output to the 2nd
window.

If NOT successful it redisplays the login screen which now contains an
error message.

Obviously this works great IF the login is successful. However, if
not the redisplayed login in displayed in the 2nd window as well. Of
course this is not correct.

My question(s) relate to the following:

How can I cause the redisplayed login page to display in the 1st
window and then close the 2nd window. OR, is there any way to modify
the message field in the 1st screen from the 2nd screen then close the
2nd window?

Or, is there a better way to do this? And, remember, the generated
successful page is dynamic so its not as easy as calling an html URL.

Advice, suggestions, recommendations very much appreciated. We all
have to learn.
Use server-side scripting(e.g. perl, PHP) to generate the login page
content, and accept/validate the login data, and either generate
a 'please try again' login page or the page with the dynamic content.
All this in the same window.
Your approach won't work if the user agent(e.g. browser) has
popup windows disabled.

--
Dave Patton
Canadian Coordinator, the Degree Confluence Project
http://www.confluence.org dpatton at confluence dot org
My website: http://members.shaw.ca/davepatton/
Vancouver/Whistler - host of the 2010 Winter Olympics


Reply With Quote
  #3  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Help with understanding of window handling?? - 08-01-2003 , 03:24 AM



R.Mariotti (AT) FinancialDataCorp (DOT) com (Bob Mariotti) wrote:

Quote:
Please bear with me as I am not a skilled html programmer.
None of us is, but many of us know HTML well enough to understand that
is not programming at all.

Quote:
I have a given web site where the first page is a login page. From
this page an imbedded <FORM> contains a <TARGET="_blank"> to open
the reference cgi (a perl script) in a new window.
Why? It would be simpler to anyone to use the existing window.

Quote:
Obviously this works great IF the login is successful.
What's so great in having a login screen on the window after you've
logged in?

Quote:
How can I cause the redisplayed login page to display in the 1st
window and then close the 2nd window.
You cannot do that in HTML. If you really want to try something like
that, it would be programming, hence not HTML, thus off-topic here.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


Reply With Quote
  #4  
Old   
Bob Mariotti
 
Posts: n/a

Default Re: Help with understanding of window handling?? - 08-11-2003 , 03:36 PM



OK - I most certainly understand what you are all saying about keeping
all the action in the current window.

However, my issue is relative to the history (i.e.: Back Button).

When the user is done with the site and returns to the login page
(i.e.: logs off) the history needs to GO AWAY to prevent unauthorized
use of the back button URL's.

Any suggestions as to how better to handle this?

Thanks

Bob

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.