'html updater' - How to update multi id's?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

'html updater' - How to update multi id's?

dirk newbold
Hi - Newbie Question,
 
I'm trying to update more than one specific element with anchor's, submitButton's etc, etc...
 
Rather than updating the div which contains both elements I was wondering how to cascade the onClick method (?) or updater method (?) so that multiple id's with corresponding callbacks can be updated.
 
Following is what I have been using for html anchor, which works fine but the onSuccess cascade doesn't work with submitButton etc.
 
    html anchor
        onClick: (html updater
            id: 'box1';
            callback: [ :r | self renderContents1: r ];
            onSuccess: ( html updater
                id: 'box2';
                callback: [ :r | self renderContents2: r ])); 
        with: 'Go'
 
Cheers,
 
Dirk
 

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: 'html updater' - How to update multi id's?

Leandro Perez-2


dirk newbold <[hidden email]> wrote:
Hi - Newbie Question,
 
I'm trying to update more than one specific element with anchor's, submitButton's etc, etc...

If I understood well your problem, you need to update multiple elements, try using evaluator instead of updater.
Perhaps this will help you:
http://lists.squeakfoundation.org/pipermail/seaside/2006-November/009914.html

Regards
Leandro


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: 'html updater' - How to update multi id's?

dirk newbold
Beautiful
 
Thanks,
 
Dirk

 
On 8/30/07, Leandro Perez <[hidden email]> wrote:


dirk newbold <[hidden email]> wrote:
Hi - Newbie Question,
 
I'm trying to update more than one specific element with anchor's, submitButton's etc, etc...

If I understood well your problem, you need to update multiple elements, try using evaluator instead of updater.
Perhaps this will help you:
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/pipermail/seaside/2006-November/009914.html" target="_blank" rel="nofollow"> http://lists.squeakfoundation.org/pipermail/seaside/2006-November/009914.html

Regards
Leandro
 


_______________________________________________
Seaside mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank"> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside