<?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: Input Mask jqGrid + PHP</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/input-mask-jqgrid-php</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/input-mask-jqgrid-php/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rochiel on Input Mask jqGrid + PHP</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/input-mask-jqgrid-php#p24830</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/input-mask-jqgrid-php#p24830</guid>
        	        	<description><![CDATA[<p>Hmmmm,</p>
</p>
<p>I&#39;m using Javascript Grid and developped custom PHP Grid than i think than i could help you 🙂</p>
</p>
<p>I suppose than you error is a javascript error.</p>
<p>Well,</p>
<p>Remove this part opf your code :</p>
</p>
<p>,&#160;<br />"editoptions"=&#62;array("dataInit"=&#62;"js:function(elm){jQuery(elm).mask(&#39;(999) 999-9999&#39;);}"</p>
</p>
<p>Try if you&#39;ve got always your problem :</p>
<p>&#160;- If not, it seems than Jquery mask plugin doesn&#39;t exist in your page, check if it&#39;s true. The code "</p>
<pre class="html prettyprint">&#60;script src="jquery.maskedinput.js" type="text/javascript"&#62;&#60;/script&#62;"  need to be present 🙂</pre>
<p>&#160;- If true, i don&#39;t know.... :s</p>
]]></description>
        	        	<pubDate>Fri, 07 Oct 2011 09:18:13 +0300</pubDate>
        </item>
        <item>
        	<title>verosb on Input Mask jqGrid + PHP</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/input-mask-jqgrid-php#p24823</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/input-mask-jqgrid-php#p24823</guid>
        	        	<description><![CDATA[<p>The code of my jqgrid "grid.php" is:</p>
</p>
<p>CODE:</p>
<p>&#60;?php<br />require_once &#39;../../../jq-config.php&#39;;<br />// include the jqGrid Class<br />require_once ABSPATH."php/jqGrid.php";<br />// include the driver class<br />require_once ABSPATH."php/jqGridPdo.php";<br />// Connection to the server<br />$conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD);<br />// Tell the db that we use utf-8<br />//$conn-&#62;query("SET NAMES utf8");</p>
<p>// Create the jqGrid instance<br />$grid = new jqGridRender($conn);<br />// Write the SQL Query<br />$grid-&#62;SelectCommand = &#39;SELECT coddelegacion, descdelegacion, domiciliodelegacion, poblaciondelegacion, codpostaldelegacion, provinciadelegacion, telefonodelegacion, faxdelegacion, emaildelegacion FROM gestdelegaciones001&#39;;<br />// Set the table to where you add the data<br />$grid-&#62;table = &#39;gestdelegaciones001&#39;;<br />$grid-&#62;setPrimaryKeyId(&#39;coddelegacion&#39;);<br />$grid-&#62;serialKey = false;<br />// Set output format to json<br />$grid-&#62;dataType = &#39;json&#39;;</p>
<p>//Validacion<br />$checkTelefono = &#60;&#60;&#60;CHECKER<br />function checkTel(value, colname) {<br />if (value.length==9)<br />return [true,""];<br />else<br />return [false,"El tel&#233;fono debe tener 9 d&#237;gitos"];<br />}<br />CHECKER;</p>
<p>// Let the grid create the model<br />$grid-&#62;setColModel();<br />$grid-&#62;setColProperty("coddelegacion", array("label"=&#62;"Codigo", "width"=&#62;60, "readonly"=&#62;true, "editable"=&#62;false));<br />$grid-&#62;setColProperty("descdelegacion", array("label"=&#62;"Delegacion", "width"=&#62;120));<br />$grid-&#62;setColProperty("domiciliodelegacion", array("label"=&#62;"Domicilio", "width"=&#62;100));<br />$grid-&#62;setColProperty("poblaciondelegacion", array("label"=&#62;"Poblacion", "width"=&#62;80));<br />$grid-&#62;setColProperty("provinciadelegacion", array("label"=&#62;"Provincia", "width"=&#62;80));<br />$grid-&#62;setSelect("provinciadelegacion","SELECT DISTINCT IDPROVINCIA, DESCPROVINCIA FROM gestprovin001 ORDER BY DESCPROVINCIA", true, true, false);<br />$grid-&#62;setColProperty("codpostaldelegacion", array("label"=&#62;"CPostal", "width"=&#62;70,"editrules"=&#62;array("required"=&#62;true, "number"=&#62;true, "integer"=&#62;true)));</p>
<p>$grid-&#62;setColProperty("telefonodelegacion",&#160;<br />array("label"=&#62;"Telefono", "width"=&#62;90,&#160;<br />"formatoptions"=&#62;array("srcformat"=&#62;"Y-m-d H:i:s", "newformat"=&#62;"Y-m-d"),<br />"editrules"=&#62;array<br />(<br />"required"=&#62;true, "number"=&#62;true, "integer"=&#62;true, "custom"=&#62;true, "custom_func"=&#62;"js:".$checkTelefono<br />),&#160;<br />"editoptions"=&#62;array("dataInit"=&#62;"js:function(elm){jQuery(elm).mask(&#39;(999) 999-9999&#39;);}")&#160;<br />));&#160;<br />//$grid-&#62;setColProperty(&#39;telefonodelegacion&#39;,array("formoptions"=&#62;array("rowpos"=&#62;3,"colpos"=&#62;2)));<br />$grid-&#62;setColProperty("faxdelegacion", array("label"=&#62;"Fax", "width"=&#62;90, "editoptions"=&#62;array("maxlength"=&#62;9)));<br />$grid-&#62;setColProperty("emaildelegacion", array("label"=&#62;"Email", "width"=&#62;200, "editrules"=&#62;array("required"=&#62;true, "email"=&#62;true)));<br />// Set the url from where we obtain the data<br />$grid-&#62;setUrl(&#39;grid.php&#39;);<br />// Set some grid options<br />$grid-&#62;setGridOptions(array(<br />"rowNum"=&#62;10,<br />"rowList"=&#62;array(10,20,30),<br />"sortname"=&#62;"coddelegacion",<br />"multiselect"=&#62;true<br />));<br />// The primary key should be entered<br />$grid-&#62;setColProperty(&#39;descdelegacion&#39;, array("editrules"=&#62;array("required"=&#62;true)));<br />// Enable navigator<br />$grid-&#62;navigator = true;<br />// Enable only deleting<br />$grid-&#62;setNavOptions(&#39;navigator&#39;, array("csv"=&#62;true, "pdf"=&#62;true, "excel"=&#62;false,"add"=&#62;true,"edit"=&#62;true,"del"=&#62;true,"view"=&#62;true, "search"=&#62;false));<br />$grid-&#62;setNavOptions(&#39;edit&#39;,array("closeAfterEdit"=&#62;true,"width"=&#62;300,"height"=&#62;280,"dataheight"=&#62;220));<br />$grid-&#62;setNavOptions(&#39;add&#39;,array("closeAfterAdd"=&#62;true,"width"=&#62;300,"height"=&#62;280,"dataheight"=&#62;220));</p>
<p>//Opciones PDF<br />$oper = jqGridUtils::GetParam("oper");<br />// prevent some executions when not excel export<br />if($oper == "pdf") {<br />$grid-&#62;setPdfOptions(array(<br />// enable header information<br />"header"=&#62;true,<br />// set bigger top margin<br />"margin_top"=&#62;27,<br />//header title<br />"header_title"=&#62;"e-Project",<br />// and a header string to print<br />"header_string"=&#62;"GESTION DELEGACIONES EULEN"<br />));<br />}</p>
<p>$grid-&#62;renderGrid(&#39;#grid&#39;,&#39;#pager&#39;,true, null, null, true,true);<br />$conn = null;</p>
<p>?&#62;</p>
</p>
<p>And i obtain the next error code:</p>
</p>
<p>ERROR: The object does not accept this property or method</p>
<p>Thank you for your help!!</p>
]]></description>
        	        	<pubDate>Thu, 06 Oct 2011 11:26:31 +0300</pubDate>
        </item>
        <item>
        	<title>rochiel on Input Mask jqGrid + PHP</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/input-mask-jqgrid-php#p24819</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/input-mask-jqgrid-php#p24819</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Are you talking about Form function ?</p>
<p>In this case you could use Jquery maskedinput plugin, see at :</p>
<p><a href="http://digitalbush.com/projects/masked-input-plugin" rel="nofollow" target="_blank"><a href="http://digitalbush.com/project" rel="nofollow">http://digitalbush.com/project</a>.....put-plugin</a></p>
]]></description>
        	        	<pubDate>Thu, 06 Oct 2011 08:38:36 +0300</pubDate>
        </item>
        <item>
        	<title>verosb on Input Mask jqGrid + PHP</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/input-mask-jqgrid-php#p24817</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/input-mask-jqgrid-php#p24817</guid>
        	        	<description><![CDATA[<p>I want to create an input mask that when a phone number is entered in the phone field it is automatically formatted to (xxx)xxx-xxxx.</p>
<p>How can I do this?</p>
]]></description>
        	        	<pubDate>Wed, 05 Oct 2011 22:01:36 +0300</pubDate>
        </item>
</channel>
</rss>