Solved

Limited functionality browser window to display PHP pages linked to MySQL

Posted on 2003-10-27
4
189 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to create an extensible mechanism for linked drop downs.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

830 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