The fastest easiest way to get it right.

addParm

NAME

x6.json.addParm

FUNCTION

The Javascript method x6.json.addParm adds one parameter to a JSON call previously initiated with x6.json.init.

INPUTS

string - required, a parameter name mixed - required, the value for the parameter

EXAMPLE

Here are two examples for initiating a JSON request

      <script>
      x6.json.init();
      // Name the server-side page to call
      x6.json.addParm('x4Page','myCustomPage');
      // Name the server-side method to call
      x6.json.addParm('x4Action','fetchSomething');
      </script>

SOURCE

this.addParm = function(name,value) {
    this.parms[name] = value;
    if(name=='x4Page')   this.x4Page = value;
    if(name=='x4Action') this.x4Action = value;
}

User Comments

There are no user comments yet on this page.


Add A Comment

Comments will not appear until after they are moderated. Comments are usually moderated within a few hours on weekdays, but may take longer on weekends and holidays.

Name or nickname: (This will appear with your comment)


Email (this will never be displayed)


Enter your comment here. Use [b] and [/b] for bold, [i] and [/i] for italic, and [pre] and [/pre] for code samples. All literal HTML and PHP that you enter will be escaped out and displayed as you enter it.


Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2010, Licensed under the GPL Version 2