Bill Walton wrote:
> Hi John,
>
> John Butler wrote:
>> :before => "Element.show('spinner')",
>> :success => "Element.hide('spinner')") %>
>>
>> What i want is when the page first loads for this ajax event to fire
>> once so the correct information is diaplyed.
>
> What does 'so the correct information is displayed [sic]' mean? If you
> mean
> you want to give the dropdown an initial value, options_for_select lets
> you
> specify the selected value. See the documentation for that method and
> the
> ones that follow it at api.rubyonrails.org.
>
> HTH,
> Bill
Yes i have the correct value displaying in the drop down but this then
fires an ajax request when clicked to update some components on the
view. Id like to automaticall fire this event when the page loads??
JB
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---