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!

Javascript and Substitution Strings

Chris WoltenbergMar 14 2007 — edited Jul 21 2008
What is the difference or harm in the following statement:
 var x = '&P1_PAGE_ITEM1.'; 
as compared to:
  var x = document.getElementById('P1_PAGE_ITEM1').value; 
They both return the same results, but I'm trying to determing the differences between the methods, and if there are any unwanted side effects.

And are substitution strings (like &P1_PAGE_ITEM1.) particular to APEX, don't think I've ever seen this used outside of APEX.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2008
Added on Mar 14 2007
5 comments
1,570 views