Hi,

I am learning MochiKit and the js execution stops at "loadJSONDoc".
Callback functions are not added to the referrer and the string
returned from the server is written to the browser window as a new
text page (not included in html of the existing page).

function MyClick(eventObj) // called if clicked on the submit button
{
    alert( "start - click");
    d = MochiKit.Async.loadJSONDoc(
        "https://myhost/";,
        { 'user': getElement('user').value,
          'pwd': getElement('pwd').value }  );

    alert( "click2"); // THIS NEVER COMVES UP
    d.addCallback(handleLogin);
    d.addErrback(handleLoginError);

******************************
Server side; cherrypy
user = kwargs['user']
pwd  = kwargs['pwd']
# checking user/pwd in the future; do nothing now
return simplejson.dumps([ data1, data2, data3])

# I also tried:
# return "{" + simplejson.dumps([200, "", str(session['ID'])]) + "}"

Thanks for your help in advance,
tamas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to