Hello !

I'm currently working on an extension that automatically fills in some
forms for me.
It's working mighty fine. and i'm amazed by how simple it is to create
chrome extenions ! (applauds chrome devs)

I can get the form filling in just fine. and i can submit most forms.
But now comes the tricky part...

How would i go and submit a form like this on a specific page i'm
visiting ?

<form method="post" action="" onsubmit="javascript:return FormSubmit
();">
        <input size="17" type="text" id="username" name="username"
tabindex="1" accesskey="g" />
        <input size="17" type="password" id="password" name="password"
maxlength="48" tabindex="2" accesskey="w" autocomplete="off" />
        <input type="hidden" name="lt" value="###" />
        <input type="hidden" name="_eventId" value="submit" />
        <input type="hidden" name="credentialsType" value="ldap" />
</form>

I'm not sure how to aproach this one. I've tried

document.forms[0].submit();    // since it's the only form on the page

But this will not work, returns the error "Property 'submit' of object
#<an HTMLFormElement> is not a function"

I'm kinda lost here now.
Can someone point me in the right direction with this?
Feel free to ask for more information etc.

Thanks in advance !
-- 
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to