Thread: Question
View Single Post
  #4  
Old 03-09-2007, 05:01 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Kristi View Post
When using triggeraction in gs2, you trigger something on the serverside, then the serverside function has

function onActionServerside(passed1,passed2) {
whatever;
}

however, in the case of a triggered function ONLY, you do not have to define the parameters, so if you did

function onActionServerside() {

and triggered it with parameters, since they were never given name, they will be referred to as param[0], param[1], etc

You don't need to define any parameters when calling the serverside action (in the actual function, I mean, not the trigger), which is what it is -- an action. When you trigger, you trigger to action functions that in turn read any information you sent over as parameters.

Last edited by Gambet; 03-09-2007 at 06:23 AM.. Reason: Clarity
Reply With Quote