Currently, and from your email, I doubt that AS works with JQuery. 
Getting AS off of prototype is not going to be an easy fix, so you would 
have to have both prototype and JQuery to be able to use AS. What 
specifically are your namespace conflicts? Depending on what they are it 
may just be easier to rename some of the things in AS to avoid these 
conflicts.

-Mike

Richard Zheng wrote:
> Jrails is a rails plugin for Jquery.
>
> Jquery and haml are two things that we used a lot. It will be really
> nice to have AS support as both gained some momentum recently.
>
>
> On Mon, Feb 9, 2009 at 9:17 PM, Mike Gaffney <[email protected]> wrote:
>   
>> 1) What's Jrails? never heard of that. Please explain.
>> 2) AS works with prototype. We'd love to decouple it but there has been
>> no by in on that.
>>
>>
>> Richard Zheng wrote:
>>     
>>> Ok, i see the problem. I am using jrails. It seems there are some
>>> namespace conflict between jquery and prototype. Is it possible to use
>>> AS with jquery?
>>>
>>> On Mon, Feb 9, 2009 at 1:02 PM, David C <[email protected]> wrote:
>>>
>>>       
>>>> The generated JS doesn't look right. For one, there shouldn't be a
>>>> leading # in the element ID strings for the $() function, and for
>>>> another the posted JS differs from what I see in my own setup. Instead
>>>> of
>>>>
>>>>  $("#admin__lookbooks-list-6-row").remove();
>>>>  ...
>>>>  $("#admin__lookbooks-messages").html("\n  \n\n  \n\n  \n\n");
>>>>
>>>> the generated JS I see in Firebug (substituting controller names to
>>>> match the original) is
>>>>
>>>>  Element.remove("admin__lookbooks-list-6-row");
>>>>  ...
>>>>  Element.update("admin__lookbooks-messages", "\n  \n\n  \n\n  \n\n");
>>>>
>>>> which works perfectly fine for me in FF3.
>>>>
>>>> Have you overridden, or modified, the default destroy.rjs view from
>>>> AS? Or, less likely, modified the remove and replace_html generator
>>>> methods from PrototypeHelper? Otherwise I'm not sure how page.remove
>>>> "id" in destroy.rjs can generate $("#id").remove() instead of
>>>> Element.remove("id"), but perhaps there's some code path I missed that
>>>> my code isn't taking.
>>>>
>>>> On Feb 9, 2:41 am, rvhi <[email protected]> wrote:
>>>>
>>>>         
>>>>> I have the same issue with firefox 3, Chrome and IE7. Any fix on this?
>>>>>
>>>>> On Jan 26, 2:10 pm, chevere <[email protected]> wrote:
>>>>>
>>>>>
>>>>>           
>>>>>> Also, I notice RJS errors when deleting:
>>>>>>
>>>>>> The page athttp://localhost:3000says:RJSerror:
>>>>>> TypeError: $("#admin__lookbooks-list-6-row") is null
>>>>>>
>>>>>> The page athttp://localhost:3000says:$('admin__lookbooks-destroy-6-
>>>>>> link').action_link.close_previous_adapter();
>>>>>> $("#admin__lookbooks-list-6-row").remove();
>>>>>> ActiveScaffold.reload_if_empty('admin__lookbooks-tbody','/admin/
>>>>>> lookbooks/update_table?
>>>>>> authenticity_token=f37c86f15a107b6b68aa3dc6d92691a08e499d5b&page=1');
>>>>>> ActiveScaffold.stripe('admin__lookbooks-tbody');
>>>>>> ActiveScaffold.decrement_record_count('admin__lookbooks-active-
>>>>>> scaffold');
>>>>>> $("#admin__lookbooks-messages").html("\n  \n\n  \n\n  \n\n");
>>>>>>
>>>>>> On Jan 26, 1:57 pm, chevere <[email protected]> wrote:
>>>>>>
>>>>>>             
>>>>>>> Hi, I receive RJS errors when selecting 'show' or 'search'.
>>>>>>> (running rails2.2.2/ performed a "-r rails-2.2" install this
>>>>>>> morning)
>>>>>>>
>>>>>>> The page athttp://localhost:3000says:
>>>>>>> RJS error:
>>>>>>> TypeError: $("#admin__lookbooks-messages") is null
>>>>>>>
>>>>>>> The page athttp://localhost:3000says:
>>>>>>> $("#admin__lookbooks-messages").html("\n  \n\n  \n\n  \n\n");
>>>>>>>
>>>>>>> No errors in the dev log.  Suggestions?  Need more info?
>>>>>>> -T
>>>>>>>
>>>>>>>               
>
> >
>   

--~--~---------~--~----~------------~-------~--~----~
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