Skip to content

JakeCigar/parseSearch-formize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

formize

A jQuery plugin. The opposite of .serialize. It takes a query string and loads it into a

.

Usage

    $("form").formize(); // uses location.search 
    
    $("form").formize(parseSearchResult);

parseSearch

Usage

    var formObject= parseSearch() // uses location.search
    
    var formObject= parseSearch(aQueryString)

serializeFormData

Usage

$.ajax({
    url: "YourServerProgram",
    type: "POST", // required
    processData: false, // required
    contentType: false, // required
    data: $("form").serializeFormData(), // sends the files as well!
    success: function() {
        console.log("Uploaded.", arguments)
    },
    error: function() {
        console.log("Error Uploading.", arguments)
    },
})

extra examples

/* make an 'JSON' object to send using AJAX */
var json = parseSearch($("form").serialize())

About

QueryString to form values

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published