Article Details
Id:16992
Product:finPOWER Connect
Type:NEW
Version:3.03.02
Opened:13/01/2020
Closed:27/05/2020
Released:02/07/2020
Job: J023528

Portals; portal.Navigate2 method added to avoid having to encode URL parameters

A new portal.Navigate2() method has been added.

The accepts a URL and an optional JavaScript object.

Unlike the portal.Navigate() method, you do not have to worry about URL encoding any parameters.

The following sample shows a comparison of the two methods:

    portal.Navigate("Apply?amount=" + numAmount.Value() + "&term=" + numTerm.Value() + "&termCycle=" + encodeURIComponent(cboTermCycle.Text()));

    portal.Navigate2("Apply", { amount: numAmount.Value(), term: numTerm.Value(), termCycle: cboTermCycle.Text() });