Results 1 to 3 of 3

Thread: load a div popup window on click

  1. #1
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default load a div popup window on click

    please help me
    i want to load a div in place of loading a URL

    HTML Code:
    <a href='javascript:createWindow(popup_url)'>click</a>
    but in place of loading a url, i want to load a div when clicked but div exists in same file but hiddenn and only visible in POPUP window

    HTML Code:
    <a href='javascript:createWindow(popup_DIV)'>click</a>

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You can do that. But if the content is already on the page, why load a pop up window that could be blocked? You could instead load pop up content like with:

    http://www.dynamicdrive.com/dynamici...ndow/index.htm

    or with:

    http://colorpowered.com/colorbox/

    There are at least several other scripts around that do that sort of thing.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2011
    Location
    both, Germany and Bulgaria
    Posts
    54
    Thanks
    14
    Thanked 10 Times in 10 Posts

    Cool

    Or maybe this one is just enough:
    http://craigsworks.com/projects/qtip/

    Cheers

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
  •