Ajax.NET/Atlas Client Debugging

I read the blog from Rob Chartier and want to show you a feature that is available in Ajax.NET and Atlas. Both libraries are adding debug methods to the client-side JavaScript code.

Ajax.NET Professional: (see online example at http://ajaxpro.schwarz-interactive.de/)

MS.Debug.enabled = true;
MS.Debug.trace = function(s){  alert(s);  };

Atlas Framework:

var o = {};
o.FirstName = "Michael";
o.Age = 28;
    
window.debug.trace("my trace line 1");
window.debug.trace("my trace line 2");
    
window.debug.dump(o, "", true, "o");
    
window.debug.fail("my exception");

 

If you open the page and the JavaScript is executed you will see a additional panel where debug information is displayed:

Published Thursday, October 06, 2005 10:02 PM by Michael Schwarz

Comments

# re: Ajax.NET/Atlas Client Debugging

Friday, October 07, 2005 7:53 AM by Vitor hervatin
Hi, i´m a new user (developer) the Ajax with c#. I try using the exemplo, but when i include the HttpHandler in Web.config, return the error:

Mensagem de Erro do Analisador: Não foi possível carregar o tipo Ajax.PageHandlerFactory do conjunto de módulos (assembly) Ajax.

Erro de Origem:

Linha 5:
Linha 6: <httpHandlers>
Linha 7: <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
Linha 8: </httpHandlers>
Linha 9:

Arquivo de Origem: c:\inetpub\wwwroot\ajax\web.config Linha: 7


Please, help me !!!

# re: Ajax.NET/Atlas Client Debugging

Friday, October 07, 2005 2:29 PM by Florin Sabau
Hello,

Did you put the Ajax.dll in the "bin" directory of the ASP.NET application?