Showing posts with label handler. Show all posts
Showing posts with label handler. Show all posts

Wednesday, March 28, 2012

Direct method call from html event

I'm just beginning trying to get familiar with Atlas and beforehead I'm curious whether it is possible to get a event handler called without having to execute the whole state flow of a page.Hi,

do you mean a server event handler? If so, the page must go through its whole lifecycle.

Difference between Callback and Webmethod

Hi,

What's the difference between using a callback event handler and a method defined as a WebMethod? One major difference I see is that a callback event involves some aspects of the page lifecycle. When is one advisable to be used over the other?

Thanks.

Hi,

On client side, the difference isn't very big. Both of them will use xmlHttpRequest to send to request to the server.

But it's different on server side. When work with callback, a new instance of the page is created to server the request, and a corresponding method defined in it will be fired. While with web method, no instance of page will be created, instead, an instance of the web service is created.

The latter one is a light-weighted way.

Saturday, March 24, 2012

Deployment Script for Atlas HTTP Handler

I'm deploy Atlas to several sites and put together a script that registers the Atlas handler across all sites on a machine. If anyone else is in the same situation please feel free to give it a shot:

http://geekswithblogs.net/colinbo/archive/2006/05/11/77937.aspx

Feedback appreciated!

Cheers,
Colin

Cool stuff -- thanks for posting this Colin!