Just noticed that the "LastVersion" file in the profile folder, as the name suggests, gets updated when the profile is opened with (another version of) BAS e.g. from 114.0.5735.91 to 117.0.5938.63. Therefore it's not suitable for our need to determine the original version of which a profile was created.
But at least can be said what was the latest BAS version that worked with it ;)
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) });
