summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2008-11-26 10:07:16 +0000
committerThomas BrĂ¼derli2008-11-26 10:07:16 +0000
commit643e9f34522a7c07d9f41c0f4f28f7169dad31c5 (patch)
tree0ed789c656280ea2da227c84c2afb4125f5833cd /itjs.class
parentbb671acbe075d93844c6d8ffeef3bcd94019f805 (diff)
downloaditools-643e9f34522a7c07d9f41c0f4f28f7169dad31c5.tar.gz
itools-643e9f34522a7c07d9f41c0f4f28f7169dad31c5.tar.bz2
itools-643e9f34522a7c07d9f41c0f4f28f7169dad31c5.zip
Add new it_http class to itjs includes
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class5
1 files changed, 3 insertions, 2 deletions
diff --git a/itjs.class b/itjs.class
index 40d65b8..b89e37a 100644
--- a/itjs.class
+++ b/itjs.class
@@ -46,7 +46,8 @@ function serialize($values, $envelope = false)
if (($envelope || isset($values['eof'])) && ($callback = it::replace(array('[^\w.]' => ""), $_REQUEST['itjs_call'])))
{
$target = $_REQUEST['itjs_iframe'] ? "parent" : "window";
- $header = "$target.it_loader && $target.$callback && $target.$callback.dataReady(";
+ list($itclass) = explode('.', $callback);
+ $header = "$target.$itclass && $target.$callback && $target.$callback.dataReady(";
$footer = "," . intval($_REQUEST['itjs_callid']) . ");";
if ($_REQUEST['itjs_iframe']) # iframe-based loading required by Opera 7
@@ -112,7 +113,7 @@ function filenames($filelist)
$itjs = "/www/server/phpinclude/itools/itjs";
$searchlib = "/www/lib.search.ch/doc";
$special = array(
- "itools" => "$itjs/it.js,$itjs/loader.js,$itjs/state.js,$itjs/timer.js",
+ "itools" => "$itjs/it.js,$itjs/http.js,$itjs/loader.js,$itjs/state.js,$itjs/timer.js",
"boot.js" => "$itjs/boot.js",
"state.html" => "$itjs/state.html",
"error.gif" => "$itjs/error.gif",