Showing posts with label sys. Show all posts
Showing posts with label sys. Show all posts

Saturday, March 24, 2012

how can postback use ajax.net beta2

in atlas

var postBack =new Sys.WebForms.PostBackAction();

postBack.set_target("ctl00_MainContentHolder_btnAccAdd");

postBack.set_eventArgument('');

postBack.performAction();

but beta2

Sys.WebForms.PostBackAction object not exist

how can i do it?

hello.

xml-script and actions are defined in the value-added bits. download the november ctp and install it. thena dd the previewscript.js file to your page and everything should work ok.
o~ thank you very much~~Big Smile

Wednesday, March 21, 2012

How can I handle Popup control auto hiding?

I useSys.UI.PopupBehavior to show a popup:

// find popup

popup =new Sys.UI.Control($("tblMenu<%= ClientID %>"));var elt = popup.element;// initilize popup

popup.element.style.zIndex = 10000;

popup.initialize();

var b = popup.get_behaviors()// initilize behavior to the popup

behavior =

new Sys.UI.PopupBehavior();

behavior.set_positioningMode(Sys.UI.PositioningMode.Absolute);

b.add(behavior);

behavior.initialize();

// visibility handlingif (flag){behavior.show();}else{behavior.hide();}

It's working very good but I'd like that the popup'd disappear after mouse leave it.

How can I do it?

Use the onmouseout event to do behavior.hide()