getParameterValues

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];
    }
}