-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am uploading image files (using zk 5.0.9). After upload I refresh the ui to show thumbnails of uploaded images.
But sometimes after upload is done, I see the following error in a popup
"The server is temporarily out of service.
Would you like to try again?
(illegal character (SyntaxError))"
There is not exception thrown, I dont have any clue what is causing the problem.
I have logs enabled at every setup, flow seems to be working fine, but this error is coming randomly.
here is my upload tag
<button sclass="attachBtn" tooltiptext="Basic single file uploader"
upload="true" label="Upload image" onUpload=
"platformoptionsFlagsImageComposerWin$composer.uploadOptionFlagImage(event.media);"/>
will appreciate anyhelp
Regards
Ajaidka
I found the solution, I don't know how it is working right now, but it has fixed the issue.
In my composer I was uploading in method "uploadOptionFlagImage(Media media).
But now I moved my uploading code in another method "onImageFileUpload" and invoked it in "uploadOptionFlagImage(Media media) using
" Events.echoEvent("onImageFileUpload", this.self, null); "
This solved the issue, I guess Events.echoEvent triggers another event thread, and just ignored/skipped the error that I was facing previously.
Any thoughts???
Asked: 2012-03-20 15:40:03 +0800
Seen: 467 times
Last updated: Mar 27 '12
ZK studio and eclipse outline problem
ZK Package configuration problem
Eclipse Autocomplete not working in ZUL files...
Syntax Error mark ... help me!
Manual Installation of ZK Studio
Can't see button text whilst running simple demo
Adding Vbox to Center layout in Java