|
-
Mar 11th, 2002, 11:36 PM
#1
Thread Starter
Hyperactive Member
problem w/ url in a hyperlink
The problem is from the commas, question mark, or ampersand in the address. Is there anything special you put before these characters when using links that contain them?
THanks.
-
Mar 12th, 2002, 01:58 AM
#2
take a look at some of the links on this very page They have question marks in them. Take a look at some articles on zdnet.com, they use commas freely...
I don't think there's a problem with using any of these in a hyperlink. Are you having problems with these characters?
-
Mar 12th, 2002, 08:07 AM
#3
Hyperactive Member
whats the URL your having a problem with: example please!
-
Mar 12th, 2002, 11:17 AM
#4
Thread Starter
Hyperactive Member
I'm not exactly sure why it's working fine now. Before it wasn't fully following the style sheet and using a plain font on the link, but the CSS font on hover.
All I did were some tests on the link:
I typed in a short address like http://www.ask.com, and that worked, then i put in parts of my link until it was all there(to see if any of the characters were the problem).
It's working now, but I didn't think a
-
Mar 12th, 2002, 11:29 AM
#5
Thread Starter
Hyperactive Member
I guess there is a problem now.
here's the link:
"http://web.icq.com/whitepages/add_me/1,,,00.icq?uin=64402206&action=add"
but i think it doesn' t work because of itslength. If I take 1 or more characters out, it works fine (not necessarily the link itself, but its appearance using CSS).
-
Mar 12th, 2002, 11:33 AM
#6
Hyperactive Member
-
Mar 12th, 2002, 11:36 AM
#7
-
Mar 12th, 2002, 12:15 PM
#8
Thread Starter
Hyperactive Member
there is no error, it's just that the link's text appears in a plain font (that I didn't specify) unless I take 1 character out. I have CSS and it is followed if I take 1 character out, but not if I leave the link as long as it is. Why would this be?
-
Mar 12th, 2002, 12:18 PM
#9
Hyperactive Member
Well why didn't you say that then....grrrr!
Why don't you post your code then, I'm not gonna sit here and write code that might not even be relative to your problem.
Post your code and you'll get a solution!
-
Mar 12th, 2002, 12:30 PM
#10
Thread Starter
Hyperactive Member
<html>
<head>
<STYLE TYPE="text/css">
<!--
a.no:link { color: #666699; font-family: Arial Rounded MT Bold, Arial Black; text-decoration: none }
a.no:hover { color: #333333; font-family: Arial Rounded MT Bold, Arial Black; text-decoration: none }
-->
</STYLE>
</head>
<body>
<a href="http://web.icq.com/whitepages/add_me/1,,,00.icq?uin=64402206&action=add" class="no">Clicking here</a>
</body>
</html>
This doesn't function the way I would like it to. I don't know what the problem is, but taking away 1 character fixes it (along the link wouldn't work then).
Thank you for your patience.
-
Mar 12th, 2002, 08:59 PM
#11
did you specify a font size? no try that and see if it works like it did for me.
-
Mar 14th, 2002, 10:23 AM
#12
Good Ol' Platypus
If you have the option to use ASP, with those you can use the URLEncode method of the Server (I think) object. (I don't know about PHP or anything else). That will turn spaces to %20, etc.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|