JQuery Postdatas Plugin

Just a little jQuery plugin to post datas with javascript, technically, this plugin add a hidden form in the page, all form fields are hidden, and then submit this form.
Demo Page

Usage :

Just add the file jquery.postdatas.version.js, in your page and then you can use it :

$.postdatas({
  url:'http://url.to.the.page/page.php',
  datas:[  // datas
    {name:'fieldName1', value:'field 1 value'},
    {name:'fieldName2', value:'field 2 value'},
    {name:'fieldName3', value:'field 3 value'}
  ]
});

That’s all …

Options

Options Description Default
url

String : the URL where you want to post your datas

empty
datas

Array : Array of datas you want to post

vide

Downloads

Here is the package :
postdatas-0.3

You may also like...

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Vous pouvez utiliser ces balises et attributs HTML : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>