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;
}
}
}
3 Comments
Comments have been disabled for this content.
Fabio said
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
Michael Schwarz said
Ok, I will do this...
James said
What are the benefits of using IHttpAsynHandler over IHttpHandler?