Well I copied the code of Google Calendar login for my GoCalendar extension and that was using POST to pass the login data ( GET would require a captcha ). So the POST method will not work from a form in the mole but if I write my own http post request in javascript then it works.
Another thinks that doesn't work is TabStop between edit field ( pressing TAB cause lost of focus on the editbox ) Daniele S. On Mon, Sep 21, 2009 at 7:14 PM, Erik Kay <erik...@chromium.org> wrote: > On Mon, Sep 21, 2009 at 10:07 AM, Daniele S. <oppifjel...@gmail.com> > wrote: > > I managed to get working javascript inside a mole, > > Was there a case where it wasn't working? > > > but I'm not able to use html forms into a mole. > > I resolved with an hack ( doing the post request myself with javascript > ), > > but I would like to just use a submit button. > > I assume you mean that you want to submit to an extension page? Did > you set method to "GET" on the form? I don't think "POST" will work. > > On the flip side, why bother with this? Handling the onclick on the > submit button and just doing your processing and layout inline with > DHTML will likely look much nicer (no flashing). > > Erik > > > > Daniele > > On Mon, Sep 21, 2009 at 5:35 PM, Erik Kay <erik...@chromium.org> wrote: > >> > >> Could you be a bit more specific about the problem you're running > >> into? Sample code would help as well. > >> > >> Erik > >> > >> > >> On Mon, Sep 21, 2009 at 4:16 AM, Daniele S. <oppifjel...@gmail.com> > wrote: > >> > How did you solve that problem? I'm not able to use javascript in a > >> > mole. > >> > Daniele > >> > > >> > On Wed, Aug 5, 2009 at 8:21 AM, Evan <cordell.e...@gmail.com> wrote: > >> >> > >> >> I seem to have solved my javascript problem. The question about > >> >> showing and hiding still stands, though. > >> >> > >> >> And apologies for a (partial) double post, it was not my intention. > >> >> > >> >> On Aug 5, 12:26 am, Evan <cordell.e...@gmail.com> wrote: > >> >> > Is it possible to use javascript from a mole? I can't seem to do > so. > >> >> > My intended application is to use a mole to show username and > >> >> > password > >> >> > fields and allow you to log in to a service. > >> >> > > >> >> > Also, it would be nice if I could control when a mole shows and > >> >> > hides. > >> >> > If this is possible, how do I do it? If not, consider this a > feature > >> >> > request. > >> >> > >> > > >> > > >> > > >> > > >> > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensions@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 -~----------~----~----~----~------~----~------~--~---