Skip to content
Snippets Groups Projects
Commit b18458b1 authored by Olav Morken's avatar Olav Morken
Browse files

Set focus on the link/button which should be activated to go to the next page in debug mode.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@212 44740490-163a-0410-bde0-09ae8108e29a
parent 15b19409
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,10 @@ ...@@ -15,7 +15,10 @@
<pre style="overflow: scroll; border: 1px solid #eee"><?php echo $data['message']; ?></pre> <pre style="overflow: scroll; border: 1px solid #eee"><?php echo $data['message']; ?></pre>
<p>[ <a href="<?php echo htmlentities($data['url']); ?>">send SAML message</a> ]</p> <p>[ <a id="sendlink" href="<?php echo htmlentities($data['url']); ?>">send SAML message</a> ]</p>
<script type="text/javascript">
document.getElementById('sendlink').focus();
</script>
<h2>Debug mode</h2> <h2>Debug mode</h2>
......
...@@ -16,9 +16,13 @@ ...@@ -16,9 +16,13 @@
<form method="post" action="<?php echo htmlspecialchars($data['destination']); ?>"> <form method="post" action="<?php echo htmlspecialchars($data['destination']); ?>">
<input type="hidden" name="SAMLResponse" value="<?php echo htmlspecialchars($data['response']); ?>" /> <input type="hidden" name="SAMLResponse" value="<?php echo htmlspecialchars($data['response']); ?>" />
<input type="hidden" name="<?php echo htmlspecialchars($data['RelayStateName']); ?>" value="<?php echo htmlspecialchars($data['RelayState']); ?>"> <input type="hidden" name="<?php echo htmlspecialchars($data['RelayStateName']); ?>" value="<?php echo htmlspecialchars($data['RelayState']); ?>">
<input type="submit" value="Submit the response to the service" /> <input type="submit" value="Submit the response to the service" id="sendbutton" />
</form> </form>
<script type="text/javascript">
document.getElementById('sendbutton').focus();
</script>
<h2>Debug mode</h2> <h2>Debug mode</h2>
<p>As you are in debug mode you are lucky to see the content of the response you are sending:</p> <p>As you are in debug mode you are lucky to see the content of the response you are sending:</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment