Testing sharepoint search web service using jquery

0 comments
This is a code to test the search web service in SharePoint. Here is the Javascript part
function SoapSearchCaller(){
 var queryXml = "";
    var soapEnv = "";
    
    queryXml = jQuery("#inptextarea").val();
 
 soapEnv += "";
 soapEnv += '';
    soapEnv += '';
    soapEnv += '';
 soapEnv += escapeHTML(queryXml);
    soapEnv += '';
    soapEnv += '';
 soapEnv += '';
 soapEnv += '';

    jQuery.ajax({
        url: "/_vti_bin/search.asmx",
        type: "POST",
        dataType: "xml",
        data: soapEnv,
        complete: CIToolsProcessResult,
        contentType: "text/xml; charset=\"utf-8\""
    });
};

// process the results from the web service
function CIToolsProcessResult(xData, status) {
 jQuery("#Response").append(""+status+"");    
 jQuery("#Response").append(xData.responseText);    
}; // end of processResult
Here is the HTML part


Submit
-
Clear


Response

Google store in C#?

1 comments
Maybe is a 3rd party store, or really using C#.

Check this url http://www.googlestore.com/category.asp?catid=search&searchtype=keyword&search=blogger

Here is a image of the action


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

    Filtering sharepoint expiration date with xsl

    0 comments
    To filter expiration date in your xsl xslt using sharepoint:

    
    ...
    
    

    jQuery Shadowbox and Photo Library

    0 comments
    Sorry, I don't have time to write a tutorial, but basically it is the same as the other async calls with jquery. It reads a Photo Library, order by date, populate the "ciPhotoOfTheMonth" DIV and call shadowbox to attach the href tags inside of a DIV to shadowbox

    
    
    
    <link rel="stylesheet" type="text/css" href="/_layouts/js/shadowbox/shadowbox.css">