Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Method Signature

String[] getParameterValues (String parameterName);

v2 Usage

ultraCart.util.getParameterValues(parameterName)

Description

Reads the values for the parameter specified. Since a parameter can be specified multiple times on a query string this function returns an array.

Parameters

String parameterName – The name of the parameter that should be retrieved.

Result

String[] – array of values read from the query string. This array will be empty if there are no occurrences of the parameter.

// VERSION 2!
var paramArray = ultraCart.util.getParameterValues('ucError');
if(paramArray && paramArray.length){
    for(var i = 0; i < paramArray.length; i++){
        alert('Error:' + paramArray[i];
    }
}
  • No labels