Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#1 2022-07-07 10:28:38

Johann
Member
Registered: 2022-05-30

Groovy Script Reports: Unable to load jquery and Javascript libraries

I have the following in my `head` tag:

1: jquery CDN
2 and 3: Datatables library CDN
4 and 5: URLs to custom CSS files stored in ReportServer filesystem

script(src: "https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js")
script(type: "text/javascript", charset: "utf8", src:"https://cdn.datatables.net/1.12.1/js/jquery.dataTables.js")
link(rel: "stylesheet", type: "text/css", href: "https://cdn.datatables.net/1.12.1/css/jquery.dataTables.css")

link(href: mainCssLink, rel: "stylesheet", type:  "text/css")
link(href: bttnCssLink, rel: "stylesheet", type:  "text/css")

Without the first 3 tags, my CSS works fine. However, once I try to load jquery and the Datatables (https://datatables.net/) libraries, my styles are no longer loaded. Only when I add inline styles or shift my custom CSS links to the body tag, do they reappear. From this, it seems that the issue is the jquery and JS libraries are overriding the custom CSS despite them being placed before the custom CSS links.

How can this issue be fixed?

Offline

#2 2022-07-18 14:31:39

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Groovy Script Reports: Unable to load jquery and Javascript libraries

Hi Johann,

this seems to be a JQuery / CSS issue/question. Pls check the JQuery / CSS documentation on the internet for more information.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB