PageSourceSearch

https://www.urlaubstage.de/jscript/ajax.js

js urlaubstage.de collected 2026-10-07 02:41:05 UTC 3,750 bytes, 141 lines download raw bytes

1
2function ajaxObject(url, callbackFunction, container) {
3if (url == undefined) return;
4var that = this;
5this.updating = false;
6this.abort = function() {
7if (that.updating) {
8that.updating = false;
9that.AJAX.abort();
10that.AJAX = null;
11}
12};
13this.update = function(passData, postMethod) {
14if (that.updating) return false;
15that.AJAX = null;
16if (window.XMLHttpRequest) {
17that.AJAX = new XMLHttpRequest();
18} else {
19that.AJAX = new ActiveXObject("Microsoft.XMLHTTP");
20}
21if (that.AJAX == null)
22return false;
23else {
24that.AJAX.onreadystatechange = function() {
25if (that.AJAX.readyState == 4) {
26that.updating = false;
27that.callback(that.AJAX.responseText, that.AJAX.status, that.AJAX.responseXML, container); // pass
28that.AJAX = null;
29}
30};
31that.updating = new Date();
32if (/post/i.test(postMethod)) {
33var uri = urlCall + '?' + that.updating.getTime();
34that.AJAX.open("POST", uri, true);
35that.AJAX.setRequestHeader("Content-type", "text/xml");
36that.AJAX.setRequestHeader("Content-Length", passData.length);
37that.AJAX.send(passData);
38} else {
39var uri;
40if (passData && urlCall.indexOf("?") > 0)
41uri = urlCall + '&' + passData; // uri =
42else if (passData)
43uri = urlCall + '?' + passData; // uri =
44else
45uri = urlCall;
46that.AJAX.open("GET", uri, true);
47that.AJAX.send(null);
48}
49return true;
50}
51};
52var urlCall = url;
53this.callback = callbackFunction || function() {
54};
55}
56function processData(responseText, responseStatus, responseXML, container) {
57if (responseStatus == 200) {
58if (container && document.getElementById(container)) {
59document.getElementById(container).innerHTML = responseText;
60}
61} else {
62}
63}
64function processTabberData(responseText, responseStatus, responseXML, container) {
65if (responseStatus == 200) {
66container.innerHTML = responseText;
67tabberAutomatic();
68} else {
69}
70}
71function processTabData(responseText, responseStatus, responseXML, container) {
72if (responseStatus == 200) {
73container.innerHTML = responseText;
74} else {
75}
76}
77function getInnerText(node) {
78if (node == null) return '';
79if (typeof node.textContent != 'undefined')
80return node.textContent;
81else if (typeof node.innerText != 'undefined')
82return node.innerText;
83else if (typeof node.text != 'undefined')
84return node.text;
85else {
86switch (node.nodeType) {
87case 3:
88case 4:
89return node.nodeValue;
90break;
91case 1:
92case 11:
93var innerText = '';
94for (var i = 0; i < node.childNodes.length; i++) {
95innerText += getInnerText(node.childNodes[i]);
96}
97return innerText;
98break;
99default:
100return '';
101}
102}
103}
104function loadAsyncScript(src, callback) {
105var script = document.createElement("script");
106script.type = "text/javascript";
107if (callback) script.onload = callback;
108document.getElementsByTagName("head")[0].appendChild(script);
109script.src = src;
110}
111function readcookie(id) {
112var cookiesettime;
113var cookieval;
114var ca = document.cookie.split(';');
115for (var i = 0; i < ca.length; i++) {
116var c = ca[i];
117while (c.charAt(0) == ' ')
118c = c.substring(1, c.length);
119if (c.indexOf(id) >= 0) {
120var completecookieval = c.substring(c.indexOf('=') + 1, c.length);
121if (completecookieval.indexOf(',')) {
122var cookiesettimenew = completecookieval.substring(0, completecookieval.indexOf(','));
123if (!cookiesettime || cookiesettimenew - cookiesettime > 0) {
124var cookiesettime = cookiesettimenew;
125var cookieval = completecookieval.substring(completecookieval.indexOf(',') + 1,
126completecookieval.length);
127}
128} else if (!cookieval) cookieval = completecookieval;
129}
130}
131return cookieval;
132}
133function param(name) {
134return (location.search.split(name + '=')[1] || '').split('&')[0];
135}
136function loadValues() {
137if (param('q_persons') != null) $('#persons').val(param('q_persons'));
138if (param('q_timemin') != null) $('#timemin').val(param('q_timemin'));
139if (param('q_timemax') != null) $('#timemax').val(param('q_timemax'));
140}
141/*6029->3736*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.