@Fox The first place I noticed the problem was when I added a visual to the interface. I added a text link to the interface from the 'textlink' section in the open blocks and inserted an image into it. My aim was to have no text inside and only redirect to a link when the image is clicked. However, no matter how much I removed the predefined "New Link" text, whenever I made an addition or deletion to the interface, it would reappear. To solve this issue, I set the font-size of the text link to 0 using CSS, which prevented the "New Link" text from appearing. The problem I'm talking about is probably similar to what I experienced with the text link. The default values assigned by the system, even if you change them, revert back to the values defined by the system when something new is added to the interface or when a setting is changed (for example, background color or deleting a button). Currently, to overcome this issue, I am constantly keeping a backup of the HTML. Whenever I make a new change, I copy the content from the backup, and this is how I'm trying to deal with it, but it's clear there is a problem. Hopefully, it will be resolved soon.
Get element attribute from custom interface
-
@darkstone said in Get element attribute from custom interface:
Who can I get an element attribute on my custom interface?
I tried this solution but didn't workAny solution?
thanksUse quotation marks:
alert("[[PROJECT_PATH]]") -
@darkstone said in Get element attribute from custom interface:
@fox i mean i need to get $('element').val() and store it on a variable that can i used inside BAS
Code for the "Run javascript in web interface" action:
Api.SetGlobalVariable("GLOBALVARIABLENAME", $('element').val())
It is better to hang the handler on this element so that when it is changed, it writes the result to a global variable. In this case, the global variable will always contain relevant information:
$("#element").change(function() { Api.SetGlobalVariable("GLOBALVARIABLENAME",this.value) });
