This seems to be a Firefox and/or I’m-a-dumb-developer issue, not a Notes issue, but hopefully someone can offer some help?
I have a form with an embedded html view on it. I have a “New” button to add documents to the embedded view. The new button unhides a div with an iframe in it, and sets the src of the iframe to an ?openform url. The form in the iframe has a submit button, which hides the div again. This all works just great.
Now from that submit button in the iframe I want to reload the parent window to refresh the view to include the new document. In the $$Return field on the iframe form I put:
“[(script type="text/javascript")parent.location.reload( true )(/script)”
*with proper tags, that didn’t seem to display properly here
Strangely enough this works just the way I want it to in IE. In firefox, it goes into an infinite submit loop. It seems like the form in the iframe lives on somehow, and each time the parent form is reloaded the form in the iframe is reloaded as well, resubmitted, reloading the parent frame, etc etc etc.
I would expect that when the parent form is reloaded, it reloads the iframe src=“” that is coded into it, and that’s the end of it, like in IE. But it’s not, somehow the iframe form lives on to drive me crazier ![]()
Can anyone edumacate me why I’m not getting what I expect in Firefox? (I have to assume Firefox has the correct behaviour and the problem is me, and IE is just a fluke!) Or more importantly some way to avoid it / work around it? Many thanks in advance.