Saiho Yuen
2006-Jul-10 14:00 UTC
[Rails] link_to_remote, how to send "data" to another <div> when something system detects something wrong???
HI, I try use link_to_remote to do a ajax update on my page, when eveything is OK, the syetem returns data to the ajax zone, but when there is something wrong, like the entry wasn''t correct, I want to send data(a message) to another zone (the zone is defined in the layout (message zone used flash[:notice]) I was never able send data to the other zone, because it is on the layout, and I have to use render layout=>false. So I wonder if there is some parameter I can set to redirect data to another zone??? like :failure, etc.... thanks you very much Saiho The mind is its own place, and in itself. Can make a Heaven of Hell, a Hell of Heaven. http://www.geocities.com/sayoyo/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com