Where is ej.base.Fetch declared.

Hi Team

I feel stupid having to ask this. lots of samples have "var fetch = new  ej.base.Fetch("some URL")"

But when I want to use that, I get, no constructor error, so obviously I am missing some code somewhere. But even when I do global searches in working samples, I can not find where the class is defined.

Can someone point me in the right direction?


1 Reply

DA Deepika Arumugasamy Syncfusion Team March 27, 2025 03:29 PM UTC

Hi Andre,


Thank you for reaching out to us.

 

The ej.base.Fetch class is part of the Syncfusion JavaScript library and is available when using Syncfusion's CDN. It seems like you might be encountering the error due to the class not being recognized, likely because the required script might be missing.

 

To ensure proper usage, please follow the below CDN references:

 

Overall CDN reference

<script src="https://cdn.syncfusion.com/ej2/29.1.33/dist/ej2.min.js" type="text/javascript"></script>

 or

Base CDN reference

<script src="https://cdn.syncfusion.com/ej2/29.1.33/ej2-base/dist/global/ej2-base.min.js" type="text/javascript"></script>

 

 

Refer to the documentation for more details: Quick start with EJ2 JavaScript Getting started control | Syncfusion

 

You can also check the working sample using this link:
Syncfusion Fetch Example on StackBlitz

If you have any further questions or issues, feel free to reach out. We’re here to help!



Regards,

Deepika




Loader.
Up arrow icon