Forms and Iframes

2

Is it possible to use <iframe> within <form> ?

I am making a code where I pass id on <div> and within <form> with another id , so within <form> I want to call a <iframe> where my content is. p>

Short code:

<tr>
    <td height="300" width="" class="tb-conteudo" colspan="4" align="left" valign="top" >  
        <div id="div_usua" class="conteudo" style="display: none; padding-top:5px;">
            <form id="form_usua">
                <table align="left" border="0" width="2%">
                    <tr>
                        <td>
                            <iframe style="border-radius:20px;" scrolling="no" src="../sai_cada_usua/menu_com_abas_usua.php" width="900" height="400" >
                            </iframe>
                        </td>
                    </tr>
                </form> 
            </table>
        </div>
    </td>
</tr>   

Full Code: JSF

    
asked by anonymous 26.06.2014 / 14:50

1 answer

4

Regarding your question:
 "Is it possible to use one within one?" the answer is: depends on what you want to do .

If you want to insert data inside the iframe and want it to be taken by the form when submitting it, then the answer is no .

If the question is only technical, ie if you can have an iframe inside a form to show content or advertising, the answer is yes .

But if the content of the iFrame is in the same domain, it would be best to use AJAX to load content into the same page instead of compiling and creating another page / session (which is what the iframe does).

    
26.06.2014 / 14:57