Solved

Limited functionality browser window to display PHP pages linked to MySQL

Posted on 2003-10-27
4
187 Views
Last Modified: 2011-08-18
I currently have a simple Time Clock application that logs in a user with a password and timestamps that user when s/he clicks clock in.  Then whenever that user logs in again, it checks to see if s/he has already clocked in and presents a clock out page as necessary. This application works great.  I would now like to create a standalone application that uses a window without the address bar or any of the other menus.  I can accomplish this with a popup window, but I would rather not use a popup window as the main screen because the user has to close the initial browser window.  What would be the best way to accomplish this?  What language would be the simplest to write this in?  Any pointers as to where to start would be appreciated.
0
Comment
Question by:smiffdog
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:shmert
ID: 9629769
well, if you open a popup window with javascript you can always close the opening window with

window.opener.close();
0
 

Author Comment

by:smiffdog
ID: 9629781
but if you use window.opener.close();  doesn't the user have to affirm that the window is actually supposed to be closed?  That is what I'm trying to move away from.  
0
 
LVL 11

Accepted Solution

by:
shmert earned 50 total points
ID: 9630045
There is no dialog prompting that the window should be closed.  If someone links to your entry page, maybe a good thing to do would be:
* Open the new javascript window without any location bar
* Check if there is history in the browser window, and go back 1 page if available
* otherwise, just close the window (somone typed the URL in directly, or opened your timer app in a new window anyway)
0
 

Author Comment

by:smiffdog
ID: 9630149
Thanks for the info.  Because of the window.opener.close(); script, I got something to work.  In the entry page, I used --window.opener='  ';  to make IE think that the main window is actually a sub window.  Then I used the window.close() to close the main window with no prompt.  So, I think you deserve the prize because you did point me in the right direction.

By the way, I wanted to put a shortcut on their desktop or maybe open the timeclock up automatically when the user logs on his/her computer in the mornings.  That is why I needed to close the window seamlessly.

Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now