Top add

Showing posts with label xml. Show all posts
Showing posts with label xml. Show all posts

Tips to Increase Blog Traffic

There are some essential tips that every writer should follow to increase traffic to his or her blog. Many of these tips are simple, while a few may require changes in web design. 

1. Write Well and Write Often
Frequently updating your blog with useful content is the first step to building your blog's audience. The content you write is what will keep readers coming back for more. Make sure you have something meaningful to say to them and say it often to maintain their interest and keep them loyal.Furthermore, post frequently to increase the number of chances you have for your blog's content to be noticed by search engines such as Google or Technorati.

Jquery to read from xml

  1. Include the jquery in your page
  2. Validate the xml using online xml validators
  3. Use the jquery.get() to get all the data from the xml
    example:
    $('Contact',xml).each(function() {
    srno = parseInt($(this).find("srno").text());
    empId = $(this).find("empid").text();
    name = $(this).find("name").text();
    contact = $(this).find("contact-data").text();
    type = $(this).find("type").text(); }

  4. The xml data are read and shown as html using jquery
  5. To add new date use the function $('#idSave').click() to delete use deleteRow and to edit editrow
Download the source file here . Files has custom.js which has add/edit and delete function . Please run contact.html to see the output