Yes, the FormSubmit() does some validation stuff with the entered data. I can't change anything on the page since i'm not maintaining it. Just tried it with document.getElemenetsByTagName('form')[0].submit() that didn't work, then i fixed the typo (lesson1: always check what you copy/paste :D ) But it returns the following error to me:
TypeError arguments: Array message: "Property 'submit' of object #<an HTMLFormElement> is not a function" stack: "TypeError: Property 'submit' of object #<an HTMLFormElement> is not a function at chrome-extensi…" type: "property_not_function" Isn't there any method to make the call to "FormSubmit()" on the page to submit the form data ? On Jan 15, 1:04 am, Adam Shannon <a...@ashannon.us> wrote: > I don't know what FormSubmit() is doing, but I will guess validation. > Have you tried document.getElemenetsByTagName('form')[0].submit(), or > assigning an id to the form and then grabbing that? > (document.getElementById('the-form').submit()) > > > > > > On Thu, Jan 14, 2010 at 15:52, CbaZ <cba...@gmail.com> wrote: > > 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 > > athttp://groups.google.com/group/chromium-extensions?hl=en. > > -- > Adam Shannon > Web Developer > http://ashannon.us
-- 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.