Hi,

this is because in the post AjaxPro is used as synchornous call which
is absolutly not the prefered method. Use it with a callback to
prevent hanging of your web browser.


var d;
                                
function setData() {
        d = new Date();
        Home.setData(lblText.innerHTML, function(res) {
                alert(new Date().getTime() - d.getTime());
                lblText.innerHTML = res.value;
        });
}

function getData() {
        d = new Date();
        Home.getData(function(res) {
                alert(new Date().getTime() - d.getTime());
                lblText.innerHTML = res.value;
        });
}



But still the serialization to JSON is slower on JavaScript
client-side code. I'm currently optimizing the code and will publish a
new version later.

Regards,
Michael



On 10/3/06, Jinglecat <[EMAIL PROTECTED]> wrote:
>
> I come accross the problem as chrisg229 :
> http://groups.google.com/group/ajaxpro/browse_thread/thread/17ce977c0318329b/f8bd36d38e63e0db?lnk=gst&q=long+string&rnum=6
>
> chrisg229's description :
> ---------------------------------------------------------------------------------------------------------------
> When I try to pass a large string as a parameter from the client to the
>
> server via an AjaxPro.AjaxMethod, it takes a very long time (about 1-2
> minutes). When I return this same string from the server to the client
> via an AjaxPro.AjaxMethod, it is very fast (about 1-2 seconds). Is
> there any way to get around this "problem" ?
> BTW I'm using AjaxPro.dll ver. 6.7.20.1
> ---------------------------------------------------------------------------------------------------------------
>
> In my case, I pass the size of about 90kb to take about 5seconds.
> In surprise, I found the 5seconds takes in the client(I'm using IE),
> neither the transfers on the net nor the process on the server(in fact,
> I do nothing in the server method).
> When i invoke the AjaxPro.AjaxMethod in the client script, the IE seems
> dying for 5 seconds.
>
> When i cut the string to 1kb, the code works well.
>
> if it matters JSON?
>
> I need any help. Thanks.
>
>
> >
>


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

Skype: callto:schwarz-interactive
MSN IM: [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/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to