jquery form plugin

I dont understand how does jquery form plugin is different than html form ?

here is the jquery form plugin
http://malsup.github.com/jquery.form.js

Please comment.
cofactorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
Hi,
as you can see on the examples page(s)
http://malsup.com/jquery/form/#tab4
the plugin offers some nice add-ons when it comes to asynchronous form posts and return callbacks as well as handling JSON responses.
Of course, you could also code everything in standard HTML and JavaScript or use the jQuery possibilities - but it is more manual coding work :-)
HTH
Rainer
0
cofactorAuthor Commented:
I am still confused. I am looking at this code

Jquery  file upload

http://www.simplecodestuffs.com/file-upload-with-progress-bar-using-jquery-in-servlet/

In this example , jquery form plugin has been used.

I have a  doubts in this regard.......How does the file upload progress % is pulled from server ?

I see the code ..
uploadProgress : function(event, position, total, percentComplete) {
		$("#progressbar").width(percentComplete + '%');
		$("#percent").html(percentComplete + '%');

		// change message text and % to red after 50%
		if (percentComplete > 50) {
			$("#message").html("<font color='red'>File Upload is in progress .. </font>");
		}
	}

Open in new window



I don't understand how the file upload progress  percentComplete  is pulled from server . Is it dynamic ?  I am stuck at this part. Could you please explain this part.
0
Rainer JeschorCommented:
Hi,
this should not be pulled from the server but from the client through the XMLHttpRequest  object.
From the example page:
Browsers that support the XMLHttpRequest Level 2 will be able to upload files seamlessly and even get progress updates as the upload proceeds.
And the plugins ajaxForm function has the callback option/function uploadProgress which is then called passing the current progress values, when you can then control how this info is visualized on the page.

HTH
Rainer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cofactorAuthor Commented:
OK

But in this code ...

uploadProgress : function(event, position, total, percentComplete) {

Open in new window


who is providing value of percentComplete here ?  

also what is  position, total  here ?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.