Solved

Linking from one .aspx page to a section of another .aspx page

Posted on 2009-05-03
6
468 Views
Last Modified: 2012-05-06
I am working on a site that was originally done in .aspx.....I have been editing the site for some time...using regular html code on those pages, without any problems. I am trying to link from a page, to a specific section of another page using the typical anchors.
<a href="page.aspx#nameoftarget">Linked text</a>
targeted page is: <a id="nameoftarget"></a>
This works in firefox....even the new google chrome....but IE7 (tested on different machines)failes to work..I googled linking from one page to a section of another....and all is commented as using anchors the way I have.
The Website is www.palamountains.net
the home page next to the calendar shows the links and the target page is: www.palamountains.net/news/Default.aspx
I am wondering if the problem is that IE7 doesn't like these links or recognize them on a .aspx page......
I am even using the <a id.....> rather than <a name.....> on the target page....but I have done the <a name....> as well and the same problem exists.
0
Comment
Question by:Davey01
  • 3
  • 3
6 Comments
 
LVL 17

Expert Comment

by:OriNetworks
ID: 24292138
Have you tried both id and name at the same time? Also do you have anything that takes focus when the page is loaded? Like some pages focus on the text box when the page loads.
0
 

Author Comment

by:Davey01
ID: 24292184
Yes, I did both ID and Name.....if you recently have seen the code...it is not wrapped around anything...it was wrapped around some title's next to the photos on that page...which reside in a table....but the style sheet was treating that text like a link, making the text a default purple...so I simply place the anchor next to the title's wrapped around nothing, but still within that table.  That works just the same with firefox....and chrome...same reults with IE7 and 8 though...same as when it was wrapped around the title's.
Thanks for the assistance...
0
 
LVL 17

Expert Comment

by:OriNetworks
ID: 24292355
Could you provide a full link with anchor that you believe isnt working?

I tried http://www.palamountains.net/news/Default.aspx#rolex and it does work.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:Davey01
ID: 24294493
That is one of the valid links. You say that it is working....and it does work on mozilla's firefox....it may work on IE6....but I tried IE7 and IE8 and no go, it doesn't jump to the section on the page....it simply jumps to the page.  I just tried another computer (my work computer) and it doesn't work either.  So something is going on with IE in several different states, that prevents this from working properly....IE7 or 8 could be displaying it properly on another machine?? but for some reason, it isn't working on these.
http://www.palamountains.net is the home page.  All of the links next to the calendar points to the page:
http://www.palamountains.net/news/Default.aspx
The anchors on this page are #kentucky, #rolex, #barkinthepark, #grand, #2010
so: http://www.palamountains.net/news/Default.aspx#kentucky etc......should work and does work on mozilla, just not the three (3) machines that I have tested using IE 7 & 8....these machines also have the latest service packs and updates etc.....
I was at first believing something may have been wrong with the code, but apparently not....then I thought it could be that the pages are .aspx and that could be causing a problem with IE.  
0
 
LVL 17

Accepted Solution

by:
OriNetworks earned 500 total points
ID: 24300520
I am using IE8 and links appear to work correctly and go the sections of the page as it should be. After further reading it appears that this is a bug in IE7, I saw nothing referencing IE8. But even when I try IE8 in IE7 compatibility mode it still works.

SInce you are using flash I cant really see the source but if your link addresses are relative like /news/Default.aspx#kentucky then you can try to change it to http://www.palamountains.net/news/Default.aspx#kentucky to give it an absolute path and see if that works. I believe the bug comes from preventing XSS (cross site script attack) I would probably try changing absolute paths to relative and vice versa to see if anything works.
0
 

Author Comment

by:Davey01
ID: 24306968
Yes, thank you....I had absolute paths linking to the page anchors, apparently that was the problem for IE, on these machines anyway....I changed to relative paths and IE is now happy.....and this did not disrupt any of the other browsers. Thanks for your help.....
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now