Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function startSuccessfullGetTest() {
var output = document.getElementById('output');
if (!output) {
return;
}
function log(text) {
if (output && typeof output.innerHTML !== 'undefined') {
output.innerHTML = text;
} else {
document.write(text);
}
}
try {
if (tddjs.ajax && tddjs.ajax.get) {
var id = new Date().getTime();
tddjs.ajax.get('fragment.html?id=' + id, {
'success': function(xhr) {
log(xhr.responseText);
}
});
} else {
log('Browser does not support tddjs.ajax.get');
}
} catch (x) {
log('An exception occured: ' + x.message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.