Name

Class xbQueryString — encapsulate access to the URL's Query String

Synopsis

extends Class xbObject

class xbQueryString : xbObject
{
  // constructor
  xbQueryString();
  
  // methods
  void initForm(HTMLFormElement form);
  void loadForm(HTMLFormElement form);
  void reset();
  
  // properties
  Object value;   
}
		

Example

var qs = new xbQueryString();

if (qs.value['message'])
	alert(qs.value['message']);
		

Description

xbQueryString is a utility class that is used to parse the querystring passed during a GET.

Properties

value

readonly Object - hash containing the values passed in the query string.

Methods

xbQueryString()

Constructs an instance of the xbQueryString class.

Returns. Nothing

Exceptions

  • None

initForm(HTMLFormElement form)

Initialize a form from the values in the xbQueryString.

Returns.  TypeName description

Exceptions

  • None

loadForm(HTMLFormElement form)

Initialize a xbQueryString from the values in the form.

Returns.  TypeName description

Exceptions

  • None

reset()

Remove all values from the xbQueryString.

Returns.  TypeName description

Exceptions

  • None