Using a JavaScript Framework with Flare

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets

Using a JavaScript Framework with Flare

Postby headphone_jack on Fri Jun 08, 2018 6:59 am

Is it possible to use a JavaScript framework within Flare? Specifically React, Angular, or VueJS. I am not looking at using jQuery.
headphone_jack
Propeller Head
 
Posts: 16
Joined: Fri Dec 22, 2017 1:49 am

Re: Using a JavaScript Framework with Flare

Postby Dave Lee on Fri Jun 08, 2018 7:10 am

headphone_jack wrote:Is it possible to use a JavaScript framework within Flare? Specifically React, Angular, or VueJS. I am not looking at using jQuery.


Flare HTML5 output uses jQuery, parts of Foundation, and some custom MadCap scripts.

So I guess the question is whether they would conflict with the frameworks that you mention?
Dave Lee
Master Propellus Maximus
 
Posts: 5365
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Using a JavaScript Framework with Flare

Postby headphone_jack on Fri Jun 08, 2018 7:22 am

Dave Lee wrote:So I guess the question is whether they would conflict with the frameworks that you mention?


Thanks for your quick reply Dave.

Looking at the markup, there's a whopping 11 JS files that Flare kicks out. :shock: :shock: :shock: After a bit of playing around, I've found that require.min.js and require.config.js are causing VueJS not to run.

So I think I've answered my own question. Technically yes Flare might work with a JS framework, but it'd require a massive amount of hacking around and post-build tasks.
headphone_jack
Propeller Head
 
Posts: 16
Joined: Fri Dec 22, 2017 1:49 am

Re: Using a JavaScript Framework with Flare

Postby Dave Lee on Fri Jun 08, 2018 7:36 am

A long long time ago, I used the datatables plugin, and had to load that via RequireJS.
I got it working, although I can't say I ever got to grips with RequireJS.
Anyway, this post might give you some pointers (on loading a library via the require config):
viewtopic.php?f=9&t=19291#p101300
Dave Lee
Master Propellus Maximus
 
Posts: 5365
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Using a JavaScript Framework with Flare

Postby headphone_jack on Wed Jun 13, 2018 1:33 am

I'm going to see if I can find a way to remove Require.js completely, or at least have it load after Vue. Thanks for your help Dave.
headphone_jack
Propeller Head
 
Posts: 16
Joined: Fri Dec 22, 2017 1:49 am

Re: Using a JavaScript Framework with Flare

Postby AlexFox on Fri Jun 15, 2018 2:01 am

I believe Require is bundled with Flare as most things conflict with Flare's foundational JS if not consumed by Require instead. But good luck!
AlexFox
Sr. Propeller Head
 
Posts: 117
Joined: Thu Oct 19, 2017 1:56 am

Re: Using a JavaScript Framework with Flare

Postby alihassan on Tue Jun 19, 2018 7:15 am

@headphone_jack or anybody

Is there any way to integrate the HTML, CSS, JS output of flare into an Angular SPA?
alihassan
Jr. Propeller Head
 
Posts: 1
Joined: Mon Jun 18, 2018 9:00 am

Re: Using a JavaScript Framework with Flare

Postby headphone_jack on Mon Jul 16, 2018 8:14 am

alihassan wrote:@headphone_jack or anybody

Is there any way to integrate the HTML, CSS, JS output of flare into an Angular SPA?


Sorry for the late reply Alihassan. I'm not aware of any way to integrate Angular into Flare unfortunately. Flare's web side is incredibly outdated, and struggles to keep up with the industry.
headphone_jack
Propeller Head
 
Posts: 16
Joined: Fri Dec 22, 2017 1:49 am


Return to Web-based Outputs

Who is online

Users browsing this forum: No registered users and 12 guests