SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard WorldNews's Avatar
    Join Date
    Nov 2007
    1 Post(s)
    0 Thread(s)

    How does one launch a Modal Window that is Javascript based


    How does one launch a Modal window which action is taken by Javascript
    rather than the user clicking on a link?

    To be exact we currently use Lightbox CSS to launch forms into Modal Windows, which you can see from this Web site:
    realnewspost: A News site powered by the Social Network to get the TRUTH out
    when you click on the Sign-in link at the top.

    What I need to get done, is when for example the user enters a value in a form, via Javascript we check the value entered and then Pop a Modal Window or when user submits the form, the resulting page which is then generated by Php will cause a Modal window to pop.

    Also please specify whether the content of the Modal window based on your suggested solution needs to be a separate Web page or whether it can be content (Text/Image link) from the page which launched the Modal window, which is preferred.


    Anoox search engine volunteer

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Melbourne, AU
    460 Post(s)
    8 Thread(s)
    [Note: moved this from CSS to the JavaScript forum.]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts