Hello Guys!
I've read a lot of discussions on this forum about embedding flash component into seaside application. Little summary: - Embed SWL object into seaside application and send session key to it via FlashVars. - Create callbacks, which will send information in XML format to this application. Now my question: How to create this callbacks. I know about method registerActionCallback, but i need to send some variables to this callback. For example i want following (JUST metacode): get: aDataType dataForPeriod: aPeriod "1. get data of specific type for period from storage" "2. render it as XML" How can i register such functions? How can i use them? Most of all i want to create httpservice object and use it to retrieve data from seaside application. Cheers, Oleg _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
> Now my question: How to create this callbacks. I know about method
> registerActionCallback, but i need to send some variables to this > callback. Have a look how the form fields (WAFormInputTag) define the callback. Another example you find in the Scriptaculous library: #callback:value:. This method is used to serialize the result of a JavaScript expression (second argument) into the callback (first argument) as part of an AJAX request. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Thanks, Lukas!
But i don't understand one thing. How will i render result to my flex application? For example i will register 2 callbacks with needed variables then: - i will have 2 URLS to call, one per callback. What URL should i call from flex application to seaside to parse this 2 variables and then send xml results? Do you have any idea? Or can u provide even a meta-code example, as you did with ModalBox? P.S. I've done a modalbox wrapper, but i am working with VW, so how can i publish it on squeak source?
|
On Oct 15, 2007, at 12:22 PM, Oleg Richards wrote: > > Thanks, Lukas! > > But i don't understand one thing. How will i render result to my flex > application? For example i will register 2 callbacks with needed > variables > then: > > - i will have 2 URLS to call, one per callback. > > What URL should i call from flex application to seaside to parse > this 2 > variables and then send xml results? Do you have any idea? I had an example in the previous thread posting 'RE: [Seaside] re: how to generate session url's' something like flashXmlText := html urlForAction: [self call: (YourTargetClass new url: each descn: (each descn) )]. Merik _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |