Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| programming:collection.next_json [2016/11/03 00:01] – jlucas | programming:collection.next_json [2016/11/03 00:04] (current) – jlucas |
|---|
| <em> // convert data array to application/x-www-form-urlencoded | <em> // convert data array to application/x-www-form-urlencoded |
| </span></em> var</span> postData = translateToFormUrlEncoded</span>(data); | </span></em> var</span> postData = translateToFormUrlEncoded</span>(data); |
| </div></div> | |
| </pre> | </pre> |
| |
| <pre><span class="comment">// encoded contents of resulting postData variable</span> | <pre> |
| <code> | // encoded contents of resulting postData variable |
| first-name=John&last-name=Doe&email=john%40doe.com&website=http%3A%2F%2Fjohn.doe.com&age=37&interests=music&interests=sports&interests=cars&subscribe=0 | first-name=John&last-name=Doe&email=john%40doe.com&website=http%3A%2F%2Fjohn.doe.com&age=37&interests=music&interests=sports&interests=cars&subscribe=0</pre> |
| </code></pre> | |
| |
| </section><!-- /translating to form urlencoded --> | </section><!-- /translating to form urlencoded --> |