Thanks a bunch!

Just for the record: i copied _create_form.rhtml into my view and
modified the javascript section as follows:

<script type="text/javascript">
<% if logged_in? %>
  Form.Element.focus('record_notes').select();
<% else %>
  Form.focusFirstElement('<%= element_form_id(:action => :create) -
%>');
<% end %>
</script>





On Jun 3, 8:49 pm, "G. Sobrinho" <[email protected]> wrote:
> You may override a AS view and change the javascript which call
> focusFirstElement.
>
> If you dont know how you write this code, mail again
>
> 2009/6/2 [email protected] <[email protected]>
>
>
>
> > hej there
>
> > some textfields are automatically filled when a logged-in user creates
> > a new note. hence i wanna focus the next empty field which in this
> > case is always the "hint" field. i suppose i need javascript but am
> > not sure where and how to put it.
>
> > thanks for your ideas.
> > moka
>
> --
> Atenciosamente,
>
> Gabriel Sobrinho
> +55 31 8775 8378
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to