Hi,

can you send me the whole project files as a ZIP to my privat email?

Regards,
Michael



On 5/3/06, TheZel.NET <[EMAIL PROTECTED]> wrote:
>
> Registering In Page_Load:
>
>            AjaxPro.Utility.RegisterTypeForAjax(GetType(MyAjaxClass))
>            Ajax.Utility.RegisterTypeForAjax(GetType(MyAjaxClass))
>
> Ajax Server Method (both get called as required during runtime)
>
>        <AjaxPro.AjaxMethod()> _
>        Public Function MyAjaxProFunction(ByVal VIN As String) As
> String
>              Return "foo"
>        End Function
>
>        <Ajax.AjaxMethod()> _
>        Public Function MyAjaxFunction(ByVal VIN As String) As String
>              Return "foo"
>        End Function
>
> core.ashx javascript during AJaxProMethod callback: (at least where it
> bombs)
>
>        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); ///
> this.xmlHttp.responseBody = "foo"; this.xmlHttp.reponseText = '/';
>
>                        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 + 
> ";");    /// bombs here
>
>                        responseText = null;
>                }
>
>                return r;
>        },
>
>
> Finally, web.config attributes set:
>
>    <httpHandlers>
>      <!-- Register the ajax handler -->
>      <add verb="POST,GET" path="ajax/*.ashx"
> type="Ajax.PageHandlerFactory, Ajax"/>
>      <add verb="POST,GET" path="ajaxpro/*.ashx"
> type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
>    </httpHandlers>
>
>        <location path="ajaxpro/prototype.ashx">
>                <system.web>
>                        <authorization>
>                                <allow users="*"/>
>                        </authorization>
>                </system.web>
>        </location>
>
>        <location path="ajaxpro/core.ashx">
>                <system.web>
>                        <authorization>
>                                <allow users="*"/>
>                        </authorization>
>                </system.web>
>        </location>
>
>        <location path="ajaxpro/converter.ashx">
>                <system.web>
>                        <authorization>
>
>
> As said before, the AJAX method works great; the AJAXPro method gets to
> the server side fine, but bombs on the response-handling code for the
> callback.
>
> I tried removing AJAX code/dll, leaving only the AJAXPro stuff, and I
> got the same results.
>                                <allow users="*"/>
>                        </authorization>
>                </system.web>
>        </location>
>
>
> >
>


--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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