From da11d93152ef0d6e562856029cb11b12f8b8b7d6 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Wed, 5 Sep 2007 16:00:35 +0000 Subject: Check for callback function first. Same effect as XMLHTTPRequest.abort() --- itjs.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'itjs.class') diff --git a/itjs.class b/itjs.class index f6da4cb..3e45973 100644 --- a/itjs.class +++ b/itjs.class @@ -38,7 +38,7 @@ 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("; + $header = "$target.it_loader && $target.$callback && $target.$callback.dataReady("; $footer = "," . intval($_REQUEST['itjs_callid']) . ");"; if ($_REQUEST['itjs_iframe']) # iframe-based loading required by Opera 7 -- cgit v1.2.3