SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JS/DHTML pop down

    I'm trying to make a little popdown calendar.

    What I want is the user clicks the arrow, and the calendar appears. They select a date, and it disappears.

    I "thought" i could use this by putting all the calendar code inside a <div> but it's not hiding when I set it's vis to hidden.

    Here's the div:
    Code:
    <div id="calendar" STYLE="position: absolute; visibility: hidden;">
    And here's the script:
    http://66.31.37.55:8080/pop_cal/mainform.jsp

    The calendar is dynamically generated with jsp, so I don't know if that's messing it up.

    I know there's stuff like this out there for download, but i'd much rather code it myself and get the JS experience.
    Any help is appreciated.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*

  2. #2
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, can a layer support an iframe inside of it?
    This calendar has arrows to select another month, and I'd rather not have to reload that page as they might have data in the form already.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*

  3. #3
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Defender1,

    That link doesn't work for me... ?

    Yes, you can have an iframe contained by a positioned element (p, div, etc.). However, it may not respect z-index as you would expect.

    cross-browser tip: don't use 'inline' styles. Use a STYLE element in the HEAD.

    It sounds like an iframe is the way to go. Then you can hide it (or move it off-screen) when its not needed or while its loading a page.



Bookmarks

Posting Permissions

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