• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • 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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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