This is an odd one. I just noticed that for some odd reason, my ajax
responses on graphics-world.com (rate a tutorial, report a tutorial,
etc.) are not being evaluated. To make the puzzle even more interesting,
it does work fine when a user is logged in!
Looking at the request/response cycle in Firebug, everything is fine.
Here is a sample response for non-logged in user:
Element.update("message-1411", "<b>Join the
conversation!</b> To save
tutorials, <b><a href=\"/login\">login</a></b>
or <b><a
href=\"/register\">register</a></b> for free. <a
href=\"#\"
onClick=\"removeParent(this);\"><img
src=\"/images/close.gif\"></a>");
new Effect.Appear("message-1411",{duration:1.5});
Element.hide("t-1411-indicator");
Now, I can stick this code into my console and run it.. and it will
perform all correct actions with no failures! Even better, the response
is identical for a logged in user (which does evaluate). This pattern
repeats on FF 1.5/IE 7.
I''ve updated all js scripts to latest revisions (rake rails:update...).
Any ideas? Can you give it a shot, do you see the same problem?
Ilya - igvita.com/blog
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---