More soap and jquery in sharepoint

0 comments
function CIShowToolsSlider() {
    var soapEnv = " \
         \
             \
                 \
                {F55B5D06-1D32-4DCF-8A83-5BC4BA9FDA20} \
                 \
                 \
                     \
                         \
                         \
                     \
                 \
                1 \
                 \
             \
        ";
    jQuery.ajax({
        url: "/_vti_bin/lists.asmx",
        type: "POST",
        dataType: "xml",
        data: soapEnv,
        complete: CIToolsProcessResult,
        contentType: "text/xml; charset=\"utf-8\""
    });
};

// process the results from the tools web service CIShowToolsSlider()
function CIToolsProcessResult(xData, status) {
    jQuery(xData.responseXML).find("z\\:row").each(function() {
  // location of the div the new items should be appended to
        var url = jQuery(this).attr("ows_URL");
        var title = jQuery(this).attr("ows_Title");

        url = url.substring(0, url.indexOf(','));
        jQuery("#CIToolsDropDownMenu").append("
  • " + title + "
  • "); }); }; // end of processResult