Topic: Totally Lost, Need Help! JS Question.
Hi guys, sorry about the vague title, but I don't even know what javascript technology/method I should be using for this one. Here goes:
I've got this site I am working on, when you load a specific page, it is supposed to count down 16 seconds, and at the end of those 16 seconds, I am going to make an ActiveRecord call. The seconds need to be displayed as they count down.
Right now I am using a small text field to display an integer counting down from 16 so that I can access it through the DOM. Right now it is written in normal JS, but I don't know how to have rails recognized that the counter is done so it can make the activerecord call.
Someone suggested using an inner_html call so that I don't need to place it in a text box. I've also heard that I should use RJS, hpricot, and jQuery.
I'm pretty lost here, I know how to make simple ajax updates to a page, but that's really it for JS. If anyone could just start me on the right path to what I should be reading, that would be very much appreciated.