AJAX - Return Arrays and Structs to your JavaScript with XML: Difference between revisions

m
Changed from Web Programming to Web Applications category
(New page: = Functionality = The VDF AJAX Library provides the functionality for developers to call published methods within a WBO and receive a return value (for Functions). This is done using a Re...)
 
m (Changed from Web Programming to Web Applications category)
 
(4 intermediate revisions by 3 users not shown)
Line 27: Line 27:
5) return the memory address. This will return the XML document to the JavaScript<br/>
5) return the memory address. This will return the XML document to the JavaScript<br/>


<source lang="dataflex">
  { Published = True  }
  { Published = True  }
  { Description = ""  }
  { Description = ""  }
Line 44: Line 45:
   Function_Return aXML
   Function_Return aXML
  End_Function  // NameChanges
  End_Function  // NameChanges
</source>


= Parsing the XML in JavaScript =
= Parsing the XML in JavaScript =
Line 52: Line 54:
4) get the values from the XML
4) get the values from the XML


<source lang="js">
  function onNameCasing(oRMI) {
  function onNameCasing(oRMI) {
   // If no errors
   // If no errors
Line 80: Line 83:
   }
   }
  }
  }
</source>


[[Category:Web Programming]]
[[Category:Web Applications]]
[[Category:AJAX]]
[[Category:AJAX]]