Hi Everyone.
I tried a support ticket for this problem, but have had no response in over a week. Also tried emailing Steve Raubenstine directly, but also no response. Seems we are on our own with NOF now..
Anyway, my problem is:
I'm having problems making my Javascript scripted actions work on all platforms. Specifically some Mac platforms. A test computer that I have part-time access to is a 2011 Macbook Pro, running 'macOS High Sierra 10.13.3' It has a problem in both Safari and Chrome.
The problem appears to be restricted to scripted actions that I create using actions like 'On page loaded' or 'On clicked' in the NOF editor. Actions that I code directly into the HTML, such as by adding tag 'onclick="process_click()"' into the FormsRadioButton HTML work just fine, but if I use an 'On clicked' action through NOF the whole button group stops working completely - as in clicking on a button doesn't even select it, let alone run the associated script.
If you look at this test site: http://www.brishost.com.au/testsite2 you will see it all works fine in a Windows or Android browser. The line 'Javascript is enabled' is written using an inline script in the layout HTML. The First edit field box is filled with 'Javascript is WORKING fine!' in an 'On page loaded' action script. In the radio button section, Option 1 and Option 2 are a group, and have inline scripts that fill in the associated 'Selected:' edit field box. Option 3 and Option 4 have NOF 'On clicked' actions to fill in their edit field box. All works fine on Windows or Android.
But on the Macbook, I get 'Javascript is enabled' but 'Javascript is NOT WORKING very well at all.' in the edit box (that's the HTML initialized value). The radio buttons for Option 1 and Option 2 still work perfectly and fill in their 'Selected:' edit box, but The Option 3 and Option 4 buttons do nothing and the Option 4 button can't even be selected. So the 'On page loaded' script is doing nothing, and the 'On clicked' scripts have managed to break even basic button group functionality!
Interestingly, if I tell Safari on the Macbook to report its user agent as 'Firefox on Windows', everything works fine again.
The Javascript console on Safari shows up an error: "TypeError: document.all.tags is not a function. (in 'document.all.tags("A")', 'document.all.tags' is undefined)". I don't get this error with the user agent spoofed.
On an older Macbook, running Snow Leopard, Safari works with the NOF generated Javascript. But Chrome (which is updated to the current version) on the same Macbook fails in the same way as on the newer Macbook. So it seems there has been an update that has made the 'Mac specific' NOF-generated Javascript incompatible with newer Mac's.
It seems to me that the problem is in how the NOF script wrapper is modifying its actions based on the user agent reported. The above error seems to be in file script.js, which is very hard to read because it's compressed!
I then asked if there was a new, more compatible version of script.js they could send me, but as I said I got no response.
Has anyone solved this compatibility problem with newer Mac's? Can you send me an updated script.js to fix it?
Thanks,
Adrian.