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!

Hide Page Controls on Page Load with JavaScript

662905Oct 1 2008 — edited Oct 1 2008
Good Morning, I am trying to use a peice of code that I found on another thread:

----------------------------------------------------------------------------
HTML Header
<script language="JavaScript1.1" type="text/javascript">

function setDisabled(PageItem) {
document.getElementById(PageItem).style.visibility = "hidden"
}
</script>

HTML Body Attribute
onLoad="javascript:setDisabled('P36_COMMS1_0');
----------------------------------------------------------------------------

The code works if I change the "onLoad" to "onClick" and click the control. But when I use it as written, it doesn't trigger when the page loads. Does anyone have any ideas?

Here is the original thread: http://forums.oracle.com/forums/thread.jspa?messageID=2760790&#2760790, but the thread didn't really relate to my question.

Donald
This post has been answered by ATD on Oct 1 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2008
Added on Oct 1 2008
3 comments
315 views