In this case, you're manually creating the request, so it's not so hacking
to use S.param... for example:
def s(n: String): Can[String] = S.param(n)
def i(n: String): Can[Int] = S.param(n).flatMap(Helpers.asInt)
for {name <- s("name)
age <- i("age")} yield
<info><name>{name}</name><age>{age}</age></info>
On Sun, Dec 28, 2008 at 6:27 AM, Tim Perrett <[email protected]> wrote:
>
> Interesting - when you say paramaterize, can you clarify what you
> mean?
>
> In flash, you usually set propertys of the request var, so, for
> insntace
>
> /* actionscript */
>
> var myRequest:URLRequest = new URLRequest("http://www.myserver.com/
> myscript.php <http://www.myserver.com/myscript.php>");
> var myLoader:URLLoader = new URLLoader();
> var myVariables:URLVariables = new URLVariables();
>
> myVariables.firstProperty = "first";
> myVariables.secondProperty = "second";
>
> /* end actionscript */
>
> This is that mapped as ordinary http post key value pairs.
>
> I can see that there would be scope for using JSON, but really, i
> don't think thats the right solution.
>
> What are your thoughts?
>
> Cheers, Tim
>
>
> On Dec 28, 1:38 pm, Marius <[email protected]> wrote:
> > I don't know much about flash but I wonder if you can can parameterize
> > the form fields names. For instance when you're calling the flash
> > object you pass the name of each form field. These names can be
> > generated by Lift hence they would represent mapped functions. Hence
> > when your form gets submitted you functions will be executed.This
> > should be easy to do if your flash call is added from a snippet.
> >
> > Br's,
> > Marius
>
> >
>
--
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" 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/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---