Has anyone had any luck grabbing/utilizing the jQuery object for a page that has it loaded?
AutoIt Example:
_FFCmd("jQuery('#some_id').val()") <-- This would typically return a String with the value of the selected element.
I've also tried: _FFCmd("jQuery('#some_id').val()", Default, 0) and _FFCmd("jQuery('#some_id').val()", Default, 1)
I know it's redundant, but here are 2 JavaScript examples of getting and setting the value using jQuery:
JavaScript Example:
var $ = jQuery;
// Getting the value
$('#some_id').val(); // Gets the value of the element with id="some_id"
// Setting the value
$('#some_id').val('Hello World'); // Sets the value of the element with id="some_id"
...for even more redundancy...here is a bookmarklet that alerts the value in the browser:
Bookmarklet Example:
javascript:alert(jQuery('#some_id').val());
I think it's a scoping issue, but I'm not quite sure...I can run a bookmarklet with the same code and get the value returned, but for some reason have never been able to touch the jQuery object from within ff.au3.
I have tried many variations of the _FFCmd function but just can't seem to grab it. If you have a working solution (aka no guesses) please let me know.
Thanks!