How to Widgetize Your WordPress Theme in 2 Steps

Working on a new theme for the next Digging into WordPress book update, I found myself really getting into the whole “widgetizing” thing. Widgets enable non-technical users to customize your theme according to their specific layout needs, and with so many different widgets available, the possibilities are endless. You may have thought about widgets as… Continue reading How to Widgetize Your WordPress Theme in 2 Steps


javascript method for ajax

function getVersionInfo(contentID,version) { $(‘input[name=published]’).removeAttr(‘checked’); //reset publish //alert(version); $.ajax({ url: “/CSAB/Content/selectedversioninfo/”+version+”/”+contentID+””, dataType:”xml”, success: function(xml){ //alert(xml); var phisicalName=find(xml, “phisical-name”); var selectedVersion=find(xml, “selected-version”); var publishedVer=find(xml, “published-ver”); var contents=find(xml, “contents”); $(“#phisicalNameid”).val(phisicalName); $(“#contentsid”).val(contents); } }); } function find(xml, name) { var nodes = xml.documentElement.childNodes; for (i = 0; i < nodes.length; i++) { var node = nodes[i]; if (node.nodeName.toLowerCase() ==… Continue reading javascript method for ajax