I want to user a JQuery plugin name "jsPDF" and like to refer it from quickbase CDN ONLY and not from our application, which triggers compliance process (open Source).

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered

I want to user a JQuery plugin name "jsPDF".

1. Where can I check the list of JQuery plugins that quickbase host in their CDN?

2. If the JQuery plugin I need isn't available in CDN, is there a process through which I can request quickbase to host it?

NOTE: I know that I can host the plugin in our application folder and point it from thre, but that option isn't right one for me as it has to go through the compliance process which is not a viable option.

Photo of VAMSIKRISHNA

VAMSIKRISHNA

  • 0 Points

Posted 4 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,224 Points 20k badge 2x thumb
QuickBase's CDN has an odd feature were they refer to a version number in the URL that refers to the release of QuickBase. For example 65416-6 is the QuickBase version number for the version of QuickBase working today:

https://quickbase.intuitcdn.net/res/65416-6/css/themes/jquery-ui/smoothness/jquery-ui-1.8.custom.css

Unfortunately this version number changes and old versions disappear without notice. So I would not rely on QuickBase's CDN for external libraries you want to use. I would use this CDN:

http://cdnjs.com/libraries/jspdf
Photo of VAMSIKRISHNA

VAMSIKRISHNA

  • 0 Points
Thank you, but wouldn't that be a problem using cdnjs.com for these open source libraries. what if their is a problem with their hosting service?  whereas if it is quickbase that is hosting then being a client I could reach out to them if there is any issue, whereas with other hosting services no one would be accountable.

As long as it is just build number that changes in the URL then I can handle it in my code by using the baseURL property,  which is always available in all of their pages.  

var require = {
        baseUrl: "https://quickbase.intuitcdn.net/res/65416-6/js",  paths: { ... },  shim: { ...}
};

By any chance do you have any documentation or wiki page that lists all of the libraries that quickbase host?
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,224 Points 20k badge 2x thumb
QuickBase has a global variables in their pages that represents the most recent version of the CDN and what you are calling the baseURL:

    var gResDir             = "https://quickbase.intuitcdn.net/res/65416-6";

A CDN usually has high reliability so it isn't much of an issue to worry about:

http://www.cdnperf.com/