+ Start a Discussion
Scott M - SFDC FanScott M - SFDC Fan 

Invoking a method at certain points in a page

Hi,

 

Is there a way to invoke a method of a controller extention, without connecting it to some sort of page element, like a button? I know about the action parameter in the page tag. However, I want to run some logic behind the scenes though, without the user pressing any buttons. For instance, saving something to the database, after the page is completely loaded.

 

Also, is there a way to pass a parameter to a method with the action parameter in the page tag?

 

Thanks for any assistance.

 

scamo

werewolfwerewolf
Well, you could wire up the page with some Javascript triggered from various events which "phone home" and execute some Apex to do certain things.