I have been researching modal dialog popup windows for my rails app and have narrowed the search down to two with two main variables in mind: ease of integration and speed. The two, that use prototype, are Redbox and the Prototype Window Class. I am looking for any input as to which may work better in terms of speed and integration and any other general advice. I would also like to style the popup windows with rounded corners if possible and not sure if you can do that with either one. Also, if there is another library that I am leaving out that would work with me pre-req''s please let me know. thanks, Dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi David, David wrote:> > I have been researching modal dialog popup windows for my rails app > and have narrowed the search down to two with two main variables in > mind: ease of integration and speed. The two, that use prototype, are > Redbox and the Prototype Window Class. I am looking for any input as > to which may work better in terms of speed and integration and any > other general advice.I''ve been working for the past few days with Redbox. It''s got some ''cruft'' that needed to be cleaned up, but it was pretty easy to figure out. I haven''t worked with the other. There was a brief exchange yesterday about the same topic and another library was mentioned. It was titled "what is the preferred ''lightbox'' plugin".> I would also like to style the popup windows with rounded cornersThis is done with an image background on the div that gets rendered into your lightbox. You''ll need to style it with something like: width: 999px; height: 555px; background-image: url(../images/total_box.png); The image won''t display (at least it wouldn''t for me) if you don''t specify the width and height. HTH, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for the insight. Does redbox play well with IE6? On Nov 20, 6:23 am, "Bill Walton" <bill.wal...-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:> Hi David, > > David wrote: > > > I have been researching modal dialog popup windows for my rails app > > and have narrowed the search down to two with two main variables in > > mind: ease of integration and speed. The two, that use prototype, are > > Redbox and the Prototype Window Class. I am looking for any input as > > to which may work better in terms of speed and integration and any > > other general advice. > > I''ve been working for the past few days with Redbox. It''s got some ''cruft'' > that needed to be cleaned up, but it was pretty easy to figure out. I > haven''t worked with the other. There was a brief exchange yesterday about > the same topic and another library was mentioned. It was titled "what is > the preferred ''lightbox'' plugin". > > > I would also like to style the popup windows with rounded corners > > This is done with an image background on the div that gets rendered into > your lightbox. You''ll need to style it with something like: > > width: 999px; > height: 555px; > background-image: url(../images/total_box.png); > > The image won''t display (at least it wouldn''t for me) if you don''t specify > the width and height. > > HTH, > Bill--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
David wrote:> Thanks for the insight. Does redbox play well with IE6?I have the luxery of only having to support FF. The code does recognize (at least some) browser-specific quirks, but I haven''t tested it at all on IE. Sorry I can''t be of more help. Best regards, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''m partial to the submodal. Because I wrote it and it came out before all these *_box variants. I like to think that I was the first using such a solution, though it''s probably not the case ;) Patches welcome, JS hackers: http://code.google.com/p/submodal/ -------------------- seth - subimage llc ----- http://sublog.subimage.com ----- Cashboard - Estimates, invoices, and time tracking software - for free! http://www.getcashboard.com ----- Substruct - Open source RoR e-commerce software. http://code.google.com/p/substruct/ On Thu, Nov 20, 2008 at 8:25 PM, Bill Walton <bill.walton-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:> > David wrote: > >> Thanks for the insight. Does redbox play well with IE6? > > I have the luxery of only having to support FF. The code does recognize (at > least some) browser-specific quirks, but I haven''t tested it at all on IE. > Sorry I can''t be of more help. > > Best regards, > Bill > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey, I am trying to get RedBox working but have run into some issues. When I click on a Redbox link, everything works except that a white blank div element appears at the top of the screen in the middle no matter what. I thought it may be an issue with the installation b/c I noticed that the plugin install did not copy the appropriate files to the right folders. So I tried updating but got this error(I installed all the files manually): rake aborted! private method `copy'' called for File:Class /Users/dlynam/rails_apps/clean/vendor/plugins/redbox/rakefile:28 Then I tried re-installing the plugin but I get an error with that too. It seems other people are getting the same errors as per the posts on the Redbox page: Plugin not found: [“svn://rubyforge.org/var/svn/ambroseplugins/ redbox”] On Nov 20, 8:25 pm, "Bill Walton" <bill.wal...-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:> David wrote: > > Thanks for the insight. Does redbox play well with IE6? > > I have the luxery of only having to support FF. The code does recognize (at > least some) browser-specific quirks, but I haven''t tested it at all on IE. > Sorry I can''t be of more help. > > Best regards, > Bill--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
It looks like this is the problem, some of the functions are not updated for newer versions of prototype(from the posts on craigs site), but I tried this and this still does not work: Redbox is broken. These lines are indeed wrong: Element.setTop(window_id, boxTop); Element.setLeft(window_id, boxLeft); It looks like Graig wanted to use the lightbox functions. To repair replace those lines with: $(window_id).style.top = boxTop +“px”; $(window_id).style.left = boxLeft +“px”; On Nov 21, 5:04 pm, David <dly...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey, I am trying to get RedBox working but have run into some issues. > When I click on a Redbox link, everything works except that a white > blank div element appears at the top of the screen in the middle no > matter what. I thought it may be an issue with the installation b/c I > noticed that the plugin install did not copy the appropriate files to > the right folders. So I tried updating but got this error(I installed > all the files manually): > > rake aborted! > private method `copy'' called for File:Class > /Users/dlynam/rails_apps/clean/vendor/plugins/redbox/rakefile:28 > > Then I tried re-installing the plugin but I get an error with that > too. It seems other people are getting the same errors as per the > posts on the Redbox page: > > Plugin not found: [“svn://rubyforge.org/var/svn/ambroseplugins/ > redbox”] > > On Nov 20, 8:25 pm, "Bill Walton" <bill.wal...-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote: > > > David wrote: > > > Thanks for the insight. Does redbox play well with IE6? > > > I have the luxery of only having to support FF. The code does recognize (at > > least some) browser-specific quirks, but I haven''t tested it at all on IE. > > Sorry I can''t be of more help. > > > Best regards, > > Bill--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hi David I have same problem. private method `copy'' called for File:Class at first. as you said, some of tue function are not updated. so, how can i solve this problem? thanks. On 11월22일, 오전10시25분, David <dly...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It looks like this is the problem, some of the functions are not > updated for newer versions of prototype(from the posts on craigs > site), but I tried this and this still does not work: > > Redbox is broken. > > These lines are indeed wrong: > Element.setTop(window_id, boxTop); > Element.setLeft(window_id, boxLeft); > > It looks like Graig wanted to use the lightbox functions. > > To repair replace those lines with: > $(window_id).style.top = boxTop +"px"; > $(window_id).style.left = boxLeft +"px"; > > On Nov 21, 5:04 pm, David <dly...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hey, I am trying to get RedBox working but have run into some issues. > > When I click on a Redbox link, everything works except that a white > > blank div element appears at the top of the screen in the middle no > > matter what. I thought it may be an issue with the installation b/c I > > noticed that the plugin install did not copy the appropriate files to > > the right folders. So I tried updating but got this error(I installed > > all the files manually): > > > rake aborted! > > private method `copy'' called for File:Class > > /Users/dlynam/rails_apps/clean/vendor/plugins/redbox/rakefile:28 > > > Then I tried re-installing the plugin but I get an error with that > > too. It seems other people are getting the same errors as per the > > posts on the Redbox page: > > > Plugin not found: ["svn://rubyforge.org/var/svn/ambroseplugins/ > > redbox"] > > > On Nov 20, 8:25 pm, "Bill Walton" <bill.wal...-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote: > > > > David wrote: > > > > Thanks for the insight. Does redbox play well with IE6? > > > > I have the luxery of only having to support FF. The code does recognize (at > > > least some) browser-specific quirks, but I haven''t tested it at all on IE. > > > Sorry I can''t be of more help. > > > > Best regards, > > > Bill > >--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---