PPR and af:InputFile Double Browse
705898Jun 16 2009 — edited Jun 18 2009Hi All,
Background: I have an application that uses PPR to upload a file and display the file's content in a textarea.
Problem: Performing consecuitive uploads causes a javascript error.
Upload 1) Uploads a file successfully,
Upload 2) results in a javascript error.
We think this may be a AJAX issue as debugging seems to suggest that the function _uixspu (from the PPR) is to blame.
Javascript inserted in webpage after Upload 2 by ADF:
var _pprUpdateMode=false;
function _uixspu(f,v,e,s,pt,p,o){
_pprUpdateMode=true;
if(!o)
o=new Object();
o.event=(e)?e:'update';
if(s)
o.source=s;
if(p){
o.partial='true';
if(pt)
o.partialTargets=pt;
_submitPartialChange(f,v,o);
}
else
submitForm(f,v,o);
}
The onclick action on the Upload Button:
uixspu('id3',1,0,'uploadButton',0,1,0);return false;
Any help would be great
Cheers