0

Javascript errors after Listbox.selectAll()

asked 2006-03-22 03:25:46 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3643599

By: andiklein

I've stumbled across a little bug(?).

When I call a multiple Listbox's selectAll() method, the code reacts as it should by selecting all Listitems in the box.
But unfortunatelly both IE and FF come up with a Javascript Debug Frame stating the following message:

Failed to process setAttr
this.setSelectedId is not a function
_pc3
selectAll


Also FF's JavaScript console reports:

Error: this.setSelectedId is not a function Source File: http://localhost:8080/ZKTest/zkau/web/_zverG/js/zul/html/sel.js
Line: 662

Indeed there is a call for this.setSelectedId(_5b.length?_5b[0].id:null);
in sel.js
It is the only call for setSelectedID(), all other occurences are for _setSelectedId

Is that maybe it?? If so, where could i fix this?

Also the console tells me that "d has no properties". Is that to do with Debug settings? What's to be done here?

Thanks for this great tool. I love ZK, it really rocks.

Andi

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2006-03-22 04:50:30 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3643675

By: andiklein

I've checked out sel.js in zul.jar->web.js.zul.html and changed setSelectedId() to _setSelectedId().
And yes, the Javascript Error is history.
Mighty step for a n00b like me, but I hope this was in fact just a typo. In that case could you please fix sel.js in the next build?

Now I gotta follow that "d has no properties" lead.

link publish delete flag offensive edit

answered 2006-03-22 06:37:41 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3643859

By: tomyeh

Thanks but please post this bug to Bugs such that other developers could know what have been solved.

link publish delete flag offensive edit

answered 2006-03-22 07:36:40 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3643902

By: tomyeh

It will be ready in the following release.

http://sourceforge.net/tracker/index.php

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: 2006-03-22 03:25:46 +0800

Seen: 615 times

Last updated: Mar 22 '06

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