Form Validation with DIV
Ok, lets start.
Im using a script that enables the same style of iframe. Instead of setting iframe to display my content, im using a Div for it.
When I click the form, it will be displayed at the Div.
On clicking the submit, we got a redirect page, which does not accept any kind of target.
Destroying all the design based on the Div Ive set.
The question is: How can I redict the confirmantion on form to be displayed on that Div?
Since the redicted cant accept a target...
Heres the script for using Div as iframe
function carrega(_strNomePagina)
{
xmlhttp.open("GET", _strNomePagina, true);
xmlhttp.setRequestHeader("Content-Type", "text/html; charset=iso-8859-1");
xmlhttp.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate");
xmlhttp.setRequestHeader("Cache-Control", "post-check=0, pre-check=0");
xmlhttp.setRequestHeader("Pragma", "no-cache");
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState==3)
{
document.getElementById("corpo").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}
Corpo is the Div ID, im using to display all my stuff.
And here is the common redirect we have on any common form:
<input type="hidden" name="redirect" value="http://www.mysite.com.br/ok.html" />
The ok.html is the confimation page, that says to the user the form was sent.
Actually, it displays the ok.html.. But not inside the Corpo (div id), destroying all my layout because it becomes an orphan page.
Which I need it to be displayed on Corpo (div id).
Comments
Be the first to write a comment
You must me logged in to write a comment.