[Seaside] answer: and jQuery

Robert Sirois watchlala at hotmail.com
Thu Mar 15 14:13:35 UTC 2012


Ajax is asynchronous. In Seaside's case, it is independent of the regular call/answer continuation stack. I can't remember if it works or not, but if you reload the page, has your component answered after firing the ajax call with #answer?

RS

Date: Thu, 15 Mar 2012 08:59:41 +0100
From: malte.grunwald at googlemail.com
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] answer: and jQuery


  



    
  
  
    Hello everybody.

    

    My problem: 

    

    I  am working with a JQDialog and when the "okay" button is clicked,
    I want to use a callback: and answer: to get back to
    the go method in my Task class.

    

    Example:

    

      renderOptionsOn: html id: anIdString width: anInteger 

            (html div)

                id: anIdString;

                script: (((html jQuery id: anIdString) dialog)

                            title: 'test';

                            autoOpen: false;

                            modal: true;

                            width: anInteger;

                            height: 'auto';

                            resizable: false;

                            addButton: 'Okay'

                                do: (html jQuery ajax script: 

                                            [:s | 

                                            s

                                                << (s jQuery id:
        anIdString , 'form') serialize;

                                                << (s jQuery id:
        #Settings) dialog close;

                                                << (s jQuery ajax
        callback: [self answer: self something])]);

                            addButton: (self textAt: #CancelTx) do: html
        jQuery new dialog close);

                            

                with: 

                        [self 

                            renderInputsOn: html

                            commands: self settings

                            id: anIdString,'test']

    

    I read a comment of Lukas Renggli from 2010, it says it is not
    possible to answer: from jQuery is this still up to date?

    Does anyone have an idea how I can solve the problem?

    

    Thank you!

    

    Regards

  


_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20120315/6df54c9e/attachment.htm


More information about the seaside mailing list