i found to day a cool part of code, i liked it at least but i face off
with a problem. the core.ashx is yalling me that ";" is missing...

does anybody can explain me why that happens?

here the code i added to my global.asax to measure the time i need to
render my page:

void Application_BeginRequest(Object sender, EventArgs e)
{
    // needed for response time calculation.
   HttpContext.Current.Items["renderStartTime"] = DateTime.Now;
}

void Application_EndRequest(object sender, EventArgs e)
{
  DateTime start =
(DateTime)HttpContext.Current.Items["renderStartTime"];
  TimeSpan renderTime = DateTime.Now - start;
  HttpContext.Current.Response.Write("<!-- Render Time: " + renderTime
+ " -->");
}


and here the extract from core.ashx

createResponse: function(noContent) {
                var r = new Object();
                r.error = null;
                r.value = null;
                r.request = {method:this.method,args:this.args};
                r.context = this.context;

                if(MS.Debug.enabled == true)
                        MS.Debug.trace("... " + this.method + " finished.");

                if(!noContent) {
                        var responseText = new 
String(this.xmlHttp.responseText);

                        if(AjaxPro.cryptProvider != null && typeof 
AjaxPro.cryptProvider ==
"function")
                                responseText = 
AjaxPro.cryptProvider.decrypt(responseText);

                        if(this.xmlHttp.getResponseHeader("Content-Type") == 
"text/xml")
                                r.value = this.xmlHttp.responseXML;
                        else
                                if(responseText != null && 
responseText.trim().length > 0)
                                        eval("r.value = " + responseText + ";");


the script error happens upon: eval("r.value = " + responseText + ";");


thanks in adavance.
roni


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to