Re: OFBIZ Upload with Ajax

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ Upload with Ajax

Malin Nicolas
Hi mustapha,

This issue works only on trunk and maybe on 11.04. But If have jQuery on
9.04, serialize() not works with multi-part form.

When I test the plugin, he works only on define a div that contains all
form field :
  jQuery("#fields_" + form).upload(jQuery("#" + form).attr("action"),
function(data) {updateFunction(data)}, 'json');

for <form >
<div id="fields_form">
<input...
<input...
<input...
</div>
</form>

Nicolas


Le 27/10/2011 16:58, mustapha senhaji a écrit :

> Hello Nicolas,
>
> I tried to implement your patch in OFBIZ 9.4. Everything went well
> expect one thing. I didn't find the file in the DataResource table.
>
> jQuery("#" + form).upload(
>      jQuery("#" + form).attr("action"),
>      jQuery("#" + form).serialize() ,
>      function(data) {
>        updateFunction(data)
>      },
>      'json'
>   );
> I think that the file is not passed due to   jQuery("#" +
> form).serialize() that dosn't pass the uploaded file. Would you like
> to check if it realy save the file the database


--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/