Click to See Complete Forum and Search --> : iframe IE mac submit form


jitseschaafsma
07-29-2003, 06:54 AM
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

Khalid Ali
07-29-2003, 08:44 AM
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

jitseschaafsma
07-29-2003, 09:02 AM
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

Khalid Ali
07-29-2003, 09:18 AM
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.