Yashwanth B M

Curiously passionate about Web technologies and proud to be a Web Developer

jQuery: Difference between parent(), parents() and closest()

jQuery is wonderful javascript library out there for developers. It has came to an extent that we can say Pre jQuery and Post jQuery era of web. jQuery has simplified DOM Manipulation, events etc.. I completely agree with its quotes saying – Write less and Do More. jQuery been a boon for developers till date. This post is all about three methods offered by jQuery parent, parents and closest to traverse the DOM. Usually we get confuse with this three

Read More.

Twitter Bootstrap Typeahead with Label and Value

  Bootstrap is one of the best and awesome front-end framework i have used till date. This post is on typehead javascript component that comes along with framework. The typeahead component process data provider ( json ) and set the label to the value of the element. But it doesn’t fit in the case where you have json in id->value pair and you want to set another element to id based on value you selected from the typeahead.   I

Read More.

Parsing Large XML Documents in PHP

  Problem Its impractical to use DOM extension or SimpleXML extension to parse large XML documents in PHP. Usually will get Time-out error or script executes for longer than usual. As DOM and SimpleXML extensions loads the entire XML document into memory while parsing, it just dosen’t work for Large XML documents. How to solve it ? Its as easy as using extension, but not DOM or SimpleXML. Its XMLReader Extension. Bit of theory behind it. In PHP there are

Read More.

Copyright © 2012 Yashwanth B M. All Rights Reserved.