web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Javascript Control Addin not working in Dynamics nav 2016 (problem loading jquery external libraries)

(0) ShareShare
ReportReport
Posted on by 5

Hy,

I'm facing  a problem that blocked me to create a Javascript Control Addin for NAV 2016 (Build 46290)

the control Addin is deployed and signed correctly,

im trying to find the issue so i'm debugging the problem from the Nav web client (using chrome devtools)

i get this error : "Uncaught ReferenceError: $ is not defined at window.onload"

i've included the jquery script on the manifest file but when the DOM is ready i can't find the jquery script 

it seems like the jquery script not loaded.

8206.6.png6558.2.png5001.4.png3343.5.png

6786.7.png

Plz help me to resolve this problem 

thx.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    What do you have in the addin folder of your service tier?

  • Ahmed Mihoub Profile Picture
    5 on at

    i have added just the manifest file

    manif.png

    and this is the manifest file content

    manif.png

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    You need to copy the dll assembly file developed in the JavaScript into the NAV client add-ins folder.

    Pack the Manifest.xml file along with both Script and StyleSheet folders in a .zip archive, YourAddin.zip. The archive should have the following structure:

    image_5F00_07_5F00_010.jpg

    https://docs.microsoft.com/en-us/dynamics-nav/walkthrough--creating-and-using-a-client-control-add-in

  • Ahmed Mihoub Profile Picture
    5 on at

    The control addin is added to NAV client add-ins folder, and it is included on a specific page (i can use it as controAddIn) , also on web client the javascript code is injected via Webressources Windows Script
    , i can use just javascript only, but the problem that the jquery plugin can't be loaded

     

    0458.2.png

    i can't find jquery script link on web page

     

    0458.2.png

  • Suggested answer
    Ahmed Mihoub Profile Picture
    5 on at

    Problem solved by using jquery file locally from Script tag and not working when using Jquery from external link

    <ScriptUrl>

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans