Results 1 to 5 of 5

Thread: [RESOLVED] Firefox & Javascript Issue

  1. #1

    Thread Starter
    Hyperactive Member Lil Ms Squirrel's Avatar
    Join Date
    Nov 2004
    Location
    planet squirrel
    Posts
    494

    Resolved [RESOLVED] Firefox & Javascript Issue

    Mendhak kindly helped me with the following code towards a custom control I'm writing. It works happily in IE, but not in Firefox. Can anyone help me out with why and what I need to do to change it?

    VB Code:
    1. <table width="100%">
    2.                 <tr>
    3.                     <td style="CURSOR: hand" onclick="navigate('http://www.microsoft.com');" width="100%">microsoft.com</td>
    4.                 </tr>
    5.             </table>
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
    Dr. Seuss

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Firefox & Javascript Issue

    Is navigate a custom function? Show it's code.

    Oh and it'd help if you told us what wasn't working

  3. #3

    Thread Starter
    Hyperactive Member Lil Ms Squirrel's Avatar
    Join Date
    Nov 2004
    Location
    planet squirrel
    Posts
    494

    Re: Firefox & Javascript Issue

    Ooops

    I got the navigate method out of my Javascript book, but didn't read the bit that says it's an IE specific.

    I tried replacing it with "location.href = www.microsoft.com" which again works happily in IE, but won't work in Firefox.

    Basically in Firefox neither the cursor changes nor does it treat the table as a link
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
    Dr. Seuss

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Firefox & Javascript Issue

    Use this javascript:

    javascript:document.location.href='http://www.mendhak.com/';

    And for the cursor, try pointer instead of hand.

  5. #5

    Thread Starter
    Hyperactive Member Lil Ms Squirrel's Avatar
    Join Date
    Nov 2004
    Location
    planet squirrel
    Posts
    494

    Re: Firefox & Javascript Issue

    Woo hoo....thanks Mendhak that works beautifully

    Big up to the once again
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
    Dr. Seuss

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