0

Javascript error with fileupload

asked 2010-04-27 01:08:11 +0800

enixser gravatar image enixser
185 3

Hi,

I tried the fileupload functionality in a very similar way as shown in the demo. I used FF 3.6.3. I reduced the code to this snippet:

<zk>
<button label="Upload" upload="true">
<attribute name="onUpload">alert("Hello");</attribute>
</button>
</zk>

When I paste this into the demo everything works fine. But when I call it from within my application I get 3 Javascript errors:

Error: x is undefined
Source: http://localhost:8080/efgapp/zkau/web/a597251f/js/zk.wpd
Line: 6

Error: x is undefined
Source: http://localhost:8080/efgapp/zkau/web/a597251f/js/zk.wpd
Line: 6

Error: Syntax Error
Source: http://localhost:8080/efgapp/zkau/upload
Linee: 1, Spalte: 1
Source code:
100,940

Any idea what might be the problem?

Best regards,
Ralf.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-04-27 01:14:02 +0800

enixser gravatar image enixser
185 3

I tried it in IE8 and there I get this error:

Message: 'z_vp' is null or not an object
Line: 6
Char: 12157
Code: 0
URI: http://localhost:8080/efgapp/zkau/web/a597251f/js/zk.wpd

link publish delete flag offensive edit

answered 2010-04-27 01:29:40 +0800

enixser gravatar image enixser
185 3

Sorry, I forgot to say that the error occurs during the onUpload event.

The dialog opens, I select an image and when I then click the Open button the error occurs.

link publish delete flag offensive edit

answered 2010-04-30 12:55:34 +0800

iantsai gravatar image iantsai
2755 1

your project is jeopardized, you might miss jars or put incompatible versions of zk in one project.

link publish delete flag offensive edit

answered 2011-04-28 06:41:30 +0800

kk gravatar image kk
15

enixser

Did you solve the problem ?

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2010-04-27 01:08:11 +0800

Seen: 549 times

Last updated: Apr 28 '11

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