Click here to Skip to main content
15,512,244 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Browse for folder Pin
Not Active22-Apr-11 9:58
mentorNot Active22-Apr-11 9:58 
Questionajaxupload [modified] Pin
dbongs21-Apr-11 1:23
dbongs21-Apr-11 1:23 
AnswerRe: ajaxupload Pin
Not Active21-Apr-11 3:12
mentorNot Active21-Apr-11 3:12 
Questionjquery grid paging and textbox event Pin
fififlowertot18-Apr-11 0:03
fififlowertot18-Apr-11 0:03 
GeneralRe: jquery grid paging and textbox event Pin
Sunasara Imdadhusen5-May-11 4:58
professionalSunasara Imdadhusen5-May-11 4:58 
QuestionJquery Autocomplete Pin
fififlowertot13-Apr-11 6:51
fififlowertot13-Apr-11 6:51 
AnswerRe: Jquery Autocomplete Pin
Not Active13-Apr-11 7:12
mentorNot Active13-Apr-11 7:12 
GeneralRe: Jquery Autocomplete Pin
fififlowertot14-Apr-11 1:26
fififlowertot14-Apr-11 1:26 
I 've tried the following:
<script type ="text/javascript">
	    $(document).ready(function() {
	        	        var a = $("input#names").val();
	     
	        $("#tags").autocomplete({
	            url: "CodeFile1.cs\SearchNames",
	            data: $("input#names").val()
	        });
	        	    });
	</script>


<div class="ui-widget">
	<label for="names">Names: </label>
	<input id="names" />
</div>



and my codefile is :
public string[] SearchNames(string Name)
   {
       string [] Names = null;
       int i;
       i = 0;
       ServiceClient serviceClient = new ServiceClient();
       SearchResponse searchResponse = new SearchResponse();
       principalSearchResponse = bondInformationServiceClient.SearchPrincipals(principalSearchRequest);

                  foreach (Name name in SearchResponse.NameList)
           {
               Names [i] = name .nameField.ToString().Trim();
               i++;
           }
       }


       return Names ;
   }


gives me an runtime error: object expected.
GeneralRe: Jquery Autocomplete Pin
Gerben Jongerius14-Apr-11 2:14
Gerben Jongerius14-Apr-11 2:14 
GeneralRe: Jquery Autocomplete Pin
fififlowertot14-Apr-11 2:37
fififlowertot14-Apr-11 2:37 
Questionselect with same data/options Pin
Morgs Morgan7-Apr-11 23:35
Morgs Morgan7-Apr-11 23:35 
AnswerRe: select with same data/options Pin
Luc Pattyn8-Apr-11 2:10
sitebuilderLuc Pattyn8-Apr-11 2:10 
GeneralRe: select with same data/options Pin
Morgs Morgan8-Apr-11 4:19
Morgs Morgan8-Apr-11 4:19 
AnswerRe: select with same data/options Pin
Luc Pattyn8-Apr-11 4:31
sitebuilderLuc Pattyn8-Apr-11 4:31 
GeneralRe: select with same data/options Pin
Morgs Morgan8-Apr-11 6:26
Morgs Morgan8-Apr-11 6:26 
AnswerRe: select with same data/options Pin
sydongda10-Apr-11 23:56
sydongda10-Apr-11 23:56 
GeneralRe: select with same data/options Pin
Luc Pattyn11-Apr-11 0:01
sitebuilderLuc Pattyn11-Apr-11 0:01 
GeneralRe: select with same data/options Pin
sydongda11-Apr-11 20:48
sydongda11-Apr-11 20:48 
QuestionWhich should i include in my page??(About JQuery UI) Pin
zouleisheng6-Apr-11 22:02
zouleisheng6-Apr-11 22:02 
AnswerRe: Which should i include in my page??(About JQuery UI) Pin
Not Active7-Apr-11 3:28
mentorNot Active7-Apr-11 3:28 
AnswerRe: Which should i include in my page??(About JQuery UI) Pin
Monjurul Habib12-Apr-11 13:31
professionalMonjurul Habib12-Apr-11 13:31 
QuestionVertical slide show Pin
venu65630-Mar-11 21:49
venu65630-Mar-11 21:49 
AnswerRe: Vertical slide show Pin
preethipriya52330-Mar-11 22:26
preethipriya52330-Mar-11 22:26 
AnswerRe: Vertical slide show Pin
Morgs Morgan7-Apr-11 23:40
Morgs Morgan7-Apr-11 23:40 
AnswerRe: Vertical slide show Pin
Prasanta_Prince17-Apr-11 9:09
Prasanta_Prince17-Apr-11 9:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.