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!

Oracle APEX 5, Modal Page - apex self modifying image src attribute with additional JS (when page is

Jozef Demovic SVKApr 13 2016 — edited Apr 13 2016

Hi experts,

i use some functionality to show image gallery in one PL/SQL region. I would like to reuse the same functionality to modal page.

I tried to recreate the same process with just change in image source. In modal page it is not working. It translates image src attribute to wrong string.

Is there some process for modal pages url(s) ?

Example working in normal page but not in modal page (G_IMAGE_ID is the global item):

HTP.p('<img alt="Image" src="f?p=&APP_ID.:0:&SESSION.:APPLICATION_PROCESS=ProcShowImages:::G_IMAGE_ID:1165">');

Debug result for modal one (added some extra javascript call of javascript:apex.navigation.dialog.close function in it) - It should be the same like for normal page:

HTP.p('<img alt=Image" src="javascript:apex.navigation.dialog.close(true,'f?p=650:0:16919477842019:::::');:APPLICATION_PROCESS=ProcShowImages:::G_IMAGE_ID:1165">');

Is it normal modal page behavior that src attribute is translated into something else?

Regards

J

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2016
Added on Apr 13 2016
0 comments
345 views