<html>
<head>
<script src="jquery-1.6.4.min.js"></script>
</head>
<body>
<div id="result"><div>
<button id="button">Button</button>
<script>
$(document).ready(function(){
$.ajax({
type: "GET",
url: "url removed",
dataType: "xml",
success: function(xml) {
$(xml).find('service').each(function(){
var email = $(this).attr('email');
$('result').append(email);
});
});
}
});
});
</script>
</body>
</html>
If you go to the url itself this is what you'd get
<?xml version="1.0" encoding="UTF-8" ?> - <service> <email>Jeffrey.Yao@ssa.gov</email> </service>
This post has been edited by stayscrisp: 03 November 2011 - 10:03 AM
Reason for edit:: Removed confidential pin!

New Topic/Question
Reply


MultiQuote





|