Quote from fkapnist on January 24, 2023, 5:55 pmHi,
I think I found a mistake?
in the online Help File
https://webhelp.visualneo.com/Objects.html
SetObjectAttribute is described with an example...
But the example is:
Example: SetObjectStyle "Image1" "src" "./img/imagefile.jpg"
I think it should not say SetObjectStyle there, because "src" is not even listed as a property of Style.
That particular action concerns ObjectAttribute by the way, not ObjectStyle.
Anyway, I tried to copy and paste the above example but it does not work...
How can I change or reset the image source-file in a container?
Thanks,
.
Hi,
I think I found a mistake?
in the online Help File
https://webhelp.visualneo.com/Objects.html
SetObjectAttribute is described with an example...
But the example is:
Example: SetObjectStyle "Image1" "src" "./img/imagefile.jpg"
I think it should not say SetObjectStyle there, because "src" is not even listed as a property of Style.
That particular action concerns ObjectAttribute by the way, not ObjectStyle.
Anyway, I tried to copy and paste the above example but it does not work...
How can I change or reset the image source-file in a container?
Thanks,
.
Quote from Gaev on January 25, 2023, 1:03 am@fkapnist
How can I change or reset the image source-file in a container?
This worked for me ...
SetObjectAttribute "myLogo" "src" "c:/gk/crab.png"... where myLogo is an Image object (not a Container).
How can I change or reset the image source-file in a container?
Did you mean Image object or a Container object with some custom html ?
@fkapnist
How can I change or reset the image source-file in a container?
This worked for me ...
SetObjectAttribute "myLogo" "src" "c:/gk/crab.png"
... where myLogo is an Image object (not a Container).
How can I change or reset the image source-file in a container?
Did you mean Image object or a Container object with some custom html ?
Quote from fkapnist on January 25, 2023, 11:53 amQuote from Gaev on January 25, 2023, 1:03 am@fkapnist
How can I change or reset the image source-file in a container?
This worked for me ...
Plain textCopy to clipboardOpen code in new windowEnlighterJS 3 Syntax HighlighterSetObjectAttribute "myLogo" "src" "c:/gk/crab.png"SetObjectAttribute "myLogo" "src" "c:/gk/crab.png"SetObjectAttribute "myLogo" "src" "c:/gk/crab.png"... where myLogo is an Image object (not a Container).
How can I change or reset the image source-file in a container?
Did you mean Image object or a Container object with some custom html ?
Yes, this works for an image object:
SetObjectAttribute "Image1" "src" [myImage]SetObjectStyle is a mistake in the help files.
Thanks,
.
Quote from Gaev on January 25, 2023, 1:03 am@fkapnist
How can I change or reset the image source-file in a container?
This worked for me ...
Plain textCopy to clipboardOpen code in new windowEnlighterJS 3 Syntax HighlighterSetObjectAttribute "myLogo" "src" "c:/gk/crab.png"SetObjectAttribute "myLogo" "src" "c:/gk/crab.png"SetObjectAttribute "myLogo" "src" "c:/gk/crab.png"... where myLogo is an Image object (not a Container).
How can I change or reset the image source-file in a container?
Did you mean Image object or a Container object with some custom html ?
Yes, this works for an image object:
SetObjectAttribute "Image1" "src" [myImage]
SetObjectStyle is a mistake in the help files.
Thanks,
.
Quote from luishp on January 25, 2023, 7:29 pm@fkapnist thank you, I will fix the mistake as soon as possible.
@fkapnist thank you, I will fix the mistake as soon as possible.