/    Sign up×
Community /Pin to ProfileBookmark

iframe IE mac submit form

I am using Filemaker, CDML and IE 5.2.3.
My pages contains some JS to submit a form to an iframe.
This code works good in a number of browser on windows platform.
However my IE has some problems with.

basicly this is the code (some of it )

<form action=”FMPro” method=”post” name=”controls3″ target=”frame2″>
<input type=”hidden” name=”-db” value=”Projectmedewerkers.fp5″>
<input type=”hidden” name=”-lay” value=”L1″>
<input type=”hidden” name=”-format” value=”newproject.htm”>
<input type=”hidden” name=”-error” value=”newproject.htm”>
<input type=”hidden” name=”ProjectId” value=[FMP-CurrentToken:5]>
<input type=”hidden” name=”PersId” value=[FMP-CurrentToken:5]>
<input type=”hidden” name=”uurtarief” value=[FMP-CurrentToken:5]>
<input type=”hidden” name=”verkooptarief” value=[FMP-CurrentToken:5]>

<input type=”hidden” name=”Urenbudget” value = 0>
<input type=”hidden” name=”-New”>
</form>

<iframe name=”frame2″ id=”2″ height=”0″ width=”0″></iframe>

Now i have this JS call : document.forms[2].submit()

and indeed a new record is created.

However, when i try to create two records:
document.forms[2].submit()
delayMS()
document.forms[2].submit()

only one record is created.

Is their something wrong with my code or doe IE on the mac have problems with iframe.

Thanks for any suggestion
Jitse

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliJul 29.2003 — I have a feeling that IE on MAC is performing as it should,try your code with NS /Mozilla browsers on MAC/Windows if it works then we have to see why it does not work for IE
Copy linkTweet thisAlerts:
@jitseschaafsmaauthorJul 29.2003 — Well, indeed the code works like a charm on a windows machine.

A strange thing is happening that with IE on a mac it appears that the first submit to the iframe reloads the original HTML page containing all the commands into the iframe. As a result ( i think) the second submit is never called because the focus has been changed (i think)

The only thing i want is a robust code that enables me to submit multiple forms without refreshing my html pages.

So please any help is appreciated getting this type os code to work
Copy linkTweet thisAlerts:
@Khalid_AliJul 29.2003 — if something works like a charm on IE in Windows OS that does not meanit s the correct code...as I said try your code with NS/Mozilla browsers on windows if it works on those browsers then need to look inot it else just re write your code mainly the logic.
×

Success!

Help @jitseschaafsma spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...