2009/8/7 Decebal <cldwester...@gmail.com>:
> I process it with the folowing code:
>    $.post(cgiURL,
>      {command: "getForm", form: cgiForm},
>      function(xml){
>        $(xml).find('field').each(function() {
>          if( $(this).attr('type') == 'input' ) {
>
> Is there a better way to do this?
> There a severall 'problems'.
> There should be exactly one form.
> Only the field records that are immediate descendants of form should
> be used. When there comes another type which also has children with
> type field, this code will process those also.

I now use:
    $(xml).find('doc > value > form > field').each(function() {
So the last problem is solved.



-- 
Cecil Westerhof

Reply via email to