Jquert posting jSon
same old, same old ... :)

i have a form called ` <form id="testForm" action="javascript:test()">` and a code area called `<code id="testArea"></code>`

i am using this code to stringify and display the data in the code area:

    var formData = form2object('testForm');
    document.getElementById('testArea').innerHTML = JSON.stringify(formData, null, '\t');
    var value = JSON.stringify(formData, null, '\t');

what i want is to send this data to a json file.
i've been working on this  project : http://ridegrab.com/profile_old/ and if you press `Submit Query` button you will the the head of the page populate.

Also i want use this piece of script to send data:

        function authenticate(userName, password) {
        $.ajax
        ({
            type: "POST",
            //the url where you want to sent the userName and password to
			url: 'username.password@link to the server/update',
            dataType: 'json',
            async: false,
            //json object to sent to the authentication url
            data: '{"userName": "' + userName + '", "password" : "' + password + '"}',
            success: function () {
				
			alert("Thanks!"); 
            }
        })
    }

again, all i want is ti be able to send that json data to the server. my server is set up to `update or POST` the data in the right place.

thanks


Jquert posting jSon
===

same old, same old ... :)

i have a form called ` <form id="testForm" action="javascript:test()">` and a code area called `<code id="testArea"></code>`

i am using this code to stringify and display the data in the code area:

    var formData = form2object('testForm');
    document.getElementById('testArea').innerHTML = JSON.stringify(formData, null, '\t');
    var value = JSON.stringify(formData, null, '\t');

what i want is to send this data to a json file.
i've been working on this  project : http://ridegrab.com/profile_old/ and if you press `Submit Query` button you will the the head of the page populate.

Also i want use this piece of script to send data:

        function authenticate(userName, password) {
        $.ajax
        ({
            type: "POST",
            //the url where you want to sent the userName and password to
			url: 'username.password@link to the server/update',
            dataType: 'json',
            async: false,
            //json object to sent to the authentication url
            data: '{"userName": "' + userName + '", "password" : "' + password + '"}',
            success: function () {
				
			alert("Thanks!"); 
            }
        })
    }

again, all i want is ti be able to send that json data to the server. my server is set up to `update or POST` the data in the right place.

thanks

