Mar 29th, 2011, 10:58 AM
Case:
A long form is in an iframe (sized for the actual form pixel size). Once submitted, it pulls in the thankyou.php, where two-liner text is displayed (Success blah blah).
The problem is that the submitter may not see it (too up on the page).
The form is submitted via API.
Solution:
Make the result break out of iframe-- e.g. target = top.
How:
Open api.php
Find:
Hack:
A long form is in an iframe (sized for the actual form pixel size). Once submitted, it pulls in the thankyou.php, where two-liner text is displayed (Success blah blah).
The problem is that the submitter may not see it (too up on the page).
The form is submitted via API.
Solution:
Make the result break out of iframe-- e.g. target = top.
How:
Open api.php
Find:
Code:
header("location: $next_page");
Hack:
Code:
//header("location: $next_page");
echo("<script language=\"javascript\">top.location.href = \"$next_page\"</script>;");