summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortailor <chowells@janrain.com>2008-05-27 23:51:06 +0000
committertailor <chowells@janrain.com>2008-05-27 23:51:06 +0000
commitd2a5a0dab3c426f0d4b3feff3607bea9c510498b (patch)
treee7f92049835b392a48f16a0536eda7fb12113414
parent55332a95e2b02316dc2fc1cae2149afeabf3fc8e (diff)
downloadphp-openid-d2a5a0dab3c426f0d4b3feff3607bea9c510498b.zip
php-openid-d2a5a0dab3c426f0d4b3feff3607bea9c510498b.tar.gz
php-openid-d2a5a0dab3c426f0d4b3feff3607bea9c510498b.tar.bz2
[project @ have auto-submitting html code hide the continue button]
-rw-r--r--Auth/OpenID.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/Auth/OpenID.php b/Auth/OpenID.php
index b12a152..0eb7b3b 100644
--- a/Auth/OpenID.php
+++ b/Auth/OpenID.php
@@ -558,11 +558,20 @@ class Auth_OpenID {
error_log($message);
}
- function autoSubmitHTML($form)
+ function autoSubmitHTML($form, $title="OpenId transaction in progress")
{
return("<html>".
+ "<head><title>".
+ $title .
+ "</title></head>".
"<body onload='document.forms[0].submit();'>".
$form .
+ "<script>".
+ "var elements = document.forms[0].elements;".
+ "for (var i = 0; i < elements.length; i++) {".
+ " elements[i].style.display = \"none\";".
+ "}".
+ "</script>".
"</body>".
"</html>");
}