gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Need to update jquery.form.js to version 3.50 to resolve old IE issue whit Ajax submit. #1093

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1. make a simple <s:form id="submitForm" action="myAction">
2. use <sj:submit id="sendButton" targets="divResult" value="Submit" />
3. use IE 8

What is the expected output? What do you see instead?
I expect that the form where submitted by ajax whit a post to myAction
The post arrive with no serialize parameter of the form due to a bug into the 
jquery.form.js plugin. I solved the problem by manual updating the library to 
the last version (3.50)

Which struts2 version?
2.3.16.1

Which struts2-jquery plugin version?
3.7.0

Please provide any additional information below.
Updating jquery.form.js (jquery.form.min.js) to the last version of the plugin, 
the 3.50, the problem is resolved.

Original issue reported on code.google.com by nicola.d...@gmail.com on 4 Apr 2014 at 12:53

GoogleCodeExporter commented 9 years ago
how to update jquery.form.js (jquery.form.min.js) to the last version of the 
plugin, the 3.50.thanks in advance

Original comment by abhilash...@gmail.com on 16 Apr 2014 at 3:39

GoogleCodeExporter commented 9 years ago
1) Download from here: http://malsup.com/jquery/form/#download the latest 
version of jquery.form.js and jquery.form.min.js.
2) Open with your prefered archiver the "struts2-jquery-plugin-3.7.0.jar"
3) Navigate to template\js\plugins\
4) Copy the newer files 
That's all. 
If you use Maven i suggest to create a temporary file in your (and your 
collaborators too) local repository with the patched jar:
mvn install:install-file 
-Dfile=/your/path/to/pathced/jar/struts2-jquery-plugin-3.7.0-PATCHED.jar 
-DgroupId=com.jgeppert.struts2.jquery -DartifactId=struts2-jquery-plugin 
-Dversion=3.7.0-PATCHED -Dpackaging=jar
And then go to your local maven repository (for example: 
/home/.m2/repository/com/jgeppert/struts2/jquery/struts2-jquery-plugin/) and 
copy the content of file
struts2-jquery-plugin-3.7.0.pom inside folder /3.7.0/ into the file 
struts2-jquery-plugin-3.7.0-PATCHED.pom inside the folder /3.7.0-PATCHED/
That's all!

Original comment by nicola.d...@gmail.com on 16 Apr 2014 at 3:54

GoogleCodeExporter commented 9 years ago
Thank you for the quick response, i did what you explained but still it doent 
work in IE8 but works fine in chrome adn FF.
This is what i did I downloaded jquery.form.js and jquery.form.min.js from the 
link you provided adn moved them to "struts2-jquery-plugin-3.7.0.jar". but no 
luck
BTW i am using ant as a build tool

thanks in advance

Original comment by abhilash...@gmail.com on 16 Apr 2014 at 4:15

GoogleCodeExporter commented 9 years ago
it is working when i add 
<sj:head loadFromGoogle="true"/>

anyways thank you for the assistance

Original comment by abhilash...@gmail.com on 16 Apr 2014 at 4:53

GoogleCodeExporter commented 9 years ago
Issue 1097 has been merged into this issue.

Original comment by johgep on 17 Apr 2014 at 6:58

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 17 Apr 2014 at 6:58

GoogleCodeExporter commented 9 years ago
I will integrate latest jquery-form plugin within the next days and start a new 
release 3.7.1.

Original comment by johgep on 17 Apr 2014 at 6:59

GoogleCodeExporter commented 9 years ago
Latest 3.7.1-SNAPSHOT includes latest jquery form plugin. Please try it out and 
give feedback if it solves this problem.

Original comment by johgep on 22 Apr 2014 at 6:34

GoogleCodeExporter commented 9 years ago
I tried and confirm that it works.

Original comment by nagy.romeo on 24 Apr 2014 at 9:35

GoogleCodeExporter commented 9 years ago
Thank you for the feedback. I will prepare next release within the next days.

Original comment by johgep on 24 Apr 2014 at 2:54

GoogleCodeExporter commented 9 years ago
Sorry for disturbing but can you tell me when the new version will be released? 
It is quite important to have this fix in my project. Thank you.

Original comment by nagy.romeo on 6 May 2014 at 6:15

GoogleCodeExporter commented 9 years ago
I will try to release new version this week. But I can't guaranty it. 

Original comment by johgep on 6 May 2014 at 1:46

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 13 May 2014 at 7:03

GoogleCodeExporter commented 9 years ago
Thanks a lot :)

Original comment by gripic...@gmail.com on 13 May 2014 at 7:06