Results 1 to 6 of 6

Thread: Why is it not working?

  1. #1
    Join Date
    Aug 2006
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Why is it not working?

    Hi to all,
    This is my code:
    HTML Code:
    <a href="mylink.php" style="text-decoration:none"><input type="button" value="Link"></a>
    When I'm loading this script on Mozilla it works fine but when I'm trying to open that page with Internet Explorer this button doesn't work as if it was disabled!! Why is this happenning? Does the style thing make something that IE doesn't support? Please help! (note this script is in a php file)

    Thanks in advance!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm not certain why it doesn't work exactly. However, although the code validates, it looks very non-standard. A standard way to write something that would layout as your code does and that would work as expected in IE and other browsers is like so:

    HTML Code:
    <form action="mylink.php" style="display:inline;"><input type="submit" value="Link"></form>
    I say a standard way as, even better would be to use a class designation for the form and select it in a stylesheet for display:inline, instead of declaring the style in the form tag.

    The style:

    Code:
    .formlink {
    display:inline;
    }
    The new code:

    HTML Code:
    <form action="mylink.php" class="formlink"><input type="submit" value="Link"></form>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2006
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No no, I'm not validating anything! I just want a button instead of a non-goodlooking link! That's all! But I think I'll do it like I'm validating something so they work! Thanks for answering!

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Quote Originally Posted by costas
    No no, I'm not validating anything!
    Bad move.

    Quote Originally Posted by costas
    I just want a button instead of a non-goodlooking link!
    That is a button.

    Quote Originally Posted by costas
    No no, I'm not validating anything! I just want a button instead of a non-goodlooking link! That's all! But I think I'll do it like I'm validating something so they work!
    You're overusing "!"
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #5
    Join Date
    Aug 2006
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Firstly, you can't just say that something is bad move when you don't know what it is used for!!!!!!!!!!!! I mean I want to use that button as a link AND NOT AS A SUBMIT BUTTON!!!!!!!!! Secondly, I clearly said that I JUST WANT THAT BUTTON INSTEAD OF A NON-GOODLING LINK!!!!!!!!!!!!!!!!!!!! Thirdly, I like using "!" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    That was all! Have a nice week!!!!!!!!!!

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yeah but, I think tech_support only meant that not validating was a bad move. Still, his post wasn't very clear or helpful, just my two cents.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •