IFRAME AS FORM TARGET! POSSIBLE?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Federico Bari

    IFRAME AS FORM TARGET! POSSIBLE?

    Hi all,

    does somebody know how to target the answer of a form to an iframe (in
    ie expecially)???? I use iframe as temporary object to redirect the content
    do a layer built with a <div...> tag; this is possible with an hiperlink:
    clicking on it i can change the layer content whit a file in a URL location
    storing the answer first in the iframe and then sending is content to the
    <div...>. Here following the code:

    <script>
    function showText(){
    theText = window.textFile .document.body. innerHTML;
    MM_setTextOfLay er('Layer1','', theText)
    if(theText>"")
    alert(theText);
    }
    </script>

    [...]

    <div id="Layer1" style="position :absolute; left:218px; top:120px;
    width:205px; height:134px; z-index:1"></div>
    <p onClick="window .textFile.locat ion = 'testo.txt'">pr ova </p>

    testo.txt is just a static file; now i need to upgrad the final <div...>
    layer with the answer of a form gived by a php script who accep GCI variable
    .... i need to target the temp <iframe...> with a real html form. Somebody
    know how can i do?????

    Thank you very much. Federico.



  • Nobody

    #2
    Re: IFRAME AS FORM TARGET! POSSIBLE?

    The target attribute of the form must match the name attribute of the IFrame. But it won't work in anything but IE (as I recall.) So you should dynamically set the target on document load after determining that the browser has an implementation of the object model that treats IFrames in the same way it treats regular frames (check the frames collection of the window for the IFrame element.)

    "Federico Bari" <fede72bari@tis cali.it> wrote in message news:bj1aoo$dp2 $1@lacerta.tisc alinet.it...
    | Hi all,
    |
    | does somebody know how to target the answer of a form to an iframe (in
    | ie expecially)???? I use iframe as temporary object to redirect the content
    | do a layer built with a <div...> tag; this is possible with an hiperlink:
    | clicking on it i can change the layer content whit a file in a URL location
    | storing the answer first in the iframe and then sending is content to the
    | <div...>. Here following the code:
    |
    | <script>
    | function showText(){
    | theText = window.textFile .document.body. innerHTML;
    | MM_setTextOfLay er('Layer1','', theText)
    | if(theText>"")
    | alert(theText);
    | }
    | </script>
    |
    | [...]
    |
    | <div id="Layer1" style="position :absolute; left:218px; top:120px;
    | width:205px; height:134px; z-index:1"></div>
    | <p onClick="window .textFile.locat ion = 'testo.txt'">pr ova </p>
    |
    | testo.txt is just a static file; now i need to upgrad the final <div...>
    | layer with the answer of a form gived by a php script who accep GCI variable
    | ... i need to target the temp <iframe...> with a real html form. Somebody
    | know how can i do?????
    |
    | Thank you very much. Federico.
    |
    |
    |

    Comment

    Working...