JavaScript
  Home arrow JavaScript arrow Page 4 - Creating Pop-up Notes with CSS and JavaScr...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Creating Pop-up Notes with CSS and JavaScript Part II
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 22
    2005-01-24

    Table of Contents:
  • Creating Pop-up Notes with CSS and JavaScript Part II
  • The HTML markup
  • The complete code
  • Summary

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating Pop-up Notes with CSS and JavaScript Part II - Summary


    (Page 4 of 4 )

    We’ve gone a long way to make sure that our scripts works with multiple pop-up notes, and is useful when working with modern browsers. However, what about older browsers, or current browsers with JavaScript turned off? What about people with disabilities who use a screen reader? Considering that the number of people that fall under any of these categories is small, it’s still a strong reason to use JavaScript code prudently. Regarding this particular example, if JavaScript is turned off, the rest of the Web page content will still work, even without the notes. But it’s strongly recommended to use pop-up notes to provide additional information. Sensitive and critical information should always be presented to the users in the safest way possible.

    Before we go deeper into the code, it’s valid to consider that when we’re working with CSS and JavaScript, browser incompatibility issues might come up. So, it’s always advisable to perform a browser checking process to generate the proper code, in order to determine which version of the Document Object Model (DOM) to use, which is often associated with the old browsers.

    var ns4=document.layers; // Nestcape 4

    var ie4=document.all;  // Internet Explorer 4

    var nn6=document.getElementById && ! document.all; // Nestcape 6

    if(ns4){
                // code for Netscape 4 goes here
    }
    else if(ie4){
                // code for Internet Explorer 4 goes here
    }
    else if(nn6){
                // code for Nestcape 6 goes here
    }

    Keep browser compatibility issues in mind when creating pop-up notes. I hope you've found these articles useful. 


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       ·  Here's the second part of the article. We're dealing with creating multiple...
       · I'm confused as to why you've used visibility:hidden; instead of...
       ·  That's right. Visibiliy simply hides the element without removing it from the...
       · The notes stay visible in Safari (1.2.4) when using onmousemove - changing to...
       ·  Yes,I've tried with Firefox, but it doesn't handle properly the event object when a...
       · Error: event is not definedSource File:...
       · Hi,I was unable to acces your provided URL.Alejandro Gervasio
       · As the code is it does not work with Firefox. It did, however, work properly with...
       · Hi Alejandro,Great article. From it, I figured out 2 things:1) simpler way...
       · Hi thereI have tried this with long pages. The pop-up notes work in the top part...
       · Hello,Thank for your comments on this article. With reference to your question,...
       · Hello,Thanks for the comments. Regarding your question, here's a modified...
       · Thank you very much AlejandroI used some bits of your code along with info from...
       · Hello again,Thank you for posting your message. I'm glad to hear that you found...
       · Even with this modified code, I still see the same problem. The pops aren't visible...
       · Thank you for your feedback. I changed the function I posted before, in order to...
       · Hi, I am trying to get multiple pop-up notes to appear when I click on an image...
       · Thanks for commenting on my JavaScript article. Concerning your question, this...
     

    JAVASCRIPT ARTICLES

    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT