Results 1 to 3 of 3

Thread: Drop-down Document Viewer II

  1. #1
    Join Date
    Feb 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Drop-down Document Viewer II

    Hey guys or gals, I'm having the most difficult time on the getting my code to work. It's a simple Drop-down Document Viewer and I'm trying to get it to work with a simple <input type="text"> rather then a button, image, or link.

    Is this possible to have the user type in their own URL rather then one being already made?

    Here is the link on what I'm talking about.

    http://www.dynamicdrive.com/dynamici...pdownview2.htm

    Thank you in advance!
    regards,
    Mopheen

  2. #2
    Join Date
    Feb 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post wow, no one can help

    WOW, no one here can give me a hand. I'm still struggling on getting this to work. Any help would be great!

  3. #3
    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

    This has already been done several times, in several ways. When I get a chance I will either write yet another way, or find one of the other examples.

    However, this entire approach has a few problems. Support for iframe is being phased out. Some browsers already support not allowing iframes. Even with an iframe available, many sites will not allow themselves to be displayed in an iframe. This isn't so bad when you, the designer get to pick the sites, but when the user can type in the addresses, there is no telling what sites will be chosen - therefore no way of knowing if these sites will allow themselves to appear in the iframe. Those that do not will take over the entire page, or at least try to (some users will find that when viewing this page on the internet over certain local networks not even that will be allowed, so a blank page may be displayed or some sort of error, or even a reprimand).

    Try:

    Code:
    URL: <input type="text" id="theurl"> 
    <input type="button" onclick="jumpto(document.getElementById('theurl').value);" value="Go!">
    Last edited by jscheuer1; 03-04-2008 at 05:31 PM. Reason: add info
    - John
    ________________________

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

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
  •