??? document.getElementById('ID').style.-moz-user-select = 'text' ???

M

Michi

Hallo,

of course, this doesn't work:
document.getElementById('ID').style.-moz-user-select = 'text';
- but i hope it shows my problem...

Is it possible to set this css option by javascript and how? Is there
any workaround for that?
I'd need this to temporarily avoid text selection.

Many thanks
and best regards,

Michael
 
I

Ian Collins

Michi said:
Hallo,

of course, this doesn't work:
document.getElementById('ID').style.-moz-user-select = 'text';
- but i hope it shows my problem...

Is it possible to set this css option by javascript and how? Is there
any workaround for that?
I'd need this to temporarily avoid text selection.
Put it in a class and set the element's class.
 
M

Michi

Totally awesome !!! - the easiest solution was most far away from my
mind.

But there still remains one little problem: css validation.

Many thanks

Michael
 
R

Randy Webb

Michi said the following on 5/21/2006 10:09 PM:
Totally awesome !!! - the easiest solution was most far away from my
mind.

What solution?

Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.

But there still remains one little problem: css validation.

Pick your poison. Validation is not all that it is made out to be though.
 
M

Michi

Randy said:
Michi said the following on 5/21/2006 10:09 PM:

What solution?

What's wrong with you?
Ian wrote only one sentence. Where do you think, would it be sensefull
to look for that solution?
Please quote what you are replying to.

Will do so in the future.
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.

Thanks for the tip.
Pick your poison. Validation is not all that it is made out to be though.

Think thats not necessary! - Like i said: just a little problem! -But
why choose the second best option?
 
R

Randy Webb

Michi said the following on 5/22/2006 12:06 AM:
Think thats not necessary!

What? That I said that Validation is not all that it is made out to be?
Well, it isn't.
- Like i said: just a little problem! -

As I said....
But why choose the second best option?

Do you mean the option where your page doesn't work as intended because
making it work as intended will cause a CSS Validation failure?
 
L

Lasse Reichstein Nielsen

Michi said:
of course, this doesn't work:
document.getElementById('ID').style.-moz-user-select = 'text';
- but i hope it shows my problem...

Perhaps it does.
Try ...style.MozUserSelect = 'text'
See said:
I'd need this to temporarily avoid text selection.

Sounds like something that could annoy a user :)
/L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top