Thank you Kwah and Jim.  I inspected the page using Firebug and here's
the element for the customer id field:

<input type="text" maxlength="9" class="field" name="textMARS">

The field is deep inside the page: nested inside a frame, then inside
a form, and inside a cell in a table.

In my user script I have:

        document.getElementById('textMARS').focus();
        document.getElementById('textMARS').value = "1234567";

Unfortunately, I could not get it to work.  I am able to print a
"hello world" message from the script so I know it is being invoked.
Could it be that I need to fully qualify the element because it's so
deep inside the page?

Thank you -

Todd

On Jun 10, 12:52 am, Kwah <[email protected]> wrote:
> The easiest way to do this is to install the Firebug addon [1].
>
> One of the (MANY!) great features of this is to be able to right-click
> on a part of the page and select 'Inspect Element'.
>
> Amongst other things that this does is show you the exact part of the
> source code specific to the element that clicked on.
>
> Alternaatively you could highlight the input field and press
> Ctrl+Shift+U (or in the View menu - 'View Selection Source') if you
> don't have/want Firebug.
>
> Oh, and yes Greasemonkey works on secure pages. It will work on any
> page that you load into Firefox (though file:.// and about: urls are
> disable by default for security reasons)
>
> Regards
>
> [1] -https://addons.mozilla.org/en-US/firefox/addon/1843/
> [2] -http://getfirebug.com/
>
> On 6/10/10, Toddintr <[email protected]> wrote:
>
> > Hi,
>
> > I would like to apply a GM script to an online bank website so that I
> > can at least have the script fill in my user id automatically.
> > However, I cannot figure out the name of the user id field by looking
> > at the page source.  The page uses https and there is a lock icon on
> > the lower right hand corner in FF.
>
> > 1) Does GM work on https pages? 2) If so, are there any tools that I
> > can use to figure out field names?
>
> > Many thanks in advance -
>
> > Todd
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "greasemonkey-users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/greasemonkey-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to