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!

Executing Javascript in injected HTML

partlycloudyApr 9 2009 — edited Apr 12 2009
Say I use the Ajax support built into Apex to inject a report region into a page (as one of Carl's examples shows). Now I would like one of the report columns to do a drilldown i.e. when I click on a report column, I call a function do_drilldown('#SOME_VALUE#'). Regardless of whether I define the do_drilldown function on either the "host" page or the injected page/region, it doesn't work, FF throws a 'function not defined' error.

Googling for keywords like [javascript inject html execute|http://www.google.com/search?q=javascript+execute+function+injected+innerhtml] shows that this is a common issue but the solutions given are a bit cumbersome (and insecure?) to implement.

How is this sort of thing typically done in Apex?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 10 2009
Added on Apr 9 2009
5 comments
1,293 views