Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Meet and Greet (http://www.go4expert.com/community/meet-and-greet/)
-   -   how to display data which is get from data base in html bage using ajax (http://www.go4expert.com/community/display-data-data-base-html-bage-using-t22633/)

palmyra 5Jul2010 01:49

how to display data which is get from data base in html bage using ajax
 
I am working now on Graduation Project with Php and ajax
I have a problem with php
the problem is
I have a form which has input fields the user can input values in these fields to apply some operation on them
and he can save the form values in the database and he can load values from database
i did the save operation by use java script and save values in database
but when i worked with load operation i could get values from database to the java script but i didn't know how to fill this values in the form by ajax because i don't want to refresh the page

this is the javascript which return the data
the data is array of values that i want to fill it in the form
function load_parameters()
{

var val1 = document.getElementById("profile_name_select").val ue;
$.post("?rt=saveload/load",{profile_name:val1} ,
function(data)
{
document.getElementById("test").innerHTML=data;

alert(data);
});
}


All times are GMT +5.5. The time now is 00:01.