GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ChannelMeter/jquery-param: equivalent function to jQuery.param

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
test
test
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bower.json
bower.json
 
 
circle.yml
circle.yml
 
 
compile
compile
 
 
jquery-param.js
jquery-param.js
 
 
jquery-param.min.js
jquery-param.min.js
 
 
package.json
package.json
 
 

Repository files navigation

jquery-param Circle CI

Features

  • equivalent to jQuery.param
  • no jQuery necessary
  • no dependencies
  • legacy IE support

What is this good for?

When making a GET/POST request in Web Workers etc., which cannot use jQuery. Especially when sending Array as a parameter.

Install

Node.js:

$ npm install jquery-param --save

Bower:

$ bower install jquery-param

browser:

<script src="./src/jquery-param.min.js"></script>

Usage

Node.js:

var param = require('jquery-param');
var obj = { key1: 'value1', key2: [10, 20, 30] };

var str = param(obj);
// => "key1=value1&key2[]=10&key2[]=20&key2[]=30"

browser:

var obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };

var str = window.param(obj);
// => "key1[value1][]=10&key1[value1][]=20&key1[value1][]=30&key2=?a=b&c=d"

Browser Support

Chrome, Firefox, Safari, Opera, and Internet Explorer 6+.

License

MIT

About

equivalent function to jQuery.param

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.