Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
josefen
josefen's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Autocomplete value re-load problem
[0Replies]
25-Jan-2013 03:44 AM
Forum:
Using jQuery UI
Hello,
I have a problem about Autocomplete textbox.I'm using autocomplete textbox within update panel in asp.net.It has a big program after postback but I solved this problem. Hovewer I couldn't set selected values to autocomplete textbox.
Anyone can help me ?
$(document).ready(function () {
jQueryInit();
});
function pageLoad() {
window.Sys.WebForms.PageRequestManager.getInstance().add_endRequest(jQueryInit);
$(function () {
if (AutoCompleteObject != null && AutoCompleteObject != "undefined"
&& AutoCompleteObject.AutoComplete != null
&& AutoCompleteObject.AutoComplete != "undefined") {
var result = "";
for (var key in AutoCompleteObject.AutoComplete) {
var script = AutoCompleteObject.AutoComplete[key];
result += script.ID + ", ";
$('#user_id').append(script.ID + ' ,');
}
I should write this area but what ?
}
});
}
function jQueryInit() {
function split(val) {
return val.split(/,\s*/);
}
function extractLast(term) {
return split(term).pop();
}
$("#tags")
.bind("keydown", function (event) {
if (event.keyCode === $.ui.keyCode.TAB &&
$(this).data("autocomplete").menu.active) {
event.preventDefault();
}
})
.autocomplete({
minLength: 0,
source: function (request, response) {
$.ajax({
url: "UsersHandler.ashx",
dataType: "json",
data: { term: extractLast(request.term) },
success: function (data) {
response($.map(data, function (item) {
return { label: item.name, id: item.id };
}));
}
});
},
focus: function () {
return false;
},
select: function (event, ui) {
var terms = split(this.value);
terms.pop();
terms.push(ui.item.value);
terms.push("");
this.value = terms.join(", ");
$('#user_id').append(ui.item.id + ' ,');
AutoCompleteObject.AutoComplete.push({ "Name": ui.item.value, "ID": ui.item.id });
return false;
}
});
}
«Prev
Next »
Moderate user : josefen
Forum