I have a textbox with button. how can i retrieve value from Web SQL database in JS file by using onclick function and display in textbox?
Asked
Active
Viewed 474 times
0
-
I only give you hint to use web services and ajax for this purpose,Now you make effort yourself. – SMK Jul 20 '12 at 05:57
-
You can also check the jquery get or ajax function for getting data in js function. – Yograj Gupta Jul 20 '12 at 05:59
1 Answers
0
You can use Ajax
for this:
XmlHttp.onreadystatechange = HandleUserNameResult;
XmlHttp.open("GET", requestUrl, true);
XmlHttp.send(null);
function HandleUserNameResult() {
var responseText = XmlHttp.responseText; //Here you will get the result;
}

user1530755
- 81
- 1
- 1
- 7