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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Using item ID in JavaScript

Arie GellerOct 31 2005 — edited Nov 7 2005
Hello,

I need to use the JavaScript getElementById method on some items in my page. I've noticed that for some items – like file input or date – the item id is not the same as the item name, but something that seems to be generated by HTML DB – the item name is P11_FILE_NAME and the item id – as I can see in the HTML source code of the rendered page – is p_t01.

Can I control these generated IDs through item attribute or something else? If not, will they stay the same after export and import of the HTML DB application? Would it be safe to base the JavaScript on these IDs?

Thanks for the insight,
Arie Geller.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2005
Added on Oct 31 2005
29 comments
1,947 views