Ajax.NET 5.5.30.3 (cookieless support)

There is a new version available at http://ajax.schwarz-interactive.de. Feel free to download the version 5.5.30.3 with following fixes:

- Script tags will use type instead of language
- cookieless web application support (for HttpSession)
- AjaxMethods are supporting void
- special chars &, = and \r\n

I hope the next version will using IHttpAsynHandler instead of IHttpHandler.

I also added a IHttpModule example how to implement your own security:

internal class AjaxSecurityModule : IHttpModule
{
  private void context_BeginRequest(object sender, EventArgs e)
  {
    HttpRequest request = HttpContext.Current.Request;
    if(request.HttpMethod != "POST"
      || !request.RawUrl.ToLower().StartsWith(request.ApplicationPath.ToLower() + "/ajax/")
      || !request.Url.AbsolutePath.ToLower().EndsWith(".ashx"))
    return;

    if(request.UserHostAddress == "127.0.0.1")
    {
      HttpResponse response = HttpContext.Current.Response;
      response.Write("new Object();r.error = new ajax_error('error','description',0)");
      response.End();
      return;
    }
  }
}

Published Monday, May 30, 2005 1:13 PM by Michael Schwarz

Comments

# re: Ajax.NET 5.5.30.3 (cookieless support)

Monday, May 30, 2005 1:41 PM by Fabio
Fantastic library.

One hint only: put in AjaxGuide.doc and quickGuide.txt the ajax version what you used. For example:
AjaxGuide.doc - AjaxGuide5-5-30-3.doc
or
inside of text of AjaxGuide.doc
then we need not search about the lastest features in old docs, ok?

Regards
Fabio

# re: Ajax.NET 5.5.30.3 (cookieless support)

Monday, May 30, 2005 4:42 PM by Michael Schwarz
Ok, I will do this...

# re: Ajax.NET 5.5.30.3 (cookieless support)

Monday, May 30, 2005 7:35 PM by James
What are the benefits of using IHttpAsynHandler over IHttpHandler?