Jump to content

Michel_Stucky

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Michel_Stucky

  1. Hello, I'm a new in Javascript and I don't understand why in de code snippet below

    1) serial = $(this).find('SERIALNUMBER').text().toUpperCase(); 

    retruns the actual serianumber from the loaded XML file and why

    2) a = $(this).find(param5).text().toUpperCase();

    doesn't, knowing that param5 is equal to 'SERIALNUMBER'

    Thanks for clearing my mind

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    code snippet

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

       $.ajax({
            type: "GET",
            url: param3,
            dataType: "xml",
            success: function(xml) {
                $(xml).find(param4).each(function(){
                    var searchString="";
                    var a = [];
                    for (i = 0; i < param6; i++) {
                        a = $(this).find(param5).text().toUpperCase();
                        serial = $(this).find('SERIALNUMBER').text().toUpperCase()
    ;
                 
                    }

×
×
  • Create New...