I have (had?) this Greasemonkey script that uses quite a bit of jQuery to set some defaults in a web form. The web form is a from an HP Wireless network controller, so I don't believe I can modify the HTML being generated.
The script was working just fine, until a Firefox update came along. Now, all jQuery click() and dblclick() calls are not working. They throw an exception:
Permission denied to access property 'length'
The HTML that I'm trying to "click" is:
<input id="plan_selection-1" type="radio" onclick="UpdateSectionStates();" value="valid_time" name="plan_selection">
I am using the follwoing jQuery to click:
$('#plan_selection-1').trigger("click");
I have tried a few different things (using .click(), which I gather is the same as .trigger("click"), sending an actual mouse event as described on jQuery click() not working in a Greasemonkey/Tampermonkey script, however this failed, as dispatchEvent() "is not a function".
This had been working up until a few weeks ago, but I haven't gone back to figure what exact version of FF last worked on.
Any direction or help is appreciated.
document.getElementById("plan_selection-1").click();.click()and.dblclick()calls that are not working or can jQuery not access the property of the object at all? What happens when you tryconsole.log($('#plan_selection-1').length);?