You can use the readOnly style class attribute to set a read only class. IN
this class you can set the style attribute disabled="true". 
The this.blur() is only for older browser, which do not support styles
correct.

Regards,
Henner

> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im 
> Auftrag von Scheible, Sebastian
> Gesendet: Mittwoch, 13. August 2003 15:18
> An: '[EMAIL PROTECTED]'
> Betreff: [dbforms] textField "readOnly" attribute can be 
> overridden using tab key in 1.1.3
> 
> 
> Hi there, 
> I am working with DbForms 1.1.3. The readOnly attribute of 
> db:textFields seems to use Javascript this.blur() to get rid 
> of the visible focus. However, you can still get an 
> (invisible) focus into that field with the tabulator key and 
> then start typing. What makes things problematic is that the 
> information sent back to the server (the field's value) is 
> actually being committed into the database instead of 
> ignoring the changes to this "readOnly" field (provided the 
> user has update access to that table). I am not sure if there 
> is an easy way to keep the server from doing this. But then, 
> the whole thing maybe isn't really critical if you know it 
> exists and use db:label where you badly want the users not to 
> update information via this specific field. 
> 
> Regards
> 
> - Sebastian Scheible
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites 
> including Data Reports, E-commerce, Portals, and Forums are 
> available now. Download today and enter to win an XBOX or 
> Visual Studio .NET. 
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
_072303_01/01
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to