Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Limited functionality browser window to display PHP pages linked to MySQL

Posted on 2003-10-27
4
Medium Priority
?
193 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 150 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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 article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

688 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