I understand—this is some tricky stuff to get around some of Axure’s shortcomings. I’ve had to play around with it quite a bit to get stuff to work.
If you have an .rp file you could attach here or send me, and your real javascript references, I could try to get it to work for you.
The <meta name= " is in the block of code to be inserted… Look in my long code examples above, it is right at the end… the last 10 characters. Do you see where I highlighted your javascript declarations in yellow? It comes right after that.
So, just highlight all of the text in the gray box (in my previous post starting with 1"/><script and ending with meta name=" --Then paste it into your favorite editor, paste your external javascript references just before meta name=" , copy it all and paste it into the “User Scalable” text field in the Axure generator, as shown above.
Here is an example .rp file which calls an external javascript file from https://responsivevoice.org/
It adds text-to-speech to your website/prototype. To enable it, just add this:
<script src='https://code.responsivevoice.org/responsivevoice.js'></script>
To use it, open this hyperlink:
javascript:responsiveVoice.speak('Hello javascript!');
As in:
Responsive_Voice v3.rp (90.8 KB)
Look at the HTML generators in this file. There are “HTML 1”, “HTML JS (default)” and “HTML JS 2”. The “HTML” generator is the basic built-in one you get in every .rp file. “HTML JS” has code in the User Scalable field, which includes the reference to the responsivevoice.js script. If you preview or publish with this generator, and turn your speakers/headphones on, the prototype should work correctly and speak things out loud. If you publish with the plain “HTML” generator, the pages will load and work, but no voice will come out (unless the js is still cached in your browser.)
Now, the “HTML JS 2” generator has your dummy javascript references in it. Look at the end of the long line in the User Scalable field and you’ll find it.
Hope all this helps you out!
If you get this working, you could try declaring all your external js for all pages, then only making the calls you need for a specific page. Might have to rename some of your functions so they are all different, but seems doable.