Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Usng JScript to return props of custom controls

Status
Not open for further replies.

mirirom

Programmer
Jul 21, 2001
110
US
hi,

i'm wondering how to go about returning physical properties of custom controls (not ascx but controls derived by pure classes) using javascript.

for example, my control (inherited from WebControl) has its height prop(this.height) assigned a value in its constructor. if you view the source of the html after viewing the page in the browser, this height property shows up as part of the elements style.height property. fine.

however, trying to read this property via a call to a javascript function keeps stating that myElement.height or myElement.style.height is undefined. actually, it states that style.height is NULL or not an object.

any thoughts/advice on this? many thanks in advance

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top