Search Results

Search found 1 results on 1 pages for 'purplefish32'.

Page 1/1 | 1 

  • Im having trouble getting SWFUplader to play ball in my codeigniter application

    - by Purplefish32
    I have this peice of code in my handler.js, I'm getting the correct serverData value throught ajax, ( Well it's echoed correctly un the alert box) but no matter what, i just cant seem to enter either of the 'if' blocks. I have double checked the type and it is a string. Something is definetly funky. function uploadSuccess(file, serverData) { try { var progress = new FileProgress(file, this.customSettings.progressTarget); alert(serverData); if(serverData == "uploadSuccess") { progress.setComplete(); progress.setStatus("Completed"); progress.toggleCancel(false); } if(serverData == "uploadError") { progress.setError(); progress.toggleCancel(false); progress.setStatus("Error: X"); progress.toggleCancel(false); } } catch (ex) { this.debug(ex); } }

    Read the article

1