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!

onload - how to code in BOTH template AND page?

j4johnAug 25 2006 — edited Sep 1 2006

Hi,

I have a js which I want to execute as part of the onLoad processing for each page. I also have some pages on which different jss are declared in the Onload page attribute.

Is there any way that a javascript call can be executed on load of each page whilst preserving the calls that may be declared in the Onload attribute of any given page (and which translate into the #ONLOAD# substitution string?

If not, how about an enhancement request:
- remove the 'onload=' and double-quotes from the generated #ONLOAD# string, and alter the default template stanza to read:

<body onload="#ONLOAD#">

This would enable further calls to be embedded in the template.

Meantime, is there perhaps a way to achieve the effect of the enhancement request? (i.e. is there any way to programmatically edit a substitution string, or to add a custom substitution string to a template?)

Thanks,

john

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2006
Added on Aug 25 2006
23 comments
2,967 views