Click to See Complete Forum and Search --> : Accessing XML data from within JavaScript


Carl.Suppo
08-20-2004, 11:32 AM
In HTML I can access XML data by wrapping an XML tage name in curly brackets.

Example 1:
onClick="getCustomer({custKey})"

Example 2:
<input type="hidden" name="custKey" value="{custKey}"/>

BUT, I cannot seem to do this from with a JavaScript tags or within a JavaScript function.

Example 1:
<html><body>
<script>showCustomer({custKey});</script>
</body></html>

Example 2:

function showCustomer() {
val custKey = {custKey};
}

Do you know of any way to access XML data from within one or both of the last two examples?