Saturday, March 24, 2012

Atlas to AJAX migration woes

I have quite a bit of client side code that uses the Sys.UI namespace. Where is Sys.UI.TextBox and Sys.UI.Select? I read a document a few months ago about these being moved, but for the life of me I can not lacate them.

this.orgTextEditBox =new Sys.UI.TextBox( $('<%= this.orgInfoValue.ClientID %>' ) );
this.orgTextEditBox.initialize();

Now this code will not work, what do I need to do to get back ontrack?

Thanks, Bill

I realized that I had not installed the Jan Features CTP, so with that and a change to the following, I have it working

this.orgTextEditBox =new Sys.Preview.UI.TextBox( $get('<%= this.orgInfoValue.ClientID %>' ) );
this.orgTextEditBox.initialize();

Now for a Select option box aka dropdown, it is working, however, the set_enabled() isn't working.I have
the following dataLst.set_enabled(bOption), so it looks like I need to do something else.

Any ideas?

No comments:

Post a Comment