in reply to Re: CGI.pm form buttons and Firefox
in thread CGI.pm form buttons and Firefox

That's a good thought, but the HTML I posted is what CGI.pm is generating. I'm not sure how to tell it to make a closing tag since I'm calling it like this:

$query->a({-href => 'http://wrights/index2.html'}), $query->img({-src => 'home.gif', -border => 0}));

My understanding was that CGI.pm took care of the closing tags and that was one ( of many )reasons to use it rather than printing tons of html statements.

Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.

Replies are listed 'Best First'.
Re^3: CGI.pm form buttons and Firefox
by bmann (Priest) on Apr 18, 2005 at 23:39 UTC
    Is that cut and pasted from the original source?

    If it is, the closing parenthesis noted below needs to be removed. The img tag is printed after the anchor tag is closed - it needs to be inside the anchor.

    # ============ remove this paren ================v $query->a({-href => 'http://wrights/index2.html'}), $query->img({-src => 'home.gif', -border => 0}));
    BTW, with the paren removed it (CGI.pm v3.04, perl 5.8.4) prints: <a href="http://wrights/index2.html"><img border="0" src="home.gif" /></a>, which should do what you want.
      Thank you! That did the trick. I had the image outside the HTML tag in the div element. Now the button isn't showing the URL reference when I hover over it.

      It's always the little things that get you. :)

      Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.
        Mmmh... Now I remember why I never use those CGI.pm html-generating functions... ;)
Re^3: CGI.pm form buttons and Firefox
by chas (Priest) on Apr 18, 2005 at 21:57 UTC
    Yes, I see what you mean. It seems to be because you have no text included for the link. Try
    a({-href => 'http://wrights/index2.html'},"Link")
    That seems to work better. However, one would think it would work without the text. I've had trouble with the HTML producing functions in CGI.pm myself for various reasons.
    chas
    (I checked with the non OO setup, but that shouldn't make a difference.)
    (Update: Oh, sorry, I guess I didn't realize that the image was part of the link (because the closing parenthesis was there)...bmann seems to have fixed things.)