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!

# Anchor Tag Syntax

Jritschel-OracleJul 3 2012 — edited Jul 3 2012
I have a page with a Dynamic SQL Region that generates several large blocks of HTML. In the SQL code for the region, I have included:
'<a name="'||P1_ID||'">'
which yields a series of anchor tags that look like:
<a name="1">, <a name="2">...
This all works fine. I then have a "Table of Contents" Report Region at the top of the page that lists all of the dynamically generated blocks and I am trying to create a linked column using
'<a href="#'||P1_ID||'">'
to jump to a particular block. The problem I'm running into is that APEX automatically prepends the domain path (http://apexserver/pls/apex/) to any URL that is not fully qualified. So, instead of getting
<a href="#1">
I am getting
http://apexserver/pls/apex/f?p=260:54:1540498514490201:::::#1
As my link. How do I get APEX to only include the anchor tag without prepending the URL path so I can jump to a location on the same page? Or, if you have an idea for a better way of achieving this, I'm all ears.

Thanks,
Jeff
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2012
Added on Jul 3 2012
1 comment
641 views