The fastest easiest way to get it right.

init

NAME

x6.json.init

FUNCTION

The Javascript method x6.json.init initiates a new JSON request.

Optionally you can pass two inputs and eliminate one call to x6.json.addParm.

INPUTS

string - if provided, a parameter name mixed - if provided, the value for the parameter

EXAMPLE

Here are two examples for initiating a JSON request

      <script>
      // The short way
      x6.json.init('x4Page','myCustomPage');

      // Passing w/o parameters requires at least one
      // call to x6.json.addParm.
      x6.json.init();
      x6.json.addParm('x4Page','myCustomPage');
      </script>

SOURCE

init: function(name,value) {
    this.x4Page     = '';
    this.x4Action   = '';
    this.callString = '';
    this.parms      = { };
    this.reportErrors=true;
    this.explicitParms= '';
    if(name!=null) {
        this.addParm(name,value);
    }
    var self = this;
    // KFD 3/20/09 Sourceforge 2697962
    //             Make sure hold variables always go through
    $('[id^=hld]').each(function() {
        self.addParm( $(this).attr('id'), $(this).val() );
    });
},

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