PHP Classes

File: examples/AjaxTest/testAjax.php

Recommend this page to a friend!
  Classes of Yaroslav Shapoval  >  Cyrillic to Latin  >  examples/AjaxTest/testAjax.php  >  Download  
File: examples/AjaxTest/testAjax.php
Role: Example script
Content type: text/plain
Description: Ajax test script
Class: Cyrillic to Latin
Translite text between cyrillic and latin
Author: By
Last change: Important usage demo added. Example shows usage of class with Ajax technology.
Date: 16 years ago
Size: 906 bytes


Class file image Download

<script language="JavaScript" src="lib/Js.js"></script>
    function doLoad(force) {
        var query = '' + document.getElementById('query').value;
        var req = new Subsys_JsHttpRequest_Js();
        req.onreadystatechange = function() {
            if (req.readyState == 4) {
                if (req.responseJS) {


        req.caching = true;'POST', 'lat2cyr.php?input=abc', true);
        req.send({ q: query, test:303 });

    var timeout = null;
    function doLoadUp() {
        if (timeout) clearTimeout(timeout);
        timeout = setTimeout(doLoad, 1000);

<form onsubmit="return false">
Type phrase using latin symbols<br />
<textarea type="text" id="query" onkeyup="doLoadUp()"></textarea>

<div id="result"></div>


For more information send a message to info at phpclasses dot org.