CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 popup window behavior

Print topic Send  topic

Author Message
ryan

Posts: 41
Posted: 05/28/2004, 5:50 AM

Long no time no post experts :

I'm having a problem with popup window behavior typically the x or close button is there any way to disable this.

I've completed a product order list wherein you checkbox-enable-textbox and put in the quantity you want then by pressing submit will popup a confirmation window.

The confirmation window limits the price. For example one field in my database says you are limited to order only up to $500.00 that means if u exceeded the popup will display a "Choose Again" button, only when you have the right amount 2 butons will show "Choose Again" & "Submit"

Choose Again closes the window and takes you back to the parent, no fancy refresh because you are in the add/edit mode again. The submit closes the window and refreshes a new summary parent browser.

All this happens so fast my backend is SQL server. The thing is this Choose Again OnEvent is crucial because it deletes the Temporary Order, making it possible for me to recalculate everything. If the uses closes the window x, Alt F4, other than clicking that button. The process will not recompute and I have tons of coding and stored procedures that does this

->WHERE NOT IN (.....)
->if this product is chosen update, if not add

So the problem is can I force my users to click that "Choose Again" button or disable the x window so that they can't close it by any other means except by clicking that button only.

This sounds assinine but I've encountered many javatricks that disables the right click and view source so maybe I assume there's a document object thingy to do the same for alt F4 when window focus or disabling the x/close button

much obliged...
_________________
(\__/)
(='.'=)
(")_(")
View profile  Send private message
peterr


Posts: 5971
Posted: 05/28/2004, 10:57 AM

Without researching JavaScript I would only say that this may not be possible because probably all the porno and spam Websites would use this trick to note let you get out of their Website :-)
At least I read some articles about how those Websites hijack the browser, hide the buttons and utilize other tricks so that users cannot get out of their Website. But if closing the browser window would be possible than probably the US government would pass a law to make sure that it can be closed :-)
Just my uneducated guess.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 05/28/2004, 11:03 AM

However, I've seen such solution: when the user closes the browser window, the application opens another browser window that displays this message:
"WARNING!
Please select Exit to leave the application. Clicking the 'X' in the browser window does not close the application and can cause access issues in the future."

Not sure though if this would be sufficient for you.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.