Side navigation
Ticket #1414: 1414.html
File 1414.html, 0.8 KB (added by nathanhammond, August 20, 2008 04:16PM UTC)
Test Case
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>1414 Test Case</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
window.onload = function() {
if (window.location.search) {
alert('Submission worked.');
}
}
function trysubmitting() {
$('<input type="submit" style="display: none;"/>').appendTo('form').trigger('click');
}
</script>
</head>
<body>
<form action="?submitted" method="post">
<input name="submit" id="submit" type="text" />
<a href="#" onclick="this.parentNode.submit(); return false;">Normal Approach Fails</a>
</form>
<div>
<a href="#" onclick="trysubmitting(); return false;">Other Approach</a>
</div>
</body>
</html>
Download in other formats:
Original Format
File 1414.html, 0.8 KB (added by nathanhammond, August 20, 2008 04:16PM UTC)
Test Case
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>1414 Test Case</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
window.onload = function() {
if (window.location.search) {
alert('Submission worked.');
}
}
function trysubmitting() {
$('<input type="submit" style="display: none;"/>').appendTo('form').trigger('click');
}
</script>
</head>
<body>
<form action="?submitted" method="post">
<input name="submit" id="submit" type="text" />
<a href="#" onclick="this.parentNode.submit(); return false;">Normal Approach Fails</a>
</form>
<div>
<a href="#" onclick="trysubmitting(); return false;">Other Approach</a>
</div>
</body>
</html>