vijayjoshi.org - php | javascript | ajax | and all things web

Posts Tagged ‘FAQ’

Comment box not visible on a page/post in WordPress 3.2.1

October 21st, 2011 | Posted by Vijay Joshi | 1 Comment
First of all I will congratulate you on upgrading to wordpress 3.2.1. Having latest version means your site is updated and safe. Now coming to the point, some of you might ...

jQuery Tip: Finding tag name of an element

November 20th, 2010 | Posted by Vijay Joshi | 1 Comment
While coding jQuery or javascript, sometimes we need the tag name of an element. This post will show how you can retrieve the tag name of an element easily using ...

Quick PHP Tip: How to parse CDATA sections using SimpleXML

September 22nd, 2009 | Posted by Vijay Joshi | 3 Comments
Applies to:  simplexml_load_string and simplexml_load_file Problem : SimpleXML does not parse text inside CDATA tags in an XML. Consider the XML below: $str = ''; $str.='some text goes here'; $str.=''; To parse it we use following ...

FAQ : How to toggle visibility of an html element by javascript

January 27th, 2009 | Posted by Vijay Joshi | No Comments
In my previous post, I discussed how we can change the style and/or css class of any html element by JavaScript. We can take advantage of this feature to add ...

FAQ : Problem with javascript function parseInt

January 7th, 2009 | Posted by Vijay Joshi | No Comments
JavaScript function parseInt() is used to parse a string and extract the integer from that string. Therefore if you do parseInt(“200xyz”), it will return 200. The problem arises when you do the ...

FAQ: calculate number of days between two dates in javascript

October 24th, 2008 | Posted by Vijay Joshi | 11 Comments
From today onwards I am introducing a new category FAQ. It will contain quick solutions and code for common problems developers face daily in javascript and php. Browser compatibility issues ...