Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / May 2008



Tip: Looking for answers? Try searching our database.

Making a button look like a link

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Swift - 29 May 2008 04:34 GMT
How close can you get to making a submit button look like a link?

Answers to the inevitable questions:

1. Because I don't want my email address (which would have to be part of
the URL in a real link) becoming obviously visible.
2. Because I'm limited for space and even a styled button takes too much
room.

Signature

Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Nik Coughlin - 29 May 2008 05:02 GMT
> How close can you get to making a submit button look like a link?
>
[quoted text clipped - 4 lines]
> 2. Because I'm limited for space and even a styled button takes too much
> room.

http://nrkn.com/buttonLink/
Steve Swift - 29 May 2008 08:03 GMT
>> How close can you get to making a submit button look like a link?
> http://nrkn.com/buttonLink/

Thanks, Nik, that's close enough for me. For additional bonus points, is
there any way to have that inherit the appearance of the user's
preference when their links are not blue underlined?

I know I'm being greedy, but if I don't ask, I won't get.

I'll probably end up mixing these "forged" links and real links on the
same page. The only way I can think to make them consistent is to impose
my preference for link decoration on the users; something I'm reluctant
to do.

Signature

Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Nik Coughlin - 29 May 2008 08:16 GMT
>>> How close can you get to making a submit button look like a link?
>> http://nrkn.com/buttonLink/
>
> Thanks, Nik, that's close enough for me. For additional bonus points, is
> there any way to have that inherit the appearance of the user's preference
> when their links are not blue underlined?

No.  Maybe there is some way to get the browser's default link colour with
JavaScript but there is no way to do that with just CSS.

> I'll probably end up mixing these "forged" links and real links on the
> same page. The only way I can think to make them consistent is to impose
> my preference for link decoration on the users; something I'm reluctant to
> do.

What you're doing is dubious enough as it is :P

Have you considered whether there are other ways to do this?

For example have an ordinary submit button instead.  Hide it with JavaScript
and then just use a normal link which has its click event set to submit the
page.  The vast majority of people who have JavaScript will get the effect
that you're after without diddling around trying to make a button look like
a link and the rest will still get a perfectly good working page but one
where the submit button looks like a submit button, and is that really such
a terrible thing?  Or style the submit button for them too and put up with
having it be blue instead of their colour.
Steve Swift - 29 May 2008 17:53 GMT
> For example have an ordinary submit button instead.  Hide it with
> JavaScript and then just use a normal link which has its click event set
> to submit the page.

So many choices. Fortunately I wrote http://www.swiftys.org.uk/decisions 
last week with exactly this situation in mind (I've become indecisive
for medical reasons).

Thanks!

Signature

Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

dorayme - 29 May 2008 23:50 GMT
> So many choices. Fortunately I wrote http://www.swiftys.org.uk/decisions 
> last week with exactly this situation in mind (I've become indecisive
> for medical reasons).

That's the page forcing the user to be indecisive. There seems no
mechanism to choose.

Signature

dorayme

Steve Swift - 30 May 2008 06:14 GMT
> That's the page forcing the user to be indecisive. There seems no
> mechanism to choose.

There's no point wasting pixels/electrons on a "choose" button until
you've entered at least two choices, and the copious online help makes
this abundantly clear. :-)

Even I can chose when faced with only one option.

Signature

Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

dorayme - 30 May 2008 07:58 GMT
> > That's the page forcing the user to be indecisive. There seems no
> > mechanism to choose.
[quoted text clipped - 4 lines]
>
> Even I can chose when faced with only one option.

How stupid do you think I am? Don't answer that!

I put in an alternative and I felt like Buridan's a.s with a modern
technological twist, nothing but "add" was available to me.

Signature

dorayme

GArlington - 30 May 2008 13:50 GMT
> In article <4840d9d...@news.greennet.net>,
>
[quoted text clipped - 14 lines]
> --
> dorayme

Even with one option you still have a choice...
Choose it, or NOT choose it...
dorayme - 30 May 2008 08:56 GMT
> > That's the page forcing the user to be indecisive. There seems no
> > mechanism to choose.
[quoted text clipped - 4 lines]
>
> Even I can chose when faced with only one option.

OK, something with one of my browsers... apologies. But I have comments.
Not ones that anyone will understand. But comments nevertheless.

What is this "chose" business? Is this an American spelling? Or are you
not providing for the future? Are you building in a logical clamp on
freedom? Suppose that a user puts in 15 choices and he is staring at
"Chose" which implies past tense in normal Australian. He thinks, well,
f.ck it, I have not chosen anything, so he does not press the damn
thing! He just what? He stares and makes no decision because he has no
mechanism to do so on your page?  

By the way, there is never only one option. For every option that is a
candidate of choice, there is doing it or not doing it. So there is a
point in getting the button to appear when one option is entered. The
choice then is for the user to press oit or not press it. Or,
alternatively, - damned hell, it is you page -  you cou could
automatically generate the negation of single option and it appears as
the explicit alternative.

User types in "wear colourful clothes" and you then generate "*Don't*
wear colourful clothes". And make the button come up. When an explicit
second option is entered, you can remove the generated alternatives.

Decision making devices are very important in human evolution. There is
an argument that religions have usefully grown from a need to facilitate
decisions independently of their truth.

Signature

dorayme

Jukka K. Korpela - 30 May 2008 20:57 GMT
Scripsit Steve Swift:

> How close can you get to making a submit button look like a link?

Pretty close, on sunny days.

> Answers to the inevitable questions:
>
> 1. Because I don't want my email address (which would have to be part
> of the URL in a real link) becoming obviously visible.

Then you are surely creating problems instead of solving any.

> 2. Because I'm limited for space and even a styled button takes too
> much room.

That's ridiculous. Fix the problem of having painted yourself in a
corner (creating the limitations you allude to) instead of hitting your
head on the wall and spoiling your page any more.

Signature

Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.