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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Return to Top Error in Chrome and Safari
Old 07-30-2009, 06:59 PM Return to Top Error in Chrome and Safari
Junior Talker

Posts: 3
Name: Lea
Trades: 0
I’ve tried every kind of HTML code I can think of to get the ‘return to top’ function to work on my XHTML 1.0 Transitional page but it’s not working in Chrome or Safari on Windows XP or in Safari on a MAC - instead of skipping to the top, I'm taken to an error page and get the error 'page not found'. I am not having this problem with IE or Firefox.

I’ve tried…
<a href=”#”>back to top</a>
And
<body>
<a name=”pagetop” id=”pagetop”></a>
.
.
<a href=”#pagetop>Back to Top</a>
And
<body>
<a name=”top” id=”top”></a>
.
.
<a href=”#top>Back to Top</a>
And
<p id=”pagetop”>skip to here</p>
.
.
<a href=”#pagetop>Back to Top</a>
Any suggestions greatly appreciated!
webquestion is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-30-2009, 07:05 PM Re: Return to Top Error in Chrome and Safari
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You don't need the <a name=....>, for 1 it's deprecated, and second, the ID of "top" is sufficient.

Then you just reference it as <a href="#top">Back to top</a>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-30-2009, 07:29 PM Re: Return to Top Error in Chrome and Safari
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
Originally Posted by LadynRed View Post
You don't need the <a name=....>, for 1 it's deprecated, and second, the ID of "top" is sufficient.
You sure about that? I thought name on an anchor element was one of 2 cases where the name attribute was not deprecated, the other being form elements. Anyhow, I still use anchors this way. Not going to bother to look it up right this second, but if anyone wants to take a gander...
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-30-2009, 08:17 PM Re: Return to Top Error in Chrome and Safari
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Even so, there's no need for the name attribute when the ID will do the exact same job.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-30-2009, 09:08 PM Re: Return to Top Error in Chrome and Safari
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
true enough
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-31-2009, 03:00 PM Re: Return to Top Error in Chrome and Safari
Junior Talker

Posts: 3
Name: Lea
Trades: 0
Thank you for your suggestions! I ended up figuring out that it has to do with my jump menu code that was created through Dreamweaver 8 - if I simply scrolled down to the 'back to top' link on the page and clicked it, I was returned to the top in Chrome and Safari. However, if I used the jump to menu to jump to a section within the page and then clicked 'back to top' it would take me to the error page. Once I figure out how to fix the jump to menu code I will add before/after.
webquestion is offline
Reply With Quote
View Public Profile
 
Old 08-03-2009, 06:14 PM Re: Return to Top Error in Chrome and Safari
Junior Talker

Posts: 3
Name: Lea
Trades: 0
Here is the code when I was getting the error message after clicking 'back to top':

<table align="center"><tr><td>
<form name="form1" id="form1" action="">
Select Number:<br />
<select name="Sections" onChange="MM_jumpMenu('parent',this,1)">
<option>-- Select Number --</option>
<option value="#one">One</option>
<option value="#two">Two</option>
<option value="#three">Three</option>
</select>
</form>
</td></tr></table>


Here is what I changed it to (moved "Select Number" out of <option> into up front text, changed value in <select> statement, specified website page for each option):

<table align="center"><tr><td>
<form name="form1" id="form1" action="">
Select Number:<br />
<select name="Sections" onChange="MM_jumpMenu('parent',this,0)">
<option value="http://www.abc.com/numbers.htm#one">One</option>
<option value="http://www.abc.com/numbers.htm#two">Two</option>
<option value="http://www.abc.com/numbers.htm#three">Three</option>
</select>
</form>
</td></tr></table>


I'm not sure if all of these changes are needed - just that it works now in Chrome and Safari.
webquestion is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Return to Top Error in Chrome and Safari
 

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.40014 seconds with 12 queries