Results 1 to 12 of 12

Thread: problem w/ url in a hyperlink

  1. #1

    Thread Starter
    Hyperactive Member wordracr's Avatar
    Join Date
    Aug 2001
    Posts
    281

    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.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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?

  3. #3
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    whats the URL your having a problem with: example please!

  4. #4

    Thread Starter
    Hyperactive Member wordracr's Avatar
    Join Date
    Aug 2001
    Posts
    281
    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

  5. #5

    Thread Starter
    Hyperactive Member wordracr's Avatar
    Join Date
    Aug 2001
    Posts
    281
    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).

  6. #6
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    whats the error you get?

  7. #7
    scoutt
    Guest
    worked fine for me.

  8. #8

    Thread Starter
    Hyperactive Member wordracr's Avatar
    Join Date
    Aug 2001
    Posts
    281
    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?

  9. #9
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    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!

  10. #10

    Thread Starter
    Hyperactive Member wordracr's Avatar
    Join Date
    Aug 2001
    Posts
    281
    <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.

  11. #11
    scoutt
    Guest
    did you specify a font size? no try that and see if it works like it did for me.

  12. #12
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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
  •  



Click Here to Expand Forum to Full Width