PHP Classes

confirm: Generate confirm dialog

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 2,350 This week: 1All time: 1,660 This week: 560Up
Version License Categories
confirm 1.0GNU General Publi...HTML
Description 

Author

Generates on MSIE>3 a vbscript confirm dialog before the user may execute a critical link or form. Non IE clients will produce a standard confirm() dialog.
When the normal javascript confirm() dialog is used there is one danger: the default button is "YES" and thumbfingered users may confirm unwanted. A better approach is to generate a vbscript (for them IE users) dialog and call this dialog using javascript. So the programmer can change anything in the appearance of the dialog, even the title and better: the default button may be "No". This class tries to see what browser is given.

Confirm will generate the standard javascript confirm() dialog on non-vbscript-browsers. At the moment only MSIE > 3 is allowed to generate the vbscript dialog in this class, maybe some research reveils other browsers which also support vbscript.

Picture of Peter Klauer
Name: Peter Klauer <contact>
Classes: 18 packages by
Country: Germany Germany
Age: 65
All time rank: 352 in Germany Germany
Week rank: 416 Down16 in Germany Germany Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Plain text file confirm.php Class The class file
Accessible without login Plain text file test_confirm.php Example The demo file for the class "confirm"

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,350
This week:1
All time:1,660
This week:560Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1429