Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function includehtml(id, url) {
- var req = false;
- try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {
- try { req = new XMLHttpRequest(); } catch (e) { req = false; }
- }
- }
- if (req) {
- req.open('GET', url, false);
- req.send(null);
- $(id).empty();
- $(id).html(req.responseText);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement