Well the script below can be rendered from a Lift snippet so I was
thinking of something like:
def mySnippetFunction = {
val script = """ ...
myVariables.firstProperty = """ + S.mapFunc(<your function goes here>)
+ """;
...
"""
<head><script type="text/javascript">{script}</script></head>
}
Br's,
Marius
On Dec 28, 4:27 pm, 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");
> 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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---