From d90639068393b9d78aa91eaed0a686afd4f7956f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Tue, 30 Sep 2008 14:12:09 +0000 Subject: [PATCH] Improved iframe AJAX SLO git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@906 44740490-163a-0410-bde0-09ae8108e29a --- templates/default/logout-iframe.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/templates/default/logout-iframe.php b/templates/default/logout-iframe.php index 5abe09d3b..2d742f96a 100644 --- a/templates/default/logout-iframe.php +++ b/templates/default/logout-iframe.php @@ -20,23 +20,10 @@ function showdiv(id) { } } } - -function init_updateslostatus() { - // use pre-formatted output for this multiplication table - var j; // loop variables - for (j=1; j<=10; j++) { - setTimeout(\'xajax_updateslostatus()\',j*1000) - } -} </script>'; - - $this->data['onLoad'] = ' init_updateslostatus();'; $this->includeAtTemplateBase('includes/header.php'); -# $this->includeLanguageFile('consent.php'); -# $this->includeInlineTranslation('spname', $this->data['sp_name']); -# $this->includeInlineTranslation('IDPNAME', $this->data['idp_name']); ?> @@ -67,7 +54,7 @@ function init_updateslostatus() { <?php foreach ($this->data['sparray'] AS $sp) { - echo '<iframe class="hiddeniframe" style="border: 1px solid #888; width: 80%; height: 100px" src="' . $sp['url'] . '" ></iframe>' . "\n"; + echo '<iframe class="hiddeniframe" onload="xajax_updateslostatus()" style="border: 1px solid #888; width: 80%; height: 100px" src="' . $sp['url'] . '" ></iframe>' . "\n"; } foreach ($this->data['sparray'] AS $spentityid => $sp) { -- GitLab