cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting unload event on leaving IFrame

frank_stdle
Participant
0 Kudos

Hi

I have an Iframe element in my WDA view. A Javascript web application is running inside the iFrame. When I exit the WDA view (click Next button) I want the web application to POST data to a ICF node in SAP. I tried registering the unload event in the web app, but apparantly the unload event is not triggered for the IFrame when leaving the WDA view.

Do you have any suggestion on how to detect (within the web app in the Iframe) that the user is navigating away from the WDA view?

thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Frank,

its just an idea. Perhaps you can detect leaving the WDA view in the WD application (wdDoExit-Method of the View) and then execute an additional javascript to trigger the webbApp ?

http://help.sap.com/saphelp_470/helpdata/en/49/a8e3c8d59811d4b2e90050dadfb92b/content.htm

Kind regards

Andreas

Edited by: Andreas Milbredt on Feb 15, 2010 2:47 PM

frank_stdle
Participant
0 Kudos

Thanks, but I'm afraid it's already too late by then -- since it's just a stateless JS web page I need to post data back to SAP before leaving the web page.