Results 1 to 2 of 2

Thread: Firefox and Iframe SSI script II w/ Drop Down menu

  1. #1
    Join Date
    Jan 2007
    Thanked 0 Times in 0 Posts

    Default Firefox and Iframe SSI script II w/ Drop Down menu

    1) Script Title: Iframe SSI script II

    2) Script URL (on DD):

    3) Describe problem:

    I have a dropdown menu linked to pages to reload in the iframe on my website, and it works beautifully in IE, but it doesn't work at all in FF. I'm using a CMS, Xoops, but i don't think that matters and i know it's gotta be something simple dealing with the way im linkin the dropdown and links or something.. I REALLY need this to work !! Ugh! here's the code...
    function land(ref, target)
    if (lowtarget=="_self") {window.location=loc;}
    else {if (lowtarget=="_top") {top.location=loc;}
    else {if (lowtarget=="_blank") {;}
    else {if (lowtarget=="_parent") {parent.location=loc;}
    else {parent.frames[target].location=loc;};
    function jump(menu)
    if (splitc!=-1)
    else {loc=ref; target="_self";};
    if (ref != "") {land(loc,target);}
    <script type="text/javascript">
    * IFrame SSI script II-  Dynamic Drive DHTML code library (
    * Visit for hundreds of original DHTML scripts
    * This notice must stay intact for legal use
    //Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
    //Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
    var iframeids=["myframe"]
    //Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
    var iframehide="no"
    var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
    var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
    function resizeCaller() {
    var dyniframe=new Array()
    for (i=0; i<iframeids.length; i++){
    if (document.getElementById)
    //reveal iframe for lower end browsers? (see var above):
    if ((document.all || document.getElementById) && iframehide=="no"){
    var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])"block"
    function resizeIframe(frameid){
    var currentfr=document.getElementById(frameid)
    if (currentfr && !window.opera){"block"
    if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
    currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; 
    else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
    currentfr.height = currentfr.Document.body.scrollHeight;
    if (currentfr.addEventListener)
    currentfr.addEventListener("load", readjustIframe, false)
    else if (currentfr.attachEvent){
    currentfr.detachEvent("onload", readjustIframe) // Bug fix line
    currentfr.attachEvent("onload", readjustIframe)
    function readjustIframe(loadevt) {
    var crossevt=(window.event)? event : loadevt
    var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
    if (iframeroot)
    function loadintoIframe(iframeid, url){
    if (document.getElementById)
    if (window.addEventListener)
    window.addEventListener("load", resizeCaller, false)
    else if (window.attachEvent)
    window.attachEvent("onload", resizeCaller)
    <form action="dummy" method="post">
      <select name="choice" size="1" onChange="jump(this.form)">
        <option value="*myframe">- Choose a Date -</option>
        <option value="*myframe">Wednesday, Jan. 3rd</option>
        <option value="*myframe">Thursday, Jan. 4th</option>
        <option value="*myframe">Friday, Jan. 5th</option>
        <option value="*myframe">Saturday, Jan. 6th</option>
    <option value="*myframe">Sunday, Jan. 7th</option>
    <option value="*myframe">Monday, Jan. 8th</option>
    <option value="*myframe">Tuesday, Jan. 9th</option>
    <option value="*myframe">Wednesday, Jan. 10th</option>
    <option value="*myframe">Thursday, Jan. 11th</option>
    <iframe id="myframe" src="" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
    Thanks for any help!
    God Bless,
    Nate Birkley

  2. #2
    Join Date
    Jan 2007
    Thanked 0 Times in 0 Posts


    PLEASE HELP! I really need to launch this website ASAP! And this Iframe is ESSENTIAL b/c we are a theatre and in this area there will be showtimes.


Posting Permissions

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