Jump to content

How call unigui controls in javascript


altagur

Recommended Posts

I create form with panel with label. Label on panel panel on form. I think in javascript need call like

 

var txt = MyForm.MyPanel.MyLabel.text;

alert(txt) ;

 

But in fierbug i see MyLabel is a child of MyForm and call must be

 

var txt = MyForm.MyLabel.text;

alert(txt) ;

 

What kind of call rooles? Or i need call

var obj = document.getElementById(MyForm.MyLabel.id);

var txt =obj.text;

 

 

Thanks of all.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...