Dentro de ese iframe usare un textbox dentro de un form, el problema que tengo es que la forma no esta funcionando, al oprimir el boton no sucede nada, y quiero que corra una funcion de javascript. Si oprimo con la tecla 'enter' refresca la pagina y me manda lo que escribi en el textbox como 'get'
De que manera puedo solucionar esto, es decir que el form dentro del iframe funcione?
Espero que alquien pueda ayudarme
Saludos a todos
Este es el codigo
Código HTML:
<script language="JavaScript" type="text/javascript"> load:function(t, contenttype, contentsource, title){ //loads content into window plus set its title (3 content types: "inline", "iframe", or "ajax") var contenttype=contenttype.toLowerCase() //convert string to lower case if (typeof title!="undefined") t.handle.firstChild.nodeValue=title if (contenttype=="inline") t.contentarea.innerHTML=contentsource else if (contenttype=="div"){ t.contentarea.innerHTML=document.getElementById(contentsource).innerHTML //Populate window with contents of specified div on page document.getElementById(contentsource).style.display="none" //hide that div } else if (contenttype=="iframe"){ t.contentarea.style.overflow="hidden" //disable window scrollbars, as iframe already contains scrollbars if (!t.contentarea.firstChild || t.contentarea.firstChild.tagName!="IFRAME") //If iframe tag doesn't exist already, create it first t.contentarea.innerHTML='<iframe src="" style="margin:0; padding:0; width:100%; height: 100%" name="_iframe-'+t.id+'"></iframe>' window.frames["_iframe-"+t.id].location.replace(contentsource) //set location of iframe window to specified URL } else if (contenttype=="ajax"){ this.ajax_connect(contentsource, t) //populate window with external contents fetched via Ajax } t.contentarea.datatype=contenttype //store contenttype of current window for future reference } </script>