iframe and load/unload events

G

gesres

I'm using an iframe to host an .aspx form. When I replace the source,
via javascript, with a new .aspx page, the unload event doesn't fire,
nor does the load even fire when I restore the original page. I want
them to. Thanks for any suggestions.
 
E

Eliyahu Goldin

Could be you are having a caching problem. Try calling the page with a
random query parameter to trick the browser into updating it every time from
the server.

Eliyahu
 
G

gesres

<<Could be you are having a caching problem. >>

I turned off caching and that seemed to solve the problem.

Thank you!
 
Joined
Feb 13, 2008
Messages
1
Reaction score
0
Hi,
I could not trigger the unload handler on a iframe. Iframe does not have a unload/onbefeoreunload call so I was trying to access the contentWindow of the iframe and use te onbeforeunload call. It didn't work.

Could you please share how you got the iframe to call the unload handler?

Thanks,
Madhumita
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top