Menu

#12 Demo and source code may not match

open
nobody
None
5
2012-04-28
2012-04-28
Anonymous
No

I'm using Java not PHP so to get the example html I did a view source from my browser and saved it. Using the saved source required the following changes:
The demo calls s.ajax_post with parameters applet, "upload.php", "screenshot", "screenshot.jpg"
I had to change this parameter list to "CommonsFileUpload", applet.getEncodedString(), "screenshot", "screenshot.png"
The significant change being the order of the first two parameters and not not passing the applet itself but rather the Base64 encoded string.
Further, Supa.js isArray doesn't work though I see in the download it has changed. I fixed with Array.isArray but now see the download has other code.
Anyway, got it working and appreciate that SUPA is available.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB