23
Views
4
Comments
Sizzlejs library error
Question

I have a problem inserting the sizzlejs library into the _osjs.js javascript (which OutSystems creates). I did not detect which action is inserting this library. Does anyone know how the library is being inserted into _osjs.js?


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Eurico,

Why do you think you need to include sizzle.js? Isn't this already part of Jquery library that OutSystems includes?

It is part of JQuery and is a JS library that implements a CSS selector engine. Without it JQuery doesn't work.

Regards,

Daniel

UserImage.jpg
Eurico Junior

Daniël Kuhlmann wrote:

Hi Eurico,

Why do you think you need to include sizzle.js? Isn't this already part of Jquery library that OutSystems includes?

It is part of JQuery and is a JS library that implements a CSS selector engine. Without it JQuery doesn't work.

Regards,

Daniel

This is the problem ... I am not including sizzlejs, but it is giving a javascript error in the execution of the page (line 25 - sizzle).


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

I am not sure that you can conclude that there is an error in the Sizzle library. The sizzle library generates an error as it expects an object b to be initialized as an html DOM object (which has a getAttribute function). Maybe something is passed in that does ensure variable b to be a DOM object. 

Do you use custom JavaScript in your application? Maybe you did not initialize some variables correctly.

UserImage.jpg
Eurico Junior

Daniël Kuhlmann wrote:

I am not sure that you can conclude that there is an error in the Sizzle library. The sizzle library generates an error as it expects an object b to be initialized as an html DOM object (which has a getAttribute function). Maybe something is passed in that does ensure variable b to be a DOM object. 

Do you use custom JavaScript in your application? Maybe you did not initialize some variables correctly.

I'll check where getAttibute is running and the variables ... Thanks


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.