(11.12.2017, 11:15)Daniel. Wrote: I do it always in private browsing then you are sure all is fresh. Good practice is to clear browser cache when strange things start to happen.
Thanks! Reloading the browser did the trick. I had to do this even in private mode.
Another question: the addresses I use are boolean. Now when it is set to 1, the plan is shown. If I then go to another page on my visualization, and then the value returns to 0, the plan is shown again. Is there a way to avoid this?
So the plan should only show when the variable is set to 1 and not when it returns to 0.
Hi admin, I have some problems with this script.
I use boolen object, I changed value == 1 to value == true/false.
When I'm changing value from false to true, my visu page is switching.
But when I Send True once again nothing happens. to make it works I nedd to switch my object to false and then to true.
whats the reason of this behavour? (tested on 20170620 FW)
the second thing I need is the opposite task. I need to write some value to object when specific plan is Opened. could you help me?
Change line 16 with extra parameter to execute on same object value like this:
},true);
BR,
Erwin
Thanks, Erwin. what about my second question?
"the second thing I need is the opposite task. I need to write some value to object when specific plan is Opened. could you help me?"
is there a list of applicable custom classes (knx and not knx)?
eg. I would need to refresh the values of the objects contained in a plan or widget when it is displayed and I do not want to bore you with too many requests
Objects are always refreshed on changes so i don’t see why you need to do that..
There is no list of classnames and they have nothing to do with KNX ...
BR,
Erwin
sorry for not explaining better: when I open a widget containing objects, often the values of the objects (feeds) are not updated and I have to do a group reading - myobject:read() by clicking a button.
I would like to know if it is possible to read automatically when the page is opened. Thank you.
(11.10.2016, 09:59)buuuudzik Wrote: Here is some svg image and custom script which can be used for learning manipulating svg images by custom javascript. I used Inkscape for editing svg image(e.g. adding new elements).
2. Upload 'interactive.svg' to /Images/Backgrounds'.
3. You can also add some buttons which change +/-10% height.
Currently they should be created in this way:
For +10%: '6/0/54' which send 0 and 1
For -10%: '6/0/53' which send 0 and 1
4. Try manipulating this svg
Hello buuuudzik, and everyone,
I'm trying your script with svg but it's doesn't work, I think I failed to link svg to script, I don't understand this line :
var svg = $('object')[0]; // Choosing svg
Can you explain me how to choose svg please ?
04.03.2018, 21:14 (This post was last modified: 04.03.2018, 21:42 by buuuudzik.)
Code:
1
$('object')
was for selecting the container of your svg element but better way(because you probably have more than one svg image or object) is to add Additional class 'blind1' to this svg image in the visualisatiuon editior and select in this way:
Code:
1
$('.blind1 > object')
I've tested a minute ago and it seems to work but now I propose to generate HTML via Custom Javascript or create simple app for same task.
05.03.2018, 11:02 (This post was last modified: 06.03.2018, 07:04 by Alphaplasti.)
(05.03.2018, 08:13)buuuudzik Wrote:
(05.03.2018, 07:45)Alphaplasti Wrote: Thank you ! It work perfect, now i can learn about Js and svg manipulation !
Good luck, if you have some question please ask
Thanks sooo a last question about svg manipulation, How to change a transform function, like "transform="rotate(140, 24, 24)" of a svg ?
I tried to adapt Js embedded scrip from svg but It dont work in JS, I've make a mistake or it's not the same JS ? ( I'm a noob on JS..)
Thanks!
Edit: It's okay, all work, a little mistake in my script thanks !