on 2009-03-18 14:01
on 2009-03-19 12:17
link_to_redbox works though. #link_to_redbox link #in the view with the above link <div id="rb_test" style="display:none;"> watsup? <%= link_to_close_redbox "Cancel" %> </div> This shows a white box in the center, slightly above center. The spinner.gif does not get hidden even after "watsup?" is rendered. and "watsup?" is rendered at the very bottom of the white box and a little outside it too. When I use link_to_remote_redbox to render the form, in FF, I tried selecting an arbitrary part of the result (which is just the black transparent RB_overlay) and viewing source. that shows the elements of the form and their full details but whats selected is only the source for the RB_overlay div. So im guessing the form is rendered but im not able to see it for some reason. Another interesting thing is that when i click on "View source" for that arbitrary selection as described above, Firebug throws an error at the element.hide() function source code. The error message itself is VERY long and highly truncated so im not pasting it here but will try it if anyone thinks itll help. Firebug throws this error when i click on "View source". Could this element.hide() error and the spinner not hiding after rendering "watsup?" have some connection? getting a bit desperate here.. all other options for a modal form seem more complicated so I want to make sure im not making a silly mistake before I jump into trying the other solutions.
on 2009-03-19 12:31
I just had to scroll up to see the form because it was not being rendered at the center. im open to getting kicked now. free kicks for all!