Login  
Search All Forums
Dart Home | PowerWEB TextBox for ASP.NET | Custom Development Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
AuthorForum: PowerWEB TextBox for ASP.NET
Topic: Disabling PowerWEB textBox
Captell

From: Melbourne, Australia
Posts: 10
Member Since: 03/29/09
posted June 22, 2009 6:52 PM

My application allows users to edit predefined bits of text, so when they open the page they see a list of things they can edit and underneath the textbox. I'd like to have the textbox disabled until they select something to edit but I can't seem to get this to work properly, the best I can do is greyed out text which "sometimes" is not editable. Here is what I've got so far.

In my onload javascript function
function onload()
{
  document.getElementById("hb").disabled=true;
  document.getElementById("btnPreview").disabled=true;
  document.getElementById("btnPublish").disabled=true;
  document.getElementById("btnSave").disabled=true;
 
  m_docname = document.getElementById("txtDocName").value;
}

then in the function that handles the selection

 document.getElementById("hb").disabled=false;
        document.getElementById("btnPreview").disabled=false;
        document.getElementById("btnPublish").disabled=false;
        document.getElementById("btnSave").disabled=false;

The result of this is as previously mentioned greyed out text in the TextBox but it can still be edited... typed into. 

Any suggestions?

ps. Is it possible to make your forum message area a bit bigger, it's a pain typing into these small areas...



Jamie Powell (Admin)

From: Rome, NY USA
Posts: 448
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted June 23, 2009 10:12 AM

This issue must be handled through our administrative procedures prior to response. Please contact sales@dart.com for additional information. Thank you.
Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX