Topic: How to select/highlight a control type node? (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=27767" title="Pages that link to Topic: How to select/highlight a control type node? (Page 1 of 1)" rel="nofollow" >Topic: How to select/highlight a control type node? <span class="small">(Page 1 of 1)</span>\

 
H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

IP logged posted posted 04-11-2006 09:35 Edit Quote

Hey all,

i'm still working on my rich text editor, this isn't a major issue but it would be nice!.


I have a control node stored (say an image node or table node) in a variable.

In design mode when you select a control it doesnt highlight it like text, but instead it 'selects' it as a control where you can drag the corners/change its size and all that.

All i want to do is select the control that is stored in the variable.


myControlNode.select() isn't a method for the node object.

I can create a text range of the control and select the range, but it selects it as though you are highlighting it.

Any ideas?

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

IP logged posted posted 04-11-2006 10:12 Edit Quote

[quick_random_reply] Haven't played with designMode, but isn't what you want : myControlNode.focus() ? [/quick_random_reply]

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

IP logged posted posted 04-11-2006 12:27 Edit Quote

it was something i hadn't previously tried and you gave me hope!

Alas, it didnt work .


I saw one site which said it is a valid method to use with the node object, but most sites about the node object don't list it.



Surely there is a way..

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

IP logged posted posted 04-11-2006 12:31 Edit Quote

it was something i hadn't previously tried and you gave me hope!

Alas, it didnt work .


I saw one site which said it is a valid method to use with the node object (actually a node element, so text box etc i guess), but most sites about the node object don't list it.



Surely there is a way..



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu