Adds any number of attribute/value pairs to a query string.
JSV_queryString(expS, expA, expV, ...)
expS.queryString(expA, expV, ...)
The query string with the new attribute/value pairs added.
The queryString function uses the following arguments.
Argument | Description |
expS | The initial query string. |
expA | Attribute to be added to the query string. |
expV | Value of the attribute being added. |
Any number of attribute/value pairs may be passed to the JSV_queryString
function. This function implements the following rules:
The following lines of code
var qs = '';
var cfPage = "MyDocument.cfm";
document.write( "Example 1: " +
cfPage +
JSV_queryString(qs, "One", 100, "Apple", "Red", "Music", "R&B") );
document.write( "Example 2: " +
cfPage +
JSV_queryString(qs, "One", 1, "Apple", "", "Music", "R&B") );
document.write( "Example 3: " +
cfPage +
JSV_queryString(qs, "One", 1, "Music", "Scene", "Groove") );
produce
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.