I have a form that I want to do a few things.
-do an Effect.SlideOut on a div
-replace the text in a div with different text
-update the database and add a new div later in the document.
How do call all of these (there is only one :complete or :update)
Thanks in advance.
Hi Brian,
Brian Zimmer wrote:
I have a form that I want to do a few things.
-do an Effect.SlideOut on a div
-replace the text in a div with different text
-update the database and add a new div later in the document.
How do call all of these (there is only one :complete or :update)
Best way is to use RJS. I recommend Cody F.'s new “RJS Templates
for
Rails” PDF. You can find the book at
http://www.oreilly.com/catalog/rjsrails/ Ten bucks and a few hours
working through the tutorial and you’ll know how to do the above and a
whole
bunch more.
hth,
Bill
Hi Bill,
I wanted to know how this RJS will be helpful in solving my issue.
I have a site that is developed on RoR, and the home page contains a
section where the recent posts of the respective blog will be loaded
into. This rss transaction taking its own time to load till then this
section will be blank.
How do I avoid this, any help on this is welcome!
Thanks in advance,
Sumanth.
Bill W. wrote:
Hi Brian,
Brian Zimmer wrote:
I have a form that I want to do a few things.
-do an Effect.SlideOut on a div
-replace the text in a div with different text
-update the database and add a new div later in the document.
How do call all of these (there is only one :complete or :update)
Best way is to use RJS. I recommend Cody F.'s new “RJS Templates
for
Rails” PDF. You can find the book at
http://www.oreilly.com/catalog/rjsrails/ Ten bucks and a few hours
working through the tutorial and you’ll know how to do the above and a
whole
bunch more.
hth,
Bill
Sumanth A. wrote:
Hi Bill,
I wanted to know how this RJS will be helpful in solving my issue.
I have a site that is developed on RoR, and the home page contains a
section where the recent posts of the respective blog will be loaded
into. This rss transaction taking its own time to load till then this
section will be blank.
How do I avoid this, any help on this is welcome!
Thanks in advance,
Sumanth.
Bill W. wrote:
Hi Brian,
Brian Zimmer wrote:
I have a form that I want to do a few things.
-do an Effect.SlideOut on a div
-replace the text in a div with different text
-update the database and add a new div later in the document.
How do call all of these (there is only one :complete or :update)
Best way is to use RJS. I recommend Cody F.'s new “RJS Templates
for
Rails” PDF. You can find the book at
http://www.oreilly.com/catalog/rjsrails/ Ten bucks and a few hours
working through the tutorial and you’ll know how to do the above and a
whole
bunch more.
hth,
Bill
Hi Brian
I can confirm that this small PDF (50 pages) is actually a ‘must have’
to discover and then use RJS…
then you’ll ba able to perform these actiosn and much more… take your
time in replicating Cody’s example and a couple of hours later you’re
ready to go…
kad