Solved

Limited functionality browser window to display PHP pages linked to MySQL

Posted on 2003-10-27
4
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

623 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