Javascript in view

HI there,

How do I add a javascript function that gets called when the page loads
in one of my views?

Thanks,
steve

Hi,

I might sound like a noobie but this is what I’ve used in one of the
projects…


Redirecting you to the payment gateway...

I hope it helps :slight_smile:


Maku

On Thu, Mar 27, 2008 at 7:06 PM, Steve G. <

U can do like this either

in the layout

function your_unload_function() { //alert(' '); } function your_load_function() { //alert(' '); } On Thu, Mar 27, 2008 at 7:13 PM, मयंक जैन (makuchaku)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs