Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

APEX 5.1 Modal page - execute JavaScript when HTML is added to DOM

6704af4e-98cb-4e7a-b4e8-2f98bb31ff6cJul 31 2017 — edited Aug 1 2017

I'm trying to execute a JavaScript when a APEX 5.1 modal page is loaded and it's HTML is added to the DOM. The problem with adding the JavaScript to the "Execute when Page Loads" section is that the HTML isn't added to the DOM at that time.

For example I select an iframe element with jQuery $('iframe') and the code is placed in "Execute when Page Loads"  and I'm getting that there is no such element in the DOM, but after that I try running this JavaScript and jQuery finds it.

How can I catch the event when the modal page is loaded and it's HTML is added to the DOM?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2017
Added on Jul 31 2017
4 comments
489 views