ok, so i found the issue. but this makes no sense. in my new partial that i
copied from the original partial the first line is:

%span#location_chooser

Now, i took the the #location_chooser part to be a comment, so i never
touched it. then, in an effort to make sure that everything was renamed,
comments included, i change it to:

%span#group_location_chooser

and it works.

Could someone help me understand what exactly that does?

thx




--
Levi Rosol
Twitter: @LeviRosol


On Fri, Dec 5, 2008 at 10:45 PM, Levi Rosol <[EMAIL PROTECTED]> wrote:

> and here are my observers for the new group_location_chooser
>
> observe_field("state_id", {:url => {:controller => 'groups', :action =>
> 'metro_area_update'}, |
>   :with => "'state_id=' + $('state_id').value + '&country_id=' +
> $('country_id').value", |
>   :loading => "$$('span#group_location_chooser img')[0].show();", |
>   500 => "alert('"+:sorry_there_was_an_error.l+"'); return false", |
>   :update => "group_location_chooser"}) |
>
> %span
>
> = observe_field("country_id", {:url => {:controller => 'groups', :action =>
> 'metro_area_update'}, |
>   :with => "country_id", |
>   :loading => "$$('span#group_location_chooser img')[0].show();", |
>   500 => "alert('"+:sorry_there_was_an_error.l+"'); return false", |
>   :update => "group_location_chooser"}) |
>
> --
> Levi Rosol
> Twitter: @LeviRosol
>
>
>
> On Fri, Dec 5, 2008 at 10:43 PM, Levi Rosol <[EMAIL PROTECTED]> wrote:
>
>> i'm in the process of duplicating the location functionality for groups
>> and am getting hung up. I've gone through and made sure that all of the
>> correct fields have been added to my group object, counters,
>> model/controller methods added, etc.
>>
>> I had to duplicate the location_chooser control, making a new
>> group_location_chooser so that it would look at the group and not the user
>> when getting values. Well, in my index view for groups (functions much like
>> the user index in that it shows a list of groups) I cannot get the state
>> dropdown to populate. I see everything fire on the server and when i step
>> through it, i get a list of 51 states. it's just that the browser isn't
>> getting updated.
>>
>> i also do not see the spinner icon when i select a country.
>>
>> any ideas?
>>
>>
>> --
>> Levi Rosol
>> Twitter: @LeviRosol
>>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" 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/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to