On 12 fév, 18:33, "raf" <[EMAIL PROTECTED]> wrote:
> I am a newbie to the prototype library, so please go easy ...
>
> I'm not sure all the following detail is relevant, but just in case
>
> The code in question is:
> function showDetail(evt, tagNameToSelect, parentTag, id) {
> var target = evt.target;
> if (target.className == "selected") return;
> if (target.tagName.toLowerCase() != tagNameToSelect) {
> target = target.parentNode; // try the parent
> if (target.tagName.toLowerCase() != tagNameToSelect) {
> return;
> }
> }
> var pourList = document.getElementById(parentTag);
> deselectExisting(pourList);
> selectNew(target);
> new Ajax.Updater('detailArea', '/pour/main_detail/' + id,
> {asynchronous:true, evalScripts:true});
>
> }
>
> This is from a pretty typical master/detail type display. This
> function showDetail is bound to the onclick property on each row (tr)
> in the table. The idea is that when a row in the table is clicked,
> then the appropriate detail is displayed by going back to the server
> for the contents and then display it in the 'detailArea'.
>
> Using Firebug, I can see that the request is not being sent to the
> server at all.
>
> If I switch back to 1.4 ot works fine.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Martin
See this thread for my solution about this problem :
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/728fb6ab1ad5027f
The problem lies in the fact that Prototype 1.5 extends the
Object.extend function to every objects, so the function
setRequestHeaders tries to add the 'extend' function to the headers to
be sent, thus generating the component exception.
-Yanick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---