Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 How to create a readonly text control
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

marionette_66
Novice

USA
9 Posts

Posted - 06 Aug 2007 :  22:42:55  Show Profile  Visit marionette_66's Homepage  Reply with Quote
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

s.dav
Site Admin

Italy
3364 Posts

Posted - 07 Aug 2007 :  08:36:05  Show Profile  Visit s.dav's Homepage  Reply with Quote
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

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000