bostoncybertech
asked on
Cannot pass javascritp submits on multiple iFrames on Mac Browsers
I've tried submitting posts to multiple iFrames which works on IE and Firefox but cannot get working on Firefox, IE and Safari on Mac OS X 10.3.9 and 10.4 .
Here's the javascript code:
<script language='javascript'>
<!--
function submitResults(){
var townVar = document.mapResults.town.v alue;
document.map.town.value=to wnVar;
document.map.submit();
document.mapResults.submit ();
}
-->
</script>
And the HTML:
<form name="map" action="map.php" target="map" method="POST">
<input type="hidden" name="town" value="">
<input type="hidden" name="GoButton" value="Go">
</form>
<a href='javascript:submitRes ults()'>Su bmit</a>
Here's the javascript code:
<script language='javascript'>
<!--
function submitResults(){
var townVar = document.mapResults.town.v
document.map.town.value=to
document.map.submit();
document.mapResults.submit
}
-->
</script>
And the HTML:
<form name="map" action="map.php" target="map" method="POST">
<input type="hidden" name="town" value="">
<input type="hidden" name="GoButton" value="Go">
</form>
<a href='javascript:submitRes
Neither submitted or one of them didn't submit?
ASKER
One did not, to mapResults
Can you post HTML for mapResults as well?
ASKER
Well I can't really post the whole thing since it's work sensitive material, but here's the part where it gets the post.
if ($_POST['town']<>""){
$whereTown=$_POST['town'];
} else {
$whereTown=$_GET['town'];
}
if ($_POST['town']<>""){
$whereTown=$_POST['town'];
} else {
$whereTown=$_GET['town'];
}
ASKER
That's PHP on mapResults.php of course
are map.php and mapResults.php served up by the same server/domain?
ASKER
yes
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hmm...nope I should try this. This question has been going on for a long time so I'll accept your solution.