HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 4th, 2008, 01:13 PM
112233 112233 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 23 112233 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 17 m 54 sec
Reputation Power: 0
Question about visited links

Hello,

I have the following code:

<iframe src="test.htm"></iframe>
<a href="test.htm">link</a>

In Firefox, "link" will appear as already visited(in purple color).
But in IE, "link" appear as not visited(still in blue).

Is there any way to make "link" appear as visited in IE also?

Thank you very much.

Reply With Quote
  #2  
Old June 4th, 2008, 01:52 PM
medialint's Avatar
medialint medialint is offline
Type Cast Exception
Click here for more information.
 
Join Date: Apr 2004
Location: Tralfamadore
Posts: 13,653 medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)medialint User rank is General 51st Grade (Above 100000 Reputation Level)  Folding Points: 307430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 307430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 307430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 307430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 307430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 307430 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Months 2 Weeks 2 Days 4 h 51 m 35 sec
Reputation Power: 4390
Facebook
Use CSS to define your link's appearance and it should theoretically work similar in both.
__________________
medialint.com


"Beware of the man who works hard to learn something, learns it, and finds himself no wiser than before. He is full of murderous resentment of people who are ignorant without having come by their ignorance the hard way."
- Vonnegut - Cat's Cradle, 1963

Reply With Quote
  #3  
Old June 4th, 2008, 02:33 PM
ToNyRoMo ToNyRoMo is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Location: USA
Posts: 68 ToNyRoMo Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 9 h 24 m 56 sec
Reputation Power: 0
Send a message via AIM to ToNyRoMo
Facebook MySpace
It might appear visited because of your cache. Clear it and then use these style rules

CSS Code:
Original - CSS Code
  1.  
  2. a:link {
  3.  color:red;
  4. }
  5. a:visited {
  6.  color:red;
  7. }
  8. a:hover {
  9.  color:green;
  10. }
  11. a:active {
  12.  color:red;
  13. }

Reply With Quote
  #4  
Old June 4th, 2008, 04:45 PM
112233 112233 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 23 112233 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 17 m 54 sec
Reputation Power: 0
I tired this, it is still the same.
I guess I should explain more clearly.

I have main.html as following:
<iframe src="test.htm"></iframe>
<a href="test.htm">link</a>

I load http://..../main.html in different browser.

In IE, it consider test.htm as not visited although it have been loaded in iframe. No matter how css is set, "link" always shows as not visited.
Only after I visit http://..../test.htm, then I load http://..../main.htm again, "link" shows as visited.

But in Firefox, it consider test.htm as visited, the first time I load http://..../main.htm, "link" shows as visited.

I believe this has something to do with how IE and fiiefox deal with history or cache.
I am wondering is there anyway to make IE behave the same as firefox.

Thank you very much.


Quote:
Originally Posted by ToNyRoMo
It might appear visited because of your cache. Clear it and then use these style rules

CSS Code:
Original - CSS Code
  1.  
  2. a:link {
  3.  color:red;
  4. }
  5. a:visited {
  6.  color:red;
  7. }
  8. a:hover {
  9.  color:green;
  10. }
  11. a:active {
  12.  color:red;
  13. }

Reply With Quote
  #5  
Old June 4th, 2008, 04:51 PM
ToNyRoMo ToNyRoMo is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Location: USA
Posts: 68 ToNyRoMo Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 9 h 24 m 56 sec
Reputation Power: 0
Send a message via AIM to ToNyRoMo
Facebook MySpace
Quote:
Originally Posted by 112233
I tired this, it is still the same.
I guess I should explain more clearly.

I have main.html as following:
<iframe src="test.htm"></iframe>
<a href="test.htm">link</a>

I load http://..../main.html in different browser.

In IE, it consider test.htm as not visited although it have been loaded in iframe. No matter how css is set, "link" always shows as not visited.
Only after I visit http://..../test.htm, then I load http://..../main.htm again, "link" shows as visited.

But in Firefox, it consider test.htm as visited, the first time I load http://..../main.htm, "link" shows as visited.

I believe this has something to do with how IE and fiiefox deal with history or cache.
I am wondering is there anyway to make IE behave the same as firefox.

Thank you very much.


Good luck trying to get them to behave the same...aka impossible...It has to do with cache and...
Quote:
Only after I visit http://..../test.htm, then I load http://..../main.htm again, "link" shows as visited.
A link can't be visited until link is loaded...makes sense there. Firefox has a cache. Clear your cache and history and it will be fine. Trust me....
Comments on this post
medialint agrees!

Reply With Quote
  #6  
Old June 4th, 2008, 06:49 PM
112233 112233 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 23 112233 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 17 m 54 sec
Reputation Power: 0
I tried to clear cache and history in firefox, it still acts the same.

IE also have a cache, right? I am just really curious about this issue.
Since in iframe, test.html has already been loaded, why it does not show the link as visited?

Sorry for kept asking. ............. and thank you for your reply

Quote:
Originally Posted by ToNyRoMo
Good luck trying to get them to behave the same...aka impossible...It has to do with cache and... A link can't be visited until link is loaded...makes sense there. Firefox has a cache. Clear your cache and history and it will be fine. Trust me....

Reply With Quote
  #7  
Old June 4th, 2008, 07:23 PM
ToNyRoMo ToNyRoMo is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Location: USA
Posts: 68 ToNyRoMo Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 9 h 24 m 56 sec
Reputation Power: 0
Send a message via AIM to ToNyRoMo
Facebook MySpace
Part of the problem may be frames. Try using our suggestion without frames. Use different HTML.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Question about visited links


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT