Boris Zbarsky napisał(a):
Actually, this worksforme as well:

<html>
<table>
<form name="wyszukaj" action="http://www.uml.lodz.pl/indeksik.php3?menu2=11&zapytanie=11,\
45" method="post">
<tr><td><input size="10" name="szukaj" value="wybory">&nbsp;&nbsp;<input type="submit" \
value="Szukaj"></td></tr>
</form>
</table>
<script>
function foo() {
document.getElementsByTagName("input")[1].click();
}
</script>


<input type="button" onclick="foo()" value="Click here to call click()">
</html>

So does copying the form off the site...

Do you have a testcase actually showing the problem?


When I loaded your code (from above) into my browser, then saved DOM tree into .html, using
persist->SaveDocument(nsnull, file, nsnull, nsnull, 0, 0);


i got:

<html><head><base href="file:///C:/Documents%20and%20Settings/HellFire/Pulpit/test.html"></head>
<body><table>
<form name="wyszukaj" action="http://www.uml.lodz.pl/indeksik.php3?menu2=11&amp;zapytanie=11,45"; method="post"></form>
<tbody><tr><td><input size="10" name="szukaj" value="wybory"> <input \="" value="Szukaj" type="submit"></td></tr>


</tbody></table>
<script>
function foo() {
  document.getElementsByTagName("input")[1].click();
}
</script>

<input onclick="foo()" value="Click here to call click()" type="button">
</body></html>



As you can see <form> tag was closed just after opening... I think it can be reason for my forms problem.
When I loaded orginal code into DOM Inspector, the <form> and <tbody> tags was siblings, not childs ( <input> tags was under <tbody> ).


_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to