Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-05-03
6
Medium Priority
?
542 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

 

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 2000 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 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