Solved

Limited functionality browser window to display PHP pages linked to MySQL

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
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 …

746 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

13 Experts available now in Live!

Get 1:1 Help Now