• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

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>
0
bostoncybertech
Asked:
bostoncybertech
  • 5
  • 4
1 Solution
 
techhealthCommented:
Neither submitted or one of them didn't submit?
0
 
bostoncybertechAuthor Commented:
One did not, to mapResults
0
 
techhealthCommented:
Can you post HTML for mapResults as well?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
bostoncybertechAuthor Commented:
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'];
            }
0
 
bostoncybertechAuthor Commented:
That's PHP on mapResults.php of course
0
 
techhealthCommented:
are map.php and mapResults.php served up by the same server/domain?
0
 
bostoncybertechAuthor Commented:
yes
0
 
techhealthCommented:
I suspect there's subtle difference in DOM implementation on OS X browsers (shouldn't be like that but it could).  Did you use DOM Inspector (or something similar) on your page from both OS X and other platforms and compare?
0
 
bostoncybertechAuthor Commented:
Hmm...nope I should try this.  This question has been going on for a long time so I'll accept your solution.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now