I am sorry I do not understand. Could you explain the logic first?
What is the purpose of the modal?

On Apr 17, 6:03 am, ChrisM <cjjmur...@gmail.com> wrote:
> Hi,
> I have web2py return a selection from a controller function i.e.
> return dict(beats=beats)
> which I am iterating on a page using:
>
> I have a jquery Modal dialog which is shown after this click function
> for each "b":
> {{for b in beats:}}
> $('#msemp_{{=b.uuid}}').click(function() {
> $('#dialog_{{=b.uuid}}').dialog({"autoOpen": "false", "width":
> "600px"});
> $('#dialog_{{=b.uuid}}').dialog('open');
> {{pass}}
>
> then in body:
>
> {{for b in beats:}}
> <div>somestuff<div class="msemp_{{=b.uuid}}"></div></div>
> {{pass}}
>
> I have in the jquery  modal dialog form using the slider widget.
>
> <div  id="dialog_{{=b.uuid}}" style="display: none;" title="Send
> Empathy To This Person">
> {{def give_emp(val):
>   return DIV(
>     form.custom.begin,
>     DIV(form.custom.widget.q),
>     DIV(form.custom.submit),
>     form.custom.end
>     )
> pass}}
>
> {{=give_emp()}}
>         <p style="color:white;">just to test uuid value: {{=b.uuid}}</p>
>         <p style="color:white;">just to test user_id value: {{=b.user_id}}</
> p>
> </div>
>
> I want to be able to pass values from b.??? (ie. b.user_id) to the
> jquery modal dialog.
>
> I have tried web2py ajax function using a callback function from
> controller but I couldn't get it working and also maybe this would
> involve too many server requests (GAE?).
>
> I have also tried callback functions in jquery but couldn't get it to
> work.
>
> Maybe there is a simpler approach?
>
> Any help /ideas most appreciated.
>
> ChrisM
>
> --
> Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en

Reply via email to