Is there any way to set the confirmation dialog title when using link_to_remote with the :confirm option? In Firefox the dialog works fine but the title is: "The page at http://localhost:3000 says:" It would be nice if I could set that to something meaningful. Any information is appreciated, Rick -- 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 -~----------~----~----~----~------~----~------~--~---
Rick Fiorentino wrote:> Is there any way to set the confirmation dialog title when using > link_to_remote with the :confirm option? > > In Firefox the dialog works fine but the title is: > > "The page at http://localhost:3000 says:" > > It would be nice if I could set that to something meaningful. > > Any information is appreciated, > Rick >I believe that''s a security measure implemented by the browser makers to indicate to the user where the dialog box is coming from to combat phishing and other malicious deceptions (not that anyone ever *reads* the title anyway). But, the short answer is, no , you can''t do anything about that. -- http://www.5valleys.com/ http://www.workingwithrails.com/person/8078 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Short answer is no..... link_to_remote uses a basic javascript alert()....and that''s just the behavior of the alert function. But there''s nothing stopping you from overriding the enter thing with some fancy javascript and CSS. There are some nice modal window javascript classes out there. But, I don''t think that''s the answer you were looking for. On Thu, Mar 20, 2008 at 1:47 PM, Rick Fiorentino < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Is there any way to set the confirmation dialog title when using > link_to_remote with the :confirm option? > > In Firefox the dialog works fine but the title is: > > "The page at http://localhost:3000 says:" > > It would be nice if I could set that to something meaningful. > > Any information is appreciated, > Rick > -- > 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 -~----------~----~----~----~------~----~------~--~---