Hi,
I work with visual studio 05 + ajax but WITHOUT ajax toolkit!
I have a pageMetod who call a store procedure (select top (5) .. from table where name = @param) with a parameter and return an arrayList.
On my javascript, i well receive the arrayList.
Here is it my OnSucceeded method who receive my arraylist
//Succeedfunction OnSucceeded(result){
var data = result;var nbre = result.length;var chaine ='';
if(nbre != 0)
{
chaine = '<h2>- Result :' + nbre + ' -</h2>';
for (i = 0; i < data.length; i++)
{
chaine = chaine + data[i] +
"<br/>";
}
}
Well, now i'd like to put a onclick for all return value and when i click on the row i want to display the value in a alert but i don't know how to do this !?
How i can add a onclick on a return value ?
Thanks
Christophe