My favorites | Sign in
Project Logo
             
Details: Show all Hide all

Older

  • Jul 09, 2009
    HowToUse Wiki page commented on by brian.emery1   -   Some detail on how I got this to work (in a rails blog tutorial). After installing with the `script/plugin` stuff (note that the javascript prototype library is included with rails), here's what I did: In /views/layouts/posts.html.erb, put this line. Without it there is no animation: {{{ <%= javascript_include_tag 'prototype' %> }}} In /views/posts/show.html.erb, there must be a header, and further down, the progress bar code: {{{ <head> <%= progress_bar_includes %> </head> ... <%= progress_bar("progress_bar",1.0, display_percentage_text = false, multicolor = false) %> }}} Great, the user loads the page and the progress bar fills up to 100%. However, it's not actually connected to any process. I'd like to put some chunked up code in the controller (a loop for example), and have the progress bar indicate the progress of the loop. Anyone? I'll repost if I figure it out. Brian
    Some detail on how I got this to work (in a rails blog tutorial). After installing with the `script/plugin` stuff (note that the javascript prototype library is included with rails), here's what I did: In /views/layouts/posts.html.erb, put this line. Without it there is no animation: {{{ <%= javascript_include_tag 'prototype' %> }}} In /views/posts/show.html.erb, there must be a header, and further down, the progress bar code: {{{ <head> <%= progress_bar_includes %> </head> ... <%= progress_bar("progress_bar",1.0, display_percentage_text = false, multicolor = false) %> }}} Great, the user loads the page and the progress bar fills up to 100%. However, it's not actually connected to any process. I'd like to put some chunked up code in the controller (a loop for example), and have the progress bar indicate the progress of the loop. Anyone? I'll repost if I figure it out. Brian
  • Jul 08, 2009
    HowToUse Wiki page commented on by brian.emery1   -   More detail would be very useful. I've been trying to figure this one out for a while now.
    More detail would be very useful. I've been trying to figure this one out for a while now.
 
Hosted by Google Code