Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 How to create a readonly text control

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
marionette_66 Posted - 06 Aug 2007 : 22:42:55
Hello,

I want to display on my main page a "Welcome back {your name}!" text, the information on {your name} will be retrieved from another site via a cookie using a java function.

I can do this by placing a Edit control on the screen and then, using java, updating it value; no problem here.

The issue is that this Edit control has a border and allows the user to enter information, I need an Edit control that behaves as a Text control: no border, does not allow for input.

How do I do this in D.H.E.?

regards
Roberto
1   L A T E S T    R E P L I E S    (Newest First)
s.dav Posted - 07 Aug 2007 : 08:36:05
In order to change the visual appearance of input controls you have to create a style class.
So in D.H.E., choose the text, go to the "style" property (or "class name") and create a style class with border=0
In order to make the text readonly this is possible only in the next version. You can do this simply using your javascript adding this line:

yourtext.readOnly=true;

where yourText is the text field in HTML

Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000