TypeError: xui.UI.HTMLButton is not a constructor

Develop and Deploy Cross-Browser Web Apps .

TypeError: xui.UI.HTMLButton is not a constructor

Postby kevinotton » Fri Aug 14, 2015 10:07 am

I keep getting this message for various components. A standard one works okay.

Code looks okay:
host.panelMain.append(
(new xui.UI.HTMLButton())
.setHost(host,"ctl_htmlbutton2")
.setLeft(660)
.setTop(610)
.setWidth(100)
.setHeight(22)
.setHtml("oct 2015")
.onClick("_ctl_htmlbutton2_onclick")
);

What am I missing?

Thanks
Kevin
kevinotton
 
Posts: 39
Joined: Thu May 15, 2014 8:18 am
Location: Needham Market, Suffolk, UK

Re: TypeError: xui.UI.HTMLButton is not a constructor

Postby support » Tue Aug 18, 2015 4:43 am

It indicates that the corresponding class is not loaded into the current html, check it please.
support
 
Posts: 352
Joined: Sat Apr 27, 2013 9:22 am


Return to CrossUI for Web Apps

Who is online

Users browsing this forum: No registered users and 0 guests

cron