And if you type the same line in the inspector (on the same page) - does it work?
☆PhistucK On Fri, Jan 15, 2010 at 13:34, CbaZ <cba...@gmail.com> wrote: > Yes it's running on document_idle > > but still get the > > 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" > > error when trying to .submit() the form > > On Jan 15, 12:21 pm, PhistucK <phist...@gmail.com> wrote: > > I suppose you run it on "document_idle", right? > > If not, try that. > > > > ☆PhistucK > > > > > > > > On Fri, Jan 15, 2010 at 13:14, CbaZ <cba...@gmail.com> wrote: > > > In the manifest.json i match on the specific site i want to autofill. > > > Then when that url is matched i call fillLogin.js > > > > > The javascript then finds all the parts that need to be filled in, and > > > does so (works) > > > > > I then try to submit this form but in normal forms with an ID or a > > > Name assigned it's no problem. This form however has neither of those > > > and i can't find a way to submit it. > > > > > Besides this there is also an options page and a background page. So > > > the user can enter the credentials they want to use. > > > > > On Jan 15, 12:03 pm, PhistucK <phist...@gmail.com> wrote: > > > > Where are you doing this? I mean, you are calling > > > > "document.forms[0].submit()" (or similar) in the content script, > right? > > > > Because you cannot touch a page with your popup or background page. > Well, > > > > with anything other than a content script. > > > > > > ☆PhistucK > > > > > > On Fri, Jan 15, 2010 at 12:54, CbaZ <cba...@gmail.com> wrote: > > > > > 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<chromium-extensions%2bunsubscr...@googlegroups.com><chromium-extensions%2Bunsu > bscr...@googlegroups.com><chromium-extensions%2Bunsu > > > bscr...@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<chromium-extensions%2bunsubscr...@googlegroups.com><chromium-extensions%2Bunsu > bscr...@googlegroups.com><chromium-extensions%2Bunsu > > > bscr...@googlegroups.com> > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/chromium-extensions?hl=en. > > > > > -- > > > 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<chromium-extensions%2bunsubscr...@googlegroups.com><chromium-extensions%2Bunsu > bscr...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/chromium-extensions?hl=en. > > -- > 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<chromium-extensions%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/chromium-extensions?hl=en. > > > >--
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.