redirect(url[, encType])

Redirect to the specific page with sending data by GET method.

Syntax

Parameters

url
Type: string
A page url to be redirected to.
encType
Type: string
Encoding type.

Examples

var data = {a: 1, b: 3};
$from(data).redirect("/test.php");

This code will redirect the page to '/test.php?a=1&b=3'.

Last edited May 18, 2012 at 2:15 PM by suckgamoni, version 1

Comments

No comments yet.