PHP Classes

File: docs/metrics/js/functions.js

Recommend this page to a friend!
  Classes of Francesco Danti   ATK4 i18next PHP   docs/metrics/js/functions.js   Download  
File: docs/metrics/js/functions.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: ATK4 i18next PHP
Translate application texts like il8next-PHP
Author: By
Last change:
Date: 4 years ago
Size: 597 bytes
 

Contents

Class file image Download
function loadJSON(filename, callback) { var xobj = new XMLHttpRequest(); xobj.overrideMimeType("application/json"); xobj.open('GET', filename, true); xobj.onreadystatechange = function () { if (xobj.readyState == 4 && xobj.status == "200") { // Required use of an anonymous callback as .open will NOT return a value but simply returns undefined in asynchronous mode callback(xobj.responseText); } }; xobj.send(null); } function equalsHeightOf(node1, node2) { var w1 = node1.style.height; node2.style.height = w1 + 'px'; }