tags:

views:

17

answers:

1

Hi all,

I've got a wcf service that returns me an array of items. I've got a javascript method that recieves the items and handles them. I want to send the javascript function another parameter from the client side, an id of an object on the page.

Something like this:

function WriteSonCategories(selectedCategoryId, callback) {
              var d = new Date();
              MyServices.GetSonCategories(selectedCategoryId,
                                         d.getTime().toString(), callback );
          }

I'd like the callback to be able to recieves a certain id, not just the array of objects returned from the service. How can this be achived?

Thank you!

A: 

Maybe Something like this.

Junior Mayhé