Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to open a facebox or model box on click on link in a column of jqGrid?
    text
    copied!<p>I am having a jqgrid and in a third column there is a link (), i want to show page in a facebox or model box when user click on link of a column of jqgrid . i tried but it simply opening a page not in facebox or model box.Here is the code.</p> <pre><code>colNames:['Index','Group Name', 'Exer Name','Details'], colModel:[ {name:'exerId',index:'exerId', width:65, sorttype:'int'}, {name:'exGroupName',index:'exGroupName', width:150}, {name:'exerName',index:'exerName', width:100}, {name:'view',index: 'view', search:false, align: 'center',width:100}, ], gridComplete: function () { var ids = jQuery("#toolbar").jqGrid('getDataIDs'); for (var i = 0; i &lt; ids.length; i++) { var cl = ids[i]; be = "&lt;a href='&lt;%= request.getContextPath()%&gt;/jsps/tools.jsp' rel='facebox'&gt;Slet&lt;/a&gt;"; jQuery("#toolbar").jqGrid('setRowData', ids[i], { view: be }); } }, </code></pre> <p>I am using this script for facebox.</p> <pre><code>&lt;link href="&lt;%= request.getContextPath()%&gt;/scripts/facebox/facebox.css" media="screen" rel="stylesheet" type="text/css" /&gt; &lt;script src="&lt;%= request.getContextPath()%&gt;/scripts/facebox/facebox.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox({ loadingImage : '&lt;%= request.getContextPath()%&gt;/scripts/facebox/loading.gif', closeImage : '&lt;%= request.getContextPath()%&gt;/scripts/facebox/closelabel.png' }) }) &lt;/script&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload