You're right for the HTML solution.
And I think the variable in the load event (enabled by a form submit) is the
only way.

but what about storing it in the iframe itself?

http://jsfiddle.net/MhsYp/6/

thanks

-V-




2011/6/8 Arian Stolwijk <[email protected]>

> That in the HTML works because the load event probably already fired before
> you added the event to it.
>
>
> On Wed, Jun 8, 2011 at 12:59 PM, Arian Stolwijk <[email protected]> wrote:
>
>> Not that I know, maybe you should've a look at
>> https://github.com/arian/iFrameFormRequest/blob/master/Source/iFrameFormRequest.js
>>  which
>> solves the problem by a *loading* variable so the stuff in your load
>> event is only called when it is supposed to.
>>
>> On Wed, Jun 8, 2011 at 12:27 PM, vitotafuni <[email protected]> wrote:
>>
>>> hi to all
>>>
>>> http://jsfiddle.net/MhsYp/1/
>>>
>>> is there a way to avoid the load event of the injected iframe to be fired
>>> on page load? I need it only on form submit!
>>>
>>> thanks
>>>
>>
>>
>

Reply via email to