Results 1 to 4 of 4

Thread: A popup form that works without changing the whole page

  1. #1
    Join Date
    Jul 2007

    A popup form that works without changing the whole page

    I've seen this on Tiffany.com (after you choose a country)

    they have on the bottom left a button, and when you click on it you get the form to join the mailing list. when you submit it's processing and show you a "thank you" instead of the button, without changing the whole page.

    I'm new to javascript so please be gentle, thank you in advance.

  2. #2
    Join Date
    Jul 2007

  3. #3
    pugs421 is offline Professional WebDeveloper
    Join Date
    Jul 2007
    Palm City, Florida
    <script type="text/javascript">
    function showHide(ElementID){
    	var oElement = document.getElementById(ElementID);
    	if(oElement.style.display == 'none'){
    		oElement.style.display = '';
    		oElement.style.display = 'none';
    <a href="Javascript:void(0);" onclick="showHide('divFormParent');return false;">showform</a>
    <div style="position:relative;">
    <div id="divFormParent" style="display:none;position:absolute;z-Index:1;">
    <a href="Javascript:void(0);" onclick="showHide('divFormParent');return false;">close</a><br>
    <SELECT NAME=sections size="5">
    <OPTION>Web Authoring Reference</OPTION>
    <OPTION>FAQ Archives</OPTION>
    <OPTION>Design Elements</OPTION>
    <OPTION>Feature Article</OPTION>
    Last edited by pugs421; 07-21-2007 at 04:15 PM.

  4. #4
    Join Date
    Jul 2007

    Thank you very much

    Thank you for your very helpful reply!

    I was busy implementing it, and I appreciate it a lot.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles