Don"t want text to be marked when clicking multiple times on it

Don"t want text to be marked when clicking multiple times on it

am 08.08.2005 11:08:35 von tonicvodka

Hi all!


I've made a table over all the weeks in a year in a table. Where the
week number is inside the td tag.


When you want to reserve a certain week you click on it once and it
changes color to blue for preliminary, clicking it twice makes it
red(booked) and a third time brings it back to green(available). The
problem is the number inside the cell gets marked when you are clicking

it. Is there a way to prevent this?

Re: Don"t want text to be marked when clicking multiple times on it

am 08.08.2005 13:16:13 von Safalra

tonicvodka@hotmail.com wrote:
> I've made a table over all the weeks in a year in a table. Where the
> week number is inside the td tag.
> When you want to reserve a certain week you click on it once and it
> changes color to blue for preliminary, clicking it twice makes it
> red(booked) and a third time brings it back to green(available). The
> problem is the number inside the cell gets marked when you are clicking
> it. Is there a way to prevent this?

You mean that the browser makes the text selected? This is a user
interface feature, and I don't think it can be overridden in any
cross-browser manner. (Perhaps a nasty hack like CSS positioning a
transparent element over the cells and detecing clicks on that element
rather than the text below would work, but I wouldn't recommend it.)

--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/

Re: Don"t want text to be marked when clicking multiple times on it

am 08.08.2005 13:35:30 von tonicvodka

Thanks for your response Safalra! I think you've understood my problem
correctly.
I'll repost my question asking for suggestions instead, hope you look
at that one too:)

Re: Don"t want text to be marked when clicking multiple times onit

am 08.08.2005 15:07:16 von si

tonicvodka@hotmail.com wrote:

> When you want to reserve a certain week you click on it once and it
> changes color to blue for preliminary, clicking it twice makes it
> red(booked) and a third time brings it back to green(available). The
> problem is the number inside the cell gets marked when you are clicking
>
> it. Is there a way to prevent this?
>
If i remember correctly, the following should work, just typed without
checking.

Also, unreliable accross browsers and js on/off.

Also, any other methods can be used to select the text, so probably not
much point using it.

HTH

Si

Re: Don"t want text to be marked when clicking multiple times onit

am 08.08.2005 15:09:33 von si

Si wrote:
> tonicvodka@hotmail.com wrote:
>
>> When you want to reserve a certain week you click on it once and it
>> changes color to blue for preliminary, clicking it twice makes it
>> red(booked) and a third time brings it back to green(available). The
>> problem is the number inside the cell gets marked when you are clicking
>>
>> it. Is there a way to prevent this?
>>
> If i remember correctly, the following should work, just typed without
> checking.
>
> Also, unreliable accross browsers and js on/off.
>
> Also, any other methods can be used to select the text, so probably not
> much point using it.
>
> HTH
>
> Si

Bit quick on hitting send there, just seen what you really want, don't
think the above code is of anyuse at all as it will disable the clicking
on the text as you want.