Link to home
Start Free TrialLog in
Avatar of bostoncybertech
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.value;
      document.map.town.value=townVar;
      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:submitResults()'>Submit</a>
Avatar of techhealth
techhealth
Flag of United States of America image

Neither submitted or one of them didn't submit?
Avatar of bostoncybertech
bostoncybertech

ASKER

One did not, to mapResults
Can you post HTML for mapResults as well?
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'];
            }
That's PHP on mapResults.php of course
are map.php and mapResults.php served up by the same server/domain?
yes
ASKER CERTIFIED SOLUTION
Avatar of techhealth
techhealth
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hmm...nope I should try this.  This question has been going on for a long time so I'll accept your solution.