Problem with zEmbedded

asked 2024-03-20 19:18:33 +0800

andij62 gravatar image andij62
315 1 7

updated 2024-03-20 19:53:03 +0800

Hi all,

I have 2 widgets that are integrated into an external site. In a widget I query the onBookmarkChange event. Sometimes it happens that when the page is refreshed, the event does not appear in this widget. If I remove the other widget from the page everything works as it should.

Is there a solution?

Regards Andi

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2024-03-22 15:55:43 +0800

MDuchemin gravatar image MDuchemin
2560 1 6
ZK Team

Hey there,

To clarify the structure: You have a non-zk page hosting 2 different ZK inserts using zEmbedded.load on 2 different host elements, correct? (not one insert containing 2 ZK widgets in the same host element)

Do both of them listen to the bookmark change event? or only one of them?

It's possible that the event is being overridden by the 2nd embedded insert. Which ZK version are you using?

link publish delete flag offensive edit

answered 2024-03-22 16:54:40 +0800

andij62 gravatar image andij62
315 1 7

updated 2024-03-22 17:03:17 +0800

Hey there,

yes, the assumption is correct and only 1 widget listens to the bookmark change event. I'm using version 9.6.5 EE.

However, I load the embedded.js of both widgets from the same host. Is that perhaps the problem?


link publish delete flag offensive edit


I've tested a very simple case with 2 services on different URLs, but I can't reproduce the issue. the embedded.js loader shouldn't be at issue here, since it will just load the services. Do you have option of making runnable sample? would be easier than trying to guess what's failing the event

MDuchemin ( 2024-03-22 17:49:01 +0800 )edit

I sent a link and login details to [email protected] so you can take a look.

andij62 ( 2024-03-22 22:52:49 +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

1 follower



Asked: 2024-03-20 19:18:33 +0800

Seen: 8 times

Last updated: Mar 22

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