no solution for this i guess?

On 26 jun, 14:52, José Alberto Suárez López <[email protected]>
wrote:
> I try:
>   flash[:error] = 'Access denied. Try to log in first.'
>   render(:update) {|page| page.call 'devices-messages.reload'}
>
> it mostly works, i can see the error message in rhe red background,
> but it doesn't have a close button and under it is a green background
> line with an error:
>
> try { devices-messages.reload(); } catch (e) { alert('RJS error:\n\n'
> + e.toString()); alert('devices-messages.reload();'); throw e }
>
> On Fri, Jun 26, 2009 at 14:14, BaSS<[email protected]> wrote:
>
> > Using this works but have a problem. The msg who in a green background
> > line, but when you close that line (click con X close button) the
> > green line goes, but the text is yet there and you cannot see the
> > original row.
>
> > On 26 jun, 13:54, "Sergio Cambra .:: entreCables S.L. ::."
> > <[email protected]> wrote:
> >> On Viernes, 26 de Junio de 2009 13:40:09 José Alberto escribió:
>
> >> > > respond_to do |format|
> >> > >  format.html { redirect_to login_path }
> >> > >  format.js do
> >> > >    render(:update) {|page| page.redirect_to login_path}
> >> > >  end
> >> > > end
>
> >> > Using this i get a green backgrounf line on top of AS with this msg:
>
> >> >   try { window.location.href = "/login"; } catch (e) { alert('RJS
> >> > error:\n\n' + e.toString()); alert('window.location.href =
> >> > \"/login\";'); throw e }
>
> >> > anyway, i prefer to send a message to AS so AS can show it usign the
> >> > same style as other errors or messaes.
>
> >> > It is possible?
>
> >> Try with render :text => 'Your message'
>
> >> --
> >> Sergio Cambra .:: entreCables S.L. ::.
> >> Mariana Pineda 23, 50.018 Zaragoza
> >> T) 902 021 404 F) 976 52 98 07 E) [email protected]
--~--~---------~--~----~------------~-------~--~----~
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