Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    Irving, TX (Dallas, Fort Worth)
    Posts
    379

    Unanswered: How do I or Script Needed

    I need to either build or find a script that writes an <iframe> inline based on either selection from a Selection field or the selection and a Submit button.

    Anyone have such code or know how I should proceed?

    DBS4M

  2. #2
    Join Date
    Apr 2005
    Location
    Baltimore, MD
    Posts
    297
    I don't use IFRAMES at all so this may be way off, but you could probably try something like.


    Code:
    function iFrameNavTo(str) {
       var holder = document.getElementById("IFRAMEHOLDER");
       holder.innerHTML = "<IFRAME SRC='" + str + "'></IFRAME>";
    }
    
    <DIV ID="IFRAMEHOLDER">
    </DIV>
    ...
    <FORM ...>
    <SELECT OnChange="iFrameNavTo(this.options[this.selectedIndex].value);">
    ...
    This is assuming that you want to navigate the IFRAME to a different page based upon the value in your select box.

Posting Permissions

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