Positioning pager of JqGrid

Here, I’m going to explain changing position of navigation bar including pager of JqGrid. I have provided the default JqGrid configuration below,

As per the above default configuration, JqGrid will look like as below,

oie_1318151523xwGWA

If you want to change the position of the navigation bar to above, add toppager:true attribute to the above configuration. And in this case you don’t need to define the <div id=”divPagerPlanList”></div> and use pager: “#divPagerPlanList”In this case the the id of the pager will be list_toppager. Refer the changed configuration & image below,

oie_13181733Q2a3z3q9

Then, if we want to get the navigation bar on both top and bottom, do the first step as specified above. After that add cloneToTop:true option as follows,

jQuery(“#tblPlanList”).jqGrid(‘navGrid’,’#divPagerPlanList’,{cloneToTop: true, del:false,add:false,edit:false,search:false});

OR

jQuery(“#tblPlanList”).jqGrid(‘navGrid’,’#pager’,{cloneToTop: true, del:false,add:false,edit:false,search:false});

Refer the changed configuration and image below,

oie_13182447TK42munA

Read More

Avoid mail direction to spam or junk folder – Zend PHP

Here, I’m just giving a solution to avoid mail direction to ‘spam’/ ‘junk’ folder while sending the mail using Zend_Mail(). Please see below,

 

Read More

Get Date value based on User Locale – Zend PHP

Use the code given below to get the date value in desired format based on user locale using Zend_Date() & Zend_Locale().

 

Read More

Parsing XML response which contains tags with colon

Hi,

As part of integrating Webex conferencing service to my current working project, I came across on parsing XML which contains tags with colon (:). I was familiar with normal XML parsing [means XML tags without colon] and I have done a lots of such XML parsing. After searching on google for sometime, I found solution for parsing XML with tags which contains colon. I would like to share this solution with an example here. Please see below:

 

Read More

Hide PHP and Apache web server versions from response header

Normal PHP & Apache installations won’t hide the server details from request response headers. See below [with default configuration],

rsz_1screenshot_from_2013-10-11_071725

To hide PHP & Apache web server version details from response headers, you have to edit few configuration files on your hosted server.

 

 

After made the above changes, restart the apache web server.

 

Now check the response header from your server,

rsz_screenshot_from_2013-10-11_082700

See the difference between the response headers before and after changing the configurations.

Note: These changes won’t made your server more secure. It is just hiding the configuration details from hackers.

 

Read More