Textbox auto complete like google search using c#
I need textbox auto complete search like google search using c# without using webservice method. Anyone reply me with example... Anyone help me...
Answers (2)
1
chrome.runtime.sendMessage have limited size to parameter. os i have used URL.createObjectURL to transfer data from content to background js.
Content.js
var filedata = JSON.stringify({ data: data, fileName: fileName });
var save = new File([filedata], "filename.json", { type: "text/json;charset=utf-8" });
var postdata = window.URL.createObjectURL(save);
Background.js
var xhr = new XMLHttpRequest();
xhr.open('GET', postdata, true);
xhr.responseType = "text";
xhr.onload = function (e) {
if (this.status == 200) {
var myBlob = this.response;
// myBlob is now the blob that the object URL pointed to.
}
};
xhr.send();