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

From DataFlex Wiki
Jump to navigationJump to search
m
add syntax highlighting
m (Reverted edits by AKennard (Talk) to last version by Pinkynarf)
m (add syntax highlighting)
(One intermediate revision by the same user 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 Programming]]
[[Category:AJAX]]
[[Category:AJAX]]

Navigation menu