mobilemind/pastelets — Issue #2: use encodeURIComponent for URL querystring, encodeURI for javascript:
Author: mobilemind
Created: 2011-12-27 20:23:28+00:00
State: open

Reloaded URL needs to use encodeURI__Component__() for **?**__javascript:…__ and the textarea needs to use encode__URI__() . This should fix some issues with reloading the page. Likely impacts are in loader.js, pastelet.js, email.js, tel.js

## Encoding References ##

See and

**encodeURIComponent()**

The encodeURIComponent() function encodes a URI component.

This function encodes special characters. In addition, it encodes the following characters: , / ? : @ & = + $ #

**encodeURI() **

The encodeURI() function is used to encode a URI.

This function encodes special characters, except: , / ? : @ & = + $ # (Use encodeURIComponent() to encode these characters).

## Encoded Characters Reference ##

See 'Table of encoded characters' here:

or __encodeURI()__ here: