Wednesday, January 1, 2014

JQuery Tips and Tricks



Parsing in JQuery

Use JQuery.parseJSON() to convert a JSON string to a JavaScript object. Also there are other parsing options available in JQuery to parse string to XML (jQuery.parseXML()) and to parse a string into array of DOM elements (jQuery.parseHTML()).


Use Papa Parse to convert CSVs. 



AJAX Requests

When sending AJAX Get requests to the server, jQuery adds _ Query Parameter to the request URL. This is appended to get rid of caching in IE. This will be added only if cache option is set to false. The parameter is a timestamp. Also see this article


0 comments:

Post a Comment

Powered by Blogger.


Software Architect at Surge Global/ Certified Scrum Master

Experienced in Product Design, Software Engineering, Team management and Practicing Agile methodologies.

Search This Blog

Facebook