set database value to java script var on Js file
-
i have created one java servlet code from which i get 3 field from database table and i want to show this field on my js(java script) page in html tag like Name= and i want to show first name field from datbase infront of lable Name..
OK, now we know what you want. What's your question?
-
OK, now we know what you want. What's your question?
i have created a one java script file in that i have written a html code in boilerplate variable and ajax to call servlet . in java servlet i have written a code for select query as to select data from database table and store tihs value in resultset i want to store this resultset value in to javascript variable. how i store it ??????? eg:-suppose i have table with firstname and Lastname fields and if i retrive this column in java servlet then i want this two column value to save/store in a java script variable on java script file like var fname=???? var lname=????