Hi, I’m new to the program but loving it. It’s fabulous software. Congrats!!
Thing is I have a script running that changes an image in the ui based on a combobox selection but I’m having two problems, one of which is intermittent. So I don’t know if it’s a bug or not.
The intermittent problem is with the js onchange handler for the combobox. The function is setKeyboard(this.value) that sends the selected list item value to the javascript setKeyboard(level) function. This often comes through as undefined (according to the alert(level) I have at the beginning of the function). Actually, now it’s always undefined but was working initially so I’m stumped. How do I fix this?
The second problem is when changing the image I’m referencing the image by it’s name in the function and adding the name “keyboard” to the image in the source (as I can’t define it in the program). So the function looks like this.
function setKeyboard(level){
if(level==”easy”) {keyboard.src=”myimage.png”} else
if(level==”hard”) {keyboard.src=”myotherimage.png”}
}
This was working successfully when the combobox value was being registered by the function.
The trouble though is it won’t update any other changes I make after manually defining the name in the code. I’m asked to overwrite my changes when testing or no new changes can be tested. That’s a bit frustrating but maybe I’m doing it wrong. Is there a way I can name the image and test updates without being prompted like this? Or another solution?
Thanks
Steve