Link Issues

M

Matt

Why would this link not work on "Firefox 7.12 Version 1.07"? It works fine
in IE?



<a href='aac_product_home.asp?Category=product&Section='>

<td width="145" <%if lcase(sCategory) = "product" then Response.Write
"class='topnavcellactive'" else Response.Write "class='topnavcell'"%>>

<p align="center">Product Overview

</td>

</a>





Here are the two CSS classes.



..topnavcell

{

font-size: 9pt;

color: #000000;

font-family: Arial;

text-decoration: none;

background-color: #CCCCCC;

cursor: hand;

}



..topnavcellactive

{

font-size: 9pt;

color: #FFFFFF;

font-family: Arial;

text-decoration: none;

background-color: #000000;

cursor: hand;

}



I assume this may be a CSS issue but what is the issue and how can I resolve
it.



Thanks in advance.
 
B

Bob Barrows [MVP]

Matt said:
Why would this link not work on "Firefox 7.12 Version 1.07"? It works
fine in IE?


I assume this may be a CSS issue but what is the issue and how can I
resolve it.
You're right: it's got nothing to do with ASP. I'm not sure which
client-side group to direct you to because i'm not sure what you mean by
"not work".

If it is a css issue, then you should be posting to a css group like
comp.infosystems.www.authoring.stylesheets

Bob Barrows
 
M

Mike Brind

Matt said:
Why would this link not work on "Firefox 7.12 Version 1.07"? It works fine
in IE?



<a href='aac_product_home.asp?Category=product&Section='>

<td width="145" <%if lcase(sCategory) = "product" then Response.Write
"class='topnavcellactive'" else Response.Write "class='topnavcell'"%>>

<p align="center">Product Overview

</td>

</a>





Here are the two CSS classes.



.topnavcell

{

font-size: 9pt;

color: #000000;

font-family: Arial;

text-decoration: none;

background-color: #CCCCCC;

cursor: hand;

}



.topnavcellactive

{

font-size: 9pt;

color: #FFFFFF;

font-family: Arial;

text-decoration: none;

background-color: #000000;

cursor: hand;

}



I assume this may be a CSS issue but what is the issue and how can I resolve
it.



Thanks in advance.

What do you mean by "doesn't work"?

And If you really think it's a CSS issue, why don't you try a CSS
group, like comp.infosystems.www.authoring.stylesheets
 
M

Mike Brind

Mike said:
What do you mean by "doesn't work"?

And If you really think it's a CSS issue, why don't you try a CSS
group, like comp.infosystems.www.authoring.stylesheets

Just guessing, but if you mean that you can't get cursor: hand; to work
in Firefox, you are right - it IS a CSS issue. And the reason is
because 'hand' is not a valid value for the cursor property in CSS2.
In fact, IE is the only browser to support it. You should use
'pointer' as the value instead.
 
M

Matt

Thanks Mike. The user stated that the link in general did not work and the
hand did not appear. I will change hand to "pointer" but any idea as to why
the actual hyperlink does not work when the user clicks on it? Does it have
to do with the <a> tag being around a table cell?

Forgive me for posting to this group. I assumed other ASP programmers may
have experienced this issue and I would be able to relate to their solution
better. I was not sure if it was CSS related and did not want to limit
myself to CSS.
 
M

Mike Brind

Matt said:
Thanks Mike. The user stated that the link in general did not work and the
hand did not appear. I will change hand to "pointer" but any idea as to why
the actual hyperlink does not work when the user clicks on it? Does it have
to do with the <a> tag being around a table cell?

Forgive me for posting to this group. I assumed other ASP programmers may
have experienced this issue and I would be able to relate to their solution
better. I was not sure if it was CSS related and did not want to limit
myself to CSS.

Yes it does - I didn't spot that before :)

It should be <td><a href="somelink">Some link text</a></td>

That's an html question now, so here's another group for that:
comp.infosystems.www.authoring.html

;-)
 
M

Matt

With the example you had given to me, the entire cell itself would not be a
hyperlink. Only the "Some Link Text" would be a hyperlink. Is creating an
entire cell as a hyperlink not valid HTML?

Should I use this instead or would I still experience the issue in a non-IE
browser?

<td onClick="location.href='msn.com'">Some Link Text</td>

I am trying not to cross post because every time I do that people yell at
me. What is the best method of posting when it pertains to multiple groups?
 
M

Mike Brind

Matt said:
With the example you had given to me, the entire cell itself would not be a
hyperlink. Only the "Some Link Text" would be a hyperlink. Is creating an
entire cell as a hyperlink not valid HTML?

Not as far as I know.
Should I use this instead or would I still experience the issue in a non-IE
browser?

<td onClick="location.href='msn.com'">Some Link Text</td>

Best try it out. I've never used it. This has definitely become an
html issue.
I am trying not to cross post because every time I do that people yell at
me. What is the best method of posting when it pertains to multiple groups?

http://www.aspfaq.com/show.asp?id=2081 :)
 
M

Matt

So Mike,

Just trying to get this newsgroup netiquette thing down. Now that you have
stated this is an HTML issue, should I submit a post to an HTML group or is
that still considered cross-posting?

Thanks.
 
B

Bob Barrows [MVP]

Multipost: posting individual messages to multiple newsgroups one-at-a-time
(i.e., send a message to group1, then compose the same message and send it
to group2
Crosspost: posting a single message simultaneously to several newsgroups by
putting a list of the newsgroups in the message's To field. When a message
is crossposted, replies to the post are automatically sent to all the
crossposted groups

crossposting good - multiposting bad

We usually frown upon multiposting because it is hard to carry on a
conversation in multiple places. it's like you go into a room shout out "how
do I do this?", run to another room without waiting for a reply, shout the
message into that room , etc. People in the third room will probably not
appreciate wasting their time trying to help with a problem that was already
resolved in the first room.

In this case, you have done well by posting to a single group. Oops, it was
the wrong group. There should be no one who criticizes you for posting to
the correct group, especially if you preface that with post with an
explanation that you found out you had initially posted to the wrong group.
 
M

Mike Brind

Matt said:
So Mike,

Just trying to get this newsgroup netiquette thing down. Now that you have
stated this is an HTML issue, should I submit a post to an HTML group or is
that still considered cross-posting?

Thanks.

ASP people invariably use html, but from a lot of the examples I've
seen posted here, valid html is not a priority in most people's
learning curve here. I, for one, have only just recently started to
concentrate on validating the html and css that I produce, despite
having been "doing web stuff" for 7 years or so. So I'm no expert.

I guess what I'm saying is that you'll get better informed advice from
the place where the experts do hang out. The same goes for any topic
you fancy posting on :)
 
M

Matt

Thank you gentlemen. In this case I wasn't sure what the best group to post
to. I am an ASP programmer and figured if I am experiencing this issue
another ASP programmer probably is. Now that I know this is an HTML issue I
will generate a new post pertaining to valid HTML and post that to an HTML
group.

Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top