KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Configuring Anchor tags for 4D Business Kit
PRODUCT: 4D Business Kit | VERSION: 1.x | PLATFORM: Mac & Win
Published On: August 5, 2003
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

Version 1.x and Up

Setting up Anchor tags on your webpage to work with 4D Business Kit can be tricky at times. The problem seems to be because of the "base href" tag which is added by 4DBK in the pages that it sends (via the 4DBKStoreSet command). In most of the cases, the base href looks something like this:

<base href='https://127.0.0.1/Test_Site/WebPagesUS/'>

If you have a page called "detail-list.html" with the following anchor:
<A href="#management">Go To Management</A>, clicking on this link will return with the 4DBK page not found error. By clicking on this link, the browser will ask 4DBK for a page whose access path is: "https://127.0.0.1/Test_Site/WebPagesUS/#management".

For the anchor to work correctly, you will have to include the actual page that the anchor is found on along with the "#" character and the anchor name. The link below will work like a charm.

<A href="detail-list.html#management">Go To Management</A>