- 1,233 categories
- 40,467 scripts
Updated: 03/28/2007
- 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?'');
- Categories
- Tags
- Platforms
- Licenses
- Author
- COOLjsMenu is an advanced cross-browser JavaScript menu that provides with some unique features that are not to be found elsewhere. Easily adjustable and configurable from the control file it requires no programming knowledge from the user and can be...
- Here you will find an error class called CError that allows you to display a custom dialog box with the option to have a detailed message, a general message, and log the error in a file for later reference. Also uses some JavaScript and DHTML to allo...
- The Big Faceless Java Graph Library is a 100% Java class library for creating graphs and charts. Version 2 of the Graph Library builds on the same full 3D platform and adds a substantial number of new features requested over the last 5 years. Enhance...
- Intended for programmers interested in experimenting with complex user interface elements, this tutorial explores using PHP to generate JavaScript based on data in a database. This tutorial explains a class called chainedSelectors. This class helps y...
- Specifically designed for JavaScript Junkies, jsView is an image display applet that supports an unlimited number of images. Images are dynamically loaded into the applet via JavaScript calls, on demand, eliminating typically long start-up loading ti...