-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I'm trying to put a file into an iframe
by using <iframe width="100%" vflex="true" src="@load(vm.content)" />
.
When I put some static source like src="http://www.axmag.com/download/pdfurl-guide.pdf"
the content is loaded, but not when I do something like content="http://www.axmag.com/download/pdfurl-guide.pdf"
.
Does anyone know why? My method has the @NotifyChange("content")
annotation.
I intend to use iframe
to show some reports but I'm facing this situation.
Thx for the fiddle.
Well, under ZK 8+(because you don't add the bindcomposer, what is ZK 8 or higher), it does work as long you specify your viewmodel attribute correct :
viewModel and not viewmodel.
Here is the updated fiddle.
Chill.
Asked: 2018-03-18 09:25:25 +0800
Seen: 23 times
Last updated: Mar 19 '18
MVVM Notifychange works only along with @Command ?
Notify Form of property change
ZK iframe browser history problem
Retrieving content from editable PDF in Iframe
Iframe content disappears when first loading page
PDF viewer with mobile devices ZK
Page becomes blank after detaching a modal window having an iframe loaded with PDF in IE 10
iframe property for sandbox - https
The reference to entity "pin" must end with the ';' delimiter.
why you try the
chillworld ( 2018-03-18 14:46:53 +0800 )editcontent
attribute as thesrc
attribute works? maybe you need to show your code, or create a fiddle of it. btw, @NotifyChange only works on Commands or setters, try usingBindUtils.postNotifyChange
to be sure you that the notifyChange works.Hi. This is the fiddle I've created: http://zkfiddle.org/sample/3un7l4r/5-zk-iframe. Inside
psinalberth ( 2018-03-18 17:10:20 +0800 )editinit()
there are some other properties, and they are loaded with no problem and I can see its values on.zul
, but not this one.