0

Script error when doing stuff in background thread

asked 2013-08-27 10:39:17 +0800

aznan gravatar image aznan
15

I have a grid that is displaying groups of items and images of those items. Since I need to do some processing before showing the images, I have put that in a background thread as described in this blog: http://jawsy.fi/blog/2012/10/20/advanced-zk-asynchronous-ui-updates-and-background-processing-part-2/ (Asynchronous UI updates and background processing)

When the user clicks an item, a window comes up showing some details and another image, which is also loaded in a background thread. The first time this works fine, but if the page is reloaded and an item is clicked I get a script error: "Failed to process script zk.cpsp is undefined (TypeError)".

The code in http://zkfiddle.org/sample/1cegh8e/2-Script-error-demo (this ZK Fiddle) will make the problem appear, but if you run it directly in Fiddle, then you will get the error "Failed to process script zkex is not defined (ReferenceError)" for some reason instead.

Can anyone tell me why this is happening? Thanks!

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-08-30 08:41:38 +0800

RaymondChao gravatar image RaymondChao
386 1 4
ZK Team

Hi aznan, We have confirmed it's a bug and fixed it. http://tracker.zkoss.org/browse/ZK-1913 Please wait for the fixed freshly version release.

link publish delete flag offensive edit

Comments

Please download the latest build version zk-6.5.4-FL-2013-09-02 and try again, thank you.

RaymondChao ( 2013-09-03 02:10:46 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-08-27 10:39:17 +0800

Seen: 18 times

Last updated: Aug 30 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More