Hi Pooben, Please take the below file as an example. It's the main page of the dashboard-app.
https://raw.githubusercontent.com/dhis2/dashboard-app/master/index.html Regards, On Mon, Feb 27, 2017 at 3:44 PM, Pooben Dass <poo...@hisp.org> wrote: > Hi Viet Nguyen > > I am trying to get the DHIS2 menu to display in my app, if I remove these > scripts - what script library to I need to replace it with? > > Regards > Pooben > > On Mon, Feb 27, 2017 at 10:20 AM, Viet Nguyen <v...@dhis2.org> wrote: > >> Hi Pooben, >> >> <script type="text/javascript" src="../../../dhis-web-commons >> /javascripts/dhis2/dhis2.menu.js"></script> >> <script type="text/javascript" src="../../../dhis-web-commons >> /javascripts/dhis2/dhis2.menu.ui.js"></script> >> >> Those are old scripts, please try to remove them from your app and see if >> the error still occurs. >> >> Regards, >> >> On Fri, Feb 24, 2017 at 4:08 PM, Pooben Dass <poo...@hisp.org> wrote: >> >>> Hi Devs >>> >>> Any information to assist with this error? >>> >>> Regards >>> Pooben >>> >>> ---------- Forwarded message ---------- >>> From: Pooben Dass <poo...@hisp.org> >>> Date: Tue, Feb 21, 2017 at 12:41 PM >>> Subject: 404 Error when trying to use the DHIS2 menu in an APP >>> To: dhis2-devs <dhis2-devs@lists.launchpad.net> >>> >>> >>> Hi Devs >>> >>> Please can you assist me in getting the DHIS Menu to display in my app? >>> >>> I'm using dhis 2,25 build 8182981 >>> >>> *and this is the error I receive on the console :-* >>> >>> jquery.min.js:2 GET http://localhost:9090/dhis/api >>> /apps/api/me/profile.json 404 (Not Found) >>> send @ jquery.min.js:2 >>> ajax @ jquery.min.js:2 >>> dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:960 >>> (anonymous) @ dhis2.menu.ui.js:1266 >>> (anonymous) @ dhis2.menu.ui.js:1268 >>> >>> jquery.min.js:2 GET http://localhost:9090/dhis/api >>> /apps/dhis-web-commons/menu/getHelpPageLinkModule.action 404 (Not Found) >>> send @ jquery.min.js:2 >>> ajax @ jquery.min.js:2 >>> dhis2.menu.ui.initMenu @ dhis2.menu.ui.js:955 >>> (anonymous) @ dhis2.menu.ui.js:1266 >>> (anonymous) @ dhis2.menu.ui.js:1268 >>> >>> *This is the script as per the DHIS2 documentation:-* >>> >>> <script type="text/javascript"> >>> <!-- DHIS2 Settings initialization for a baseUrl that is used for the >>> menu --> >>> window.dhis2 = window.dhis2 || {}; >>> dhis2.settings = dhis2.settings || {}; >>> dhis2.settings.baseUrl = 'dhis'; >>> </script> >>> >>> *This is the script with the relative path I am using:-* >>> >>> <script type="text/javascript" src="../../../dhis-web-commons >>> /javascripts/dhis2/dhis2.menu.js"></script> >>> <script type="text/javascript" src="../../../dhis-web-commons >>> /javascripts/dhis2/dhis2.menu.ui.js"></script> >>> >>> >>> *This message and any attachments are subject to a disclaimer published >>> at http://www.hisp.org/policies.html#comms_disclaimer >>> <http://www.hisp.org/policies.html#comms_disclaimer>. Please read the >>> disclaimer before opening any attachment or taking any other action in >>> terms of this electronic transmission. If you cannot access the >>> disclaimer, kindly send an email to disclai...@hisp.org >>> <disclai...@hisp.org> and a copy will be provided to you. By replying to >>> this e-mail or opening any attachment you agree to be bound by the >>> provisions of the disclaimer.* >>> >>> _______________________________________________ >>> Mailing list: https://launchpad.net/~dhis2-devs >>> Post to : dhis2-devs@lists.launchpad.net >>> Unsubscribe : https://launchpad.net/~dhis2-devs >>> More help : https://help.launchpad.net/ListHelp >>> >>> >> >> >> -- >> >> Viet Nguyen >> Software Developer, DHIS 2 >> University of Oslo >> http://www.dhis2.org >> >> >> > > *This message and any attachments are subject to a disclaimer published at > http://www.hisp.org/policies.html#comms_disclaimer > <http://www.hisp.org/policies.html#comms_disclaimer>. Please read the > disclaimer before opening any attachment or taking any other action in > terms of this electronic transmission. If you cannot access the > disclaimer, kindly send an email to disclai...@hisp.org > <disclai...@hisp.org> and a copy will be provided to you. By replying to > this e-mail or opening any attachment you agree to be bound by the > provisions of the disclaimer.* > -- Viet Nguyen Software Developer, DHIS 2 University of Oslo http://www.dhis2.org
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp