There is one more issue.
In normal case, (without overriding the click event), I could supply
request.args to controller function through URL('controller',
args[n1,n2,..]).

In this case, since the click event is handled (overridden) by $
("#anchorname").dialog({...,
how do I supply args to the jquery-ui modal form?
(it is on the same view.html, called in modal form)
Note: in the <td> element below, _onclick="{{URL( in the link is
overridden, so it does not work.

[CODE]
<tbody>
{{for department in departments:}}
<tr>
<td>{{=department['deptid']}}</td>
<td>{{=department['deptnm']}}</td>
<td>
{{=A('edit',_onclick="{{URL('DIV on same page',
args=[department['deptid'],department['deptnm']]}}",_class='edturl')}}
## this {{=URL doestn't work, bcoz it is overridden in javascript
{{=A('delete',_onclick="{{URL('DIV on same
page',args=[department['deptid'],department['deptnm']]}}",_class='delurl')}}
</td>
</tr>
{{pass}}
</tbody>

$(document).ready(function() {
$('.edturl').click(function(e){
 $("#deptEdt").dialog({
       height: 200,
       width:500,
       modal: true,
       show: "blind",
       hide: "explode"
                            });
});
});
[/CODE]

---vineet

On Sep 30, 9:26 pm, Vineet <vineet.deod...@gmail.com> wrote:
> Oops. I overlooked that in web2py book.
> Thanks for pointing to it.
> It played the trick & working OK.
>
> Now trying to use modal confirmation of jquery-ui.
>
> Thank you, :)
> Vineet
>
> On Sep 30, 5:43 pm, juanduke <juan.fu...@gmail.com> wrote:
>
>
>
> > Hi Vineet:
>
> > I use to get args and form's field whit *request.args(N)* (N integer >= 0)
> > and *request.vars.fieldname* (where fieldname, is a name of an input in form
> > submited)
>
> >http://www.web2py.com/book/default/docstring/request.argshttp://www.w...
>
> > HTH!
>
> > Bye- Hide quoted text -
>
> - Show quoted text -

Reply via email to