look, I ran your javascript code using an AjaxMethod developed by me
wich return value is a DataSet and it works perfect, I only had to make
one change, I wrote document.form1.ddlFI instead of
document.Form1.ddlFI, as you can see I just changed the F in form1, so
it means that your client code is ok, so, you must check your server
side method, to do that just debug your application and place a
breakpoint on your server side method and check if you are really
returning a non null dataset.
To loop through a DataSet with javascript you may proceed like this:
function showRoutings_CallBack(response)
{
var ds = response.value; // basing on your code, on ds should be the
dataset
var result = [];
for (var i = 0; i < ds.Tables[0].Columns.length; i++)
{
     result[result.length] = "<option>" +
ds.Tables[0].Rows[i].FI_ROUTING + "</option>";
     // or ds.Tables[0].Rows[i][ds.Tables[0].Columns[0].Name];
generalizing
}
document.getElementById("ddlHolder").innerHTML = "<select>" +
result.join("") + "</select>";
}
ddlHolder is some container where you should place your second
dropdownlist. this is a simple solution, you may get this as
complicated as you wish, but at least it give you an idea on how to
loop through a dataset.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/

The open source project is now located at 
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---

Reply via email to