* examples/uhttpd2/uhttpd2.hbp
* Converted uhttpd2 core to a lib.
+ examples/uhttpd2/uhttpd2.hbc
+ Added .hbc file.
* examples/uhttpd2/umain.prg
* examples/uhttpd2/uwidgets.prg
* examples/uhttpd2/uhbext.prg
* examples/uhttpd2/app.prg
* Formatted (with hbformat for the most part)
* Minor cleanups.
! Fixed all -w3 warnings.
+ examples/uhttpd2/tests
+ examples/uhttpd2/tests/hbmk.hbm
- examples/uhttpd2/carts.dbf
- examples/uhttpd2/items.dbf
- examples/uhttpd2/users.dbf
+ examples/uhttpd2/tests/carts.dbf
+ examples/uhttpd2/tests/items.dbf
+ examples/uhttpd2/tests/users.dbf
- examples/uhttpd2/files
+ examples/uhttpd2/tests/files
- examples/uhttpd2/app.prg
+ examples/uhttpd2/tests/webapp.prg
+ Added tests dir and moved app specific files there.
40 lines
707 B
JavaScript
40 lines
707 B
JavaScript
|
|
function getXmlHttp()
|
|
{
|
|
var obj=null;
|
|
|
|
if( window.XMLHttpRequest )
|
|
{
|
|
obj = new XMLHttpRequest();
|
|
}
|
|
else if( window.ActiveXObject )
|
|
{
|
|
obj = new ActiveXObject("Microsoft.XMLHTTP");
|
|
}
|
|
if ( obj == null )
|
|
{
|
|
alert("Browser does not support HTTP Request");
|
|
}
|
|
return obj;
|
|
}
|
|
|
|
function ubrcall(id,param)
|
|
{
|
|
var tbl = document.getElementById(id);
|
|
var r = getXmlHttp();
|
|
r.open("GET", "?ajax=" + id + "&" + param, true);
|
|
r.onreadystatechange=function ()
|
|
{
|
|
if( r.readyState == 4 )
|
|
{
|
|
if( r.status == 200 )
|
|
{
|
|
tbl.innerHTML = r.responseText;
|
|
}
|
|
r = null;
|
|
}
|
|
}
|
|
r.send(null);
|
|
}
|
|
|