Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Anchor links in html5 mobile app
Old 10-01-2011, 02:58 PM Anchor links in html5 mobile app
virtualgeorge's Avatar
Average Talker

Posts: 29
Trades: 0
I just started using dreamweaver 5.5 & created a site using the template in the moblie samples - phonegap.

I was wondering how to insert anchor links and how to link to them?

Since all the pages are divs and the urls are
domain.com/#pagename

You can't use the regular page.htm#(anchorname) to link to an specific
location on the page.

Wasn't sure what to search for to find this info? Is it html5 or jquery or phonegap that I should search for to find out more about converting websites
to mobile apps?

thanks
virtualgeorge is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-01-2011, 03:24 PM Re: Anchor links in html5 mobile app
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
You can't use the regular page.htm#(anchorname) to link to an specific
location on the page.
Why not?? that is what you are already doing by having the "page" as a document fragment.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-01-2011, 10:32 PM Re: Anchor links in html5 mobile app
virtualgeorge's Avatar
Average Talker

Posts: 29
Trades: 0
So how would you do it if you have a named anchor of <a id="link"></a> on your page?

Normally you would link to the homepage using that div's id name such as:
<a href="#homepage">home</a> to go to each page of the site.

So if you have the anchor "link" on one particular page, the homepage, how would you link to it since you only have one html file which is index.html?

I tried <a href="index.html#link">
and <a href="homepage#link">
and <a href="#homepage#link">

none worked?
virtualgeorge is offline
Reply With Quote
View Public Profile
 
Old 10-02-2011, 04:49 PM Re: Anchor links in html5 mobile app
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You would link to the fragment marker.

<a href="/#id_of_section">Link</a>

if it is on the same page <a href="#id_of_section">Link</a>
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Anchor links in html5 mobile app
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32001 seconds with 12 queries