Javascript.getCurrent().execute modify DOM

Hi,

I am trying to modify inner content via JavaScript.getCurrent().execute(…); However, I cannot make this running. Is it forbidden or am I am doing something wrong? I am calling this method when comboBox value has changed.

Adam

Hi,

I don’t think there should be anything preventing it. Is your application inside an IFrame perhaps?

-Olli

What exactly are you trying to achieve? Can you somehow show the code?

Here’s one example on how to inject head elements via JavaScript in Vaadin:



See the full sample on vaadinfiddle.com