My question is regarding displaying modal window (jquery-ui)
After clicking a link in table row, the modal window appears
momentarily & vanishes.
Code in View---
{{extend 'layout.html'}}
<h1>Department Master</h1>
<table id="dept_table">
<thead>
<tr>
<th>Department ID</th>
<th>Department Name</th>
<th>Link</th>
</tr>
</thead>
<tbody>
<!--- in the code below, "departments" is returned from the controller
--->
{{for department in departments:}}
<tr>
<td>{{=department['deptid']}}</td>
<td>{{=department['deptnm']}}</td>
<td>{{=A('edit',_href=URL('dept_mast',args=[department['deptid'],department['deptnm']]),
_onclick='$("#deptEdtFrm").dialog({height: 200,width:500,modal:
true});')}}</td>
</tr>
{{pass}}
</tbody>
</table>
<div id="someID">
<form id="deptEdtFrm" name="deptEdtFrm" method="post" action="">
Department <input type='text' id='deptnm' name='deptnm'
value='{{=request.args[0]}}' />
<input type='submit' value='save' />
</form>
</div>
--------------------------
What should I do to display the modal window without disappearing in
an instant ?
-----Vineet