The net's largest PHP, CGI, Perl, JavaScript and ASP script collection and resource web portal
  New Listings
New Listings
Most Popular
Most Popular
Top Rated
Top Rated
Discussion
Discussion
Link to Us!
Link To Us
Search For:         
   
 
Categories

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
Remotely Hosted
Ruby on Rails
Tools and Utilities
Web Hosting
XML

Sponsor Links



Home :: JavaScript :: Scripts and Programs :: Alerts and Prompts Notes 

Cross-browser alternative for javascript prompt Hits: 2026


Description:
In yet another sly move by Micro$oft, MSIE 7 has been designed to suppress the javascript prompt function, yet at the same time always allow their MSIE-specific showModalDialog method. This has broken millions of web sites. The work-arounds to this problem are any of these: 1. Use the showModalDialog method instead and thereby only support MSIE browsers (they wish). 2. Do away with using prompt dialogs completely. 3. Use simulated modal dialogs with layer's and key capturing (complicated and messy). 4. Use a class such as this to that mimics the javascript prompt function for MSIE 7 and up by using showModalDialog(). Usage: Place the files Prompt.js, Prompt.html, and Prompt.png together into any directory in your site. Do not rename any of the files or else it won't work. Place this line in the head section of your html: <script type="text/javascript" src="/path/to/Prompt.js"& gt; </script> Example: var name = Prompt.show('Who are you?');


 Resource Specification
Platform(s): linux, windows, freebsd, osx, sun
Date Added: Mar 28, 2007
Last Updated: Mar 28, 2007
Author: Craig Manley


 Share


 License Information
License # 1:
  License Type: LGPL Price: Free


Average Visitor Rating:     4.00 (out of 5)
Number of Ratings: 2 Votes

  Visitor ratings breakdown by period
  Last 7 Days 0 0 0 0 0 0.00
  Last Month 0 0 0 0 0 0.00
  Last Year 0 0 1 0 0 3.00
  Overall 0 0 1 0 1 4.00
  1 2 3 4 5 AVG
  Visitor Rating Totals
1 2 3 4 5


  Visitor Voting Booth

Average Member Rating: Not yet reviewed by any member....

You can be the FIRST one to write a review for Cross-browser alternative for javascript prompt.






 

Register | FAQ/Support | Contact Us | About Us | Getting Rated | Link to Us | Bookmark Us | Advertising Info | Terms of Use | Privacy Policy
Copyright © 2008 iNET Interactive. All rights reserved.
Other iNET Interactive Sites:
Web Hosting Talk | dBForums | Mac Forums | Hosting Catalog