Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: spservices autocomplete within a webpart (custom usercontrol) in asp.net

$
0
0
Hello.
I am trying days making things work here... But withi no success!
I have a webpart in my sharepoint 2007 - It"s an custom usercontrol that contains an asp textbox wich i want to create an autcomplete.

I thougth using the Spservices.Autocomplete so that i can work in front of the sharepint list.
But i can"t make it work !!

I am using Jquery 1.8.3.min.js
and using jquery.SPServices-0.7.2.min.js

here is my code :

$(document).ready(function() {
    $().SPServices.SPAutocomplete({
    WebURL: "",
    sourceList: "{7EF4DBBB-9F88-4AF8-B07A-A68A351C95E3}",
    sourceColumn: "Title",
    columnName: "Title",
    CAMLQuery: "<Contains><FieldRef Name='Title' /><Value Type='Text'></Value></Contains>",
    CAMLQueryOptions: "<QueryOptions></QueryOptions>",
    filterType: "Contains",
    numChars: 0,
    ignoreCase: true,
    highlightClass: "ms-bold",
    uniqueVals: false,
    slideDownSpeed: "fast",
    processingIndicator: "<img src='_layouts/images/REFRESH.GIF'/>", // NOTE: This option has been deprecated as of v0.6.0
    debug: false
        });

});

I have 2 questions :

1.Can i use the spservices in a custom .net usercontrol ?
2.If i have an textbox dosent have to contain any event - who is fireng the event ?

Thanx

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>