This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes File Upload with jQuery 1.7.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "File Upload with jQuery 1.7.2" Watch "File Upload with jQuery 1.7.2" New topic

File Upload with jQuery 1.7.2

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1559
In my web app I created the folowing page used to upload files. This code works fine when jQuery 1.3 is used in app but I get a js error when using jQuery 1.7.2. The file uploads ok but for some reason the call back causes the error I believe.

I am useing jQuery.form.js version 2.43

The error:

Object doesn't support this property or method

Line 339 Char 5

Code: 0

My page code(I realize the rendered code is preferable but I cannot figure out how to get the renderd page source when embeded div tags are used. All I get is the source of index page):

In my servlet I have:

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Well jQuery upgrade from 1.3 had breaking changes with attr and prop. There should be other things that changed too.

I agree. Here's the link:
subject: File Upload with jQuery 1.7.2
It's not a secret anymore!