<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Ask: Custom edit button with with asking for superuser permission before</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/ask-custom-edit-button-with-with-asking-for-superuser-permission-before</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/ask-custom-edit-button-with-with-asking-for-superuser-permission-before/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Candrairawan78 on Ask: Custom edit button with with asking for superuser permission before</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/ask-custom-edit-button-with-with-asking-for-superuser-permission-before#p19360</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/ask-custom-edit-button-with-with-asking-for-superuser-permission-before#p19360</guid>
        	        	<description><![CDATA[<p>Dear all,</p>
<p>Could anybody guide me how to customize edit button with asking for superuser permission before?</p>
<p>If user click edit button, application will ask for supperuser password. if correct, the edit form will appear. if not correct, the edit form will not appear.</p>
<p>I have tried without success, pls somebody help me<img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
<p>jQuery("#list").jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,{edit:true,edittext:&#39;Edit&#39;,add:false,del:true, deltext:&#39;Delete&#39;,search:false, refresh:false, view:false},<br />&#160; {jqModal:true, top: 120, left: 480, drag:false, resize:false, checkOnUpdate:true, savekey: [true,13], navkeys: [true,38,40], checkOnSubmit : true, reloadAfterSubmit:false, closeOnEscape:true, closeAfterEdit: true, <br />&#160; beforeShowForm : function()<br />&#160;&#160;&#160; {<br />&#160;&#160; &#160;var pass = prompt (&#39;Please insert Root password, to edit price:&#39;,&#39;&#39;)<br />&#160;&#160; &#160;if (pass != 1)<br />&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;alert(&#39;wrong password&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;setTimeout(&#39;self.location.href="Formmain.php"&#39;,0); <br />&#160;&#160; &#160;}<br />&#160;&#160;&#160; },<br />&#160; <br />&#160; },// edit options</p>
</p>
<p>Regards,</p>
</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Fri, 27 Aug 2010 05:50:34 +0300</pubDate>
        </item>
</channel>
</rss>