Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function populateTargetFromUrl(c, b) {
- var a;
- try {
- a = new XMLHttpRequest()
- } catch (d) {
- try {
- a = new ActiveXObject("Msxml2.XMLHTTP")
- } catch (d) {
- try {
- a = new ActiveXObject("Microsoft.XMLHTTP")
- } catch (d) {
- return false
- }
- }
- }
- try {
- a.onreadystatechange = function () {
- if (a.readyState == 4) {
- if (a.status == 200) {
- document.getElementById(b).innerHTML = a.responseText
- }
- }
- };
- a.open("GET", c, true);
- a.send(null)
- } catch (d) {
- return false
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment