Never mind. I figured it out. My javascript code was within a PHP
block and so the $ was getting interpreted as the beginning of a
variable. :(

On Jun 11, 11:38 am, jhicks <> wrote:
> I'm trying to do something I've done many time before, but I'm getting
> different results.
> I have a very simple call to $F('MyField') within a function where the
> html is
> <input type="text" id="MyField" size="3" maxlength="3" />
> I'm doing an alert within the function call:
> alert($F('MyField');
> which instead of giving me the value of the field is giving me the id
> of the field "MyField".
> Anybody ever seen this or have any clue what's going on?
> Using with latest scriptaculous also included on the page
> doing an Ajax.Autocompleter on another field (which is working).
You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to