blizeH
10-10-2008, 02:36 PM
Hi,
I've currently got a form setup like so...
<form method="POST" action="/hr/index.php?div=24&admin=add" name="hr" enctype="multipart/form-data">
...
<input type="submit" name="submit" value="Save Changes" />
</form>
I've got some Javascript assigned to a span, with this code:
onclick="document.hr.submit();"
Yet for some reason it's not working, and throws up errors:
IE7: "Object doesn't support this property or method"
FF3: "document.hr.submit is not a function" (Firebug)
Any idea what I'm doing wrong please? I'm really a bit confused by this :/
I've currently got a form setup like so...
<form method="POST" action="/hr/index.php?div=24&admin=add" name="hr" enctype="multipart/form-data">
...
<input type="submit" name="submit" value="Save Changes" />
</form>
I've got some Javascript assigned to a span, with this code:
onclick="document.hr.submit();"
Yet for some reason it's not working, and throws up errors:
IE7: "Object doesn't support this property or method"
FF3: "document.hr.submit is not a function" (Firebug)
Any idea what I'm doing wrong please? I'm really a bit confused by this :/