Has anyone encountered an issue with using jquery.min.js in Flare 13 R3.
We use the breadcrumb and menu proxies in the master page but they are not displayed when we build the output. Madcap have confirmed that they cannot ensure that the jquery.min.js. gets run at a time that doesn’t interfere with the madcap.js .
Is there a way we can control when the scripts are run? I have changed the order of the scripts in the head of the master page but no luck so far.
Look forward to hearing from you.
Kind regards
Michelle
jquery.min.js interfering with madcap.js in Flare 13 R3
Re: jquery.min.js interfering with madcap.js in Flare 13 R3
What scripts are in the head of your master page?mddent01 wrote:Is there a way we can control when the scripts are run? I have changed the order of the scripts in the head of the master page but no luck so far.
If you're adding a link to your own version of jquery in the master page, then it probably isn't going to work.
Flare already includes jquery (and a number of other scripts) when it builds the output - but you can't see that anywhere in the source files.
And AFAIK, you can't change the order of any of these scripts in the output.
Re: jquery.min.js interfering with madcap.js in Flare 13 R3
We use quite a few JS files as we have Online Help that sits in our broader company website.
I don't understand why the actual Madcap proxies are not displaying as expected.
I don't understand why the actual Madcap proxies are not displaying as expected.
Re: jquery.min.js interfering with madcap.js in Flare 13 R3
Where are the errors? Is anything reported in the console log in the browser?mddent01 wrote:We use quite a few JS files as we have Online Help that sits in our broader company website.
I don't understand why the actual Madcap proxies are not displaying as expected.
Did it work previously, and if so what have you changed?
I'd suggest testing to see if it works without your JS files - e.g. comment out all the JS links in your master page.
If the MadCap proxies work ok without your extra JS files, then you know the problem is with the JS files that you've added.
Re: jquery.min.js interfering with madcap.js in Flare 13 R3
I am having the exact same problem. Support is telling me that the only way to get the breadcrumb back is to remove all my scripts. I am waiting to confirm that they mean the jquery scripts because they didn't say, but I am assuming they mean the jquery scripts.
It worked in 2017 just fine. Now, the breadcrumbs won't appear in r2 or r3 without removing all the jquery I spend weeks building.
Does jQuery not work in Flare anymore? Has anyone solved this?
It worked in 2017 just fine. Now, the breadcrumbs won't appear in r2 or r3 without removing all the jquery I spend weeks building.
Does jQuery not work in Flare anymore? Has anyone solved this?
Jessica N.
Certified MadCap Advanced Developer for Flare
Certified MadCap Advanced Developer for Flare
Re: jquery.min.js interfering with madcap.js in Flare 13 R3
jQuery is still included in the Flare output, and still works fine.Jess77 wrote:Does jQuery not work in Flare anymore? Has anyone solved this?
Same suggestions as before...
Dave Lee wrote:Where are the errors? Is anything reported in the console log in the browser?
Did it work previously, and if so what have you changed?
I'd suggest testing to see if it works without your JS files - e.g. comment out all the JS links in your master page.
If the MadCap proxies work ok without your extra JS files, then you know the problem is with the JS files that you've added.
Re: jquery.min.js interfering with madcap.js in Flare 13 R3
Checking the scripts - The breadcrumb trail does work when the scripts are removed, so it must be the scripts. However, I haven't changed the scripts at all from when I added them in Flare 2017... and they worked in Flare 2017. I published right before I upgraded.
Checking the console in the browser - The console in the browser just says that there is no content in the Div for the breadcrumb trail.
Checking the build log - There is one warning (but no error) that says "The js ID has been used more than once in a document."
I'm using a Plugins folder I added to the Resources folder, so the script looks like this: "../Plugins/jquery-latest.js". Do I need to change that script?
Checking the console in the browser - The console in the browser just says that there is no content in the Div for the breadcrumb trail.
Checking the build log - There is one warning (but no error) that says "The js ID has been used more than once in a document."
I'm using a Plugins folder I added to the Resources folder, so the script looks like this: "../Plugins/jquery-latest.js". Do I need to change that script?
Jessica N.
Certified MadCap Advanced Developer for Flare
Certified MadCap Advanced Developer for Flare
Re: jquery.min.js interfering with madcap.js in Flare 13 R3
OK, a few things here:
If so, then in 2017r3 the breadcrumb links are no longer included at build time (in the HTML source), but are loaded dynamically by MadCap's scripts at run time. This means any scripts you run that affect the breadcrumb proxy (or menu proxy) will have to wait until the MadCap scripts have populated the links in the proxies. You do this by waiting for the the "loaded" event, before you run your own script.
See kb article: http://kb.madcapsoftware.com/Content/Mi ... _Menus.htm
The examples are for the menu, but presumably the same technique can be used for breadcrumbs - if you're not sure, ask MadCap support.
So does your script do something to/with the breadcrumbs?Jess77 wrote:Checking the console in the browser - The console in the browser just says that there is no content in the Div for the breadcrumb trail.
If so, then in 2017r3 the breadcrumb links are no longer included at build time (in the HTML source), but are loaded dynamically by MadCap's scripts at run time. This means any scripts you run that affect the breadcrumb proxy (or menu proxy) will have to wait until the MadCap scripts have populated the links in the proxies. You do this by waiting for the the "loaded" event, before you run your own script.
See kb article: http://kb.madcapsoftware.com/Content/Mi ... _Menus.htm
The examples are for the menu, but presumably the same technique can be used for breadcrumbs - if you're not sure, ask MadCap support.
Flare already includes its own copy of jQuery in the output, so that means you're now loading two copies (and different versions) of jQuery. Do not add your own version of jQuery.Jess77 wrote:I'm using a Plugins folder I added to the Resources folder, so the script looks like this: "../Plugins/jquery-latest.js". Do I need to change that script?