HI,
I am designing a web site to publish the indicators that I have created in DHIS, for this purpose am using the Web Api.
I have tried with DHIS Plugins and jquery but these hasn’t worked.
I don’t know what happend or that I should to do.
attached two example who I created based in the demo “DHIS2 App Hub”
HI,
I am designing a web site to publish the indicators that I have created in DHIS, for this purpose am using the Web Api.
I have tried with DHIS Plugins and jquery but these hasn’t worked.
HI,
I am designing a web site to publish the indicators that I have created in DHIS, for this purpose am using the Web Api.
I have tried with DHIS Plugins and jquery but these hasn’t worked.
The problem is that with these solutions(plugin DHIS and jquery) doesn't show nothing on Web Browser. Before I had tried:
i) To replace setLinks to setLinks(), but it only works while I am logged in DHIS(generally in other tab of same browser).
ii) I tried with several users.
iii) I used the same code that Demo published in DHIS2 App Hub.
iv) I cleaned cookies, temporal files, Etc. of my web Browser.
v) I also used different web browsers.
vi) I finally tried do everything locally(dhis local, HTML files)
Is necessary to configure something in DHIS?. example security, compatibility, access permissions.etc.
Is the data you’re fetching on the same server, or on a remote server? XHR doesn’t support cross-domain requests, so you would probably have to setup a authenticating proxy (you could use nginx)
···
–
Morten
On Mon, Aug 5, 2013 at 8:58 PM, helder yesid castrillon cobo helder_947@hotmail.com wrote:
Thanks Paulo,
The problem is that with these solutions(plugin DHIS and jquery) doesn’t show nothing on Web Browser. Before I had tried:
i) To replace setLinks to setLinks(), but it only works while I am logged in DHIS(generally in other tab of same browser).
ii) I tried with several users.
iii) I used the same code that Demo published in http://apps.dhis2.org/portal/.
iv) I cleaned cookies, temporal files, Etc. of my web Browser.
v) I also used different web browsers.
vi) I finally tried do everything locally(dhis local, HTML files)
Is necessary to configure something in DHIS?. example security, compatibility, access permissions.etc.
Sent: sábado, 3 de Agosto de 2013 13:22 To: ‘helder yesid castrillon cobo’; dhis2-users@lists.launchpad.net Subject: Re: [Dhis2-users] WebAPI do not work.
Hi,
Are you having any particular problem? Any error message?
On Mon, Aug 5, 2013 at 5:26 PM, Morten Olav Hansen mortenoh@gmail.com wrote:
Hi,
Is the data you’re fetching on the same server, or on a remote server? XHR doesn’t support cross-domain requests, so you would probably have to setup a authenticating proxy (you could use nginx)
On Mon, Aug 5, 2013 at 8:58 PM, helder yesid castrillon cobo helder_947@hotmail.com wrote:
Thanks Paulo,
The problem is that with these solutions(plugin DHIS and jquery) doesn’t show nothing on Web Browser. Before I had tried:
i) To replace setLinks to setLinks(), but it only works while I am logged in DHIS(generally in other tab of same browser).
ii) I tried with several users.
iii) I used the same code that Demo published in http://apps.dhis2.org/portal/.
iv) I cleaned cookies, temporal files, Etc. of my web Browser.
v) I also used different web browsers.
vi) I finally tried do everything locally(dhis local, HTML files)
Is necessary to configure something in DHIS?. example security, compatibility, access permissions.etc.
Sent: sábado, 3 de Agosto de 2013 13:22 To: ‘helder yesid castrillon cobo’; dhis2-users@lists.launchpad.net Subject: Re: [Dhis2-users] WebAPI do not work.
Hi,
Are you having any particular problem? Any error message?
You would still need to authenticate. Could be done with something like CORS I guess, but its not really ideal. We have used nginx for this before I know (setting a static Basic authentication header). But I’m not sure if that is the problem here or not.
On Mon, Aug 5, 2013 at 5:26 PM, Morten Olav Hansen mortenoh@gmail.com wrote:
Hi,
Is the data you’re fetching on the same server, or on a remote server? XHR doesn’t support cross-domain requests, so you would probably have to setup a authenticating proxy (you could use nginx)
On Mon, Aug 5, 2013 at 8:58 PM, helder yesid castrillon cobo helder_947@hotmail.com wrote:
Thanks Paulo,
The problem is that with these solutions(plugin DHIS and jquery) doesn’t show nothing on Web Browser. Before I had tried:
i) To replace setLinks to setLinks(), but it only works while I am logged in DHIS(generally in other tab of same browser).
ii) I tried with several users.
iii) I used the same code that Demo published in http://apps.dhis2.org/portal/.
iv) I cleaned cookies, temporal files, Etc. of my web Browser.
v) I also used different web browsers.
vi) I finally tried do everything locally(dhis local, HTML files)
Is necessary to configure something in DHIS?. example security, compatibility, access permissions.etc.
Sent: sábado, 3 de Agosto de 2013 13:22 To: ‘helder yesid castrillon cobo’; dhis2-users@lists.launchpad.net Subject: Re: [Dhis2-users] WebAPI do not work.
Hi,
Are you having any particular problem? Any error message?
We see that many people face the same issue and there isn’t really any “best-practice” solution to these light-weight “web page to server app on different domain” integration issues. FYI, as a response we are introducing a new access level for the DHIS sharing mechanism called “external access” in 2.13 - this will allow you to give read-only access without any authentication for individual charts, maps and reports.
Lars
···
On Mon, Aug 12, 2013 at 9:18 PM, helder yesid castrillon cobo helder_947@hotmail.com wrote:
thanks for your input, the problem was that you had raised. It works well on the same domain, also I tried the proxy and it works fine.
You would still need to authenticate. Could be done with something like CORS I guess, but its not really ideal. We have used nginx for this before I know (setting a static Basic authentication header). But I’m not sure if that is the problem here or not.
On Mon, Aug 5, 2013 at 5:26 PM, Morten Olav Hansen mortenoh@gmail.com wrote:
Hi,
Is the data you’re fetching on the same server, or on a remote server? XHR doesn’t support cross-domain requests, so you would probably have to setup a authenticating proxy (you could use nginx)
–
Morten
On Mon, Aug 5, 2013 at 8:58 PM, helder yesid castrillon cobo helder_947@hotmail.com wrote:
Thanks Paulo,
The problem is that with these solutions(plugin DHIS and jquery) doesn’t show nothing on Web Browser. Before I had tried:
i) To replace setLinks to setLinks(), but it only works while I am logged in DHIS(generally in other tab of same browser).
ii) I tried with several users.
iii) I used the same code that Demo published in http://apps.dhis2.org/portal/.
iv) I cleaned cookies, temporal files, Etc. of my web Browser.
v) I also used different web browsers.
vi) I finally tried do everything locally(dhis local, HTML files)
Is necessary to configure something in DHIS?. example security, compatibility, access permissions.etc.
Sent: sábado, 3 de Agosto de 2013 13:22 To: ‘helder yesid castrillon cobo’; dhis2-users@lists.launchpad.net Subject: Re: [Dhis2-users] WebAPI do not work.
Hi,
Are you having any particular problem? Any error message?
This new functionality looks perfect for integration with public government
portals. Looking forward to use it!
Regards,
Paulo Grácio
···
From: Dhis2-users
[mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net
] On Behalf Of Lars Helge Øverland
Sent: terça-feira, 13 de Agosto de 2013 11:21
To: helder yesid castrillon cobo
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] WebAPI do not work.
We see that many people face the same issue and there isn't really any
"best-practice" solution to these light-weight "web page to server app on
different domain" integration issues. FYI, as a response we are introducing
a new access level for the DHIS sharing mechanism called "external access"
in 2.13 - this will allow you to give read-only access without any
authentication for individual charts, maps and reports.
Lars
On Mon, Aug 12, 2013 at 9:18 PM, helder yesid castrillon cobo <helder_947@hotmail.com> wrote:
thanks for your input, the problem was that you had raised. It works well on
the same domain, also I tried the proxy and it works fine.
But please should be a way to prevent exposure to everything.
Thanks
Caveman
···
On Tue, Aug 13, 2013 at 11:21 AM, Lars Helge Øverland larshelge@gmail.com wrote:
We see that many people face the same issue and there isn’t really any “best-practice” solution to these light-weight “web page to server app on different domain” integration issues. FYI, as a response we are introducing a new access level for the DHIS sharing mechanism called “external access” in 2.13 - this will allow you to give read-only access without any authentication for individual charts, maps and reports.
You would still need to authenticate. Could be done with something like CORS I guess, but its not really ideal. We have used nginx for this before I know (setting a static Basic authentication header). But I’m not sure if that is the problem here or not.
On Mon, Aug 5, 2013 at 5:26 PM, Morten Olav Hansen mortenoh@gmail.com wrote:
Hi,
Is the data you’re fetching on the same server, or on a remote server? XHR doesn’t support cross-domain requests, so you would probably have to setup a authenticating proxy (you could use nginx)
–
Morten
On Mon, Aug 5, 2013 at 8:58 PM, helder yesid castrillon cobo helder_947@hotmail.com wrote:
Thanks Paulo,
The problem is that with these solutions(plugin DHIS and jquery) doesn’t show nothing on Web Browser. Before I had tried:
i) To replace setLinks to setLinks(), but it only works while I am logged in DHIS(generally in other tab of same browser).
ii) I tried with several users.
iii) I used the same code that Demo published in http://apps.dhis2.org/portal/.
iv) I cleaned cookies, temporal files, Etc. of my web Browser.
v) I also used different web browsers.
vi) I finally tried do everything locally(dhis local, HTML files)
Is necessary to configure something in DHIS?. example security, compatibility, access permissions.etc.
Sent: sábado, 3 de Agosto de 2013 13:22 To: ‘helder yesid castrillon cobo’; dhis2-users@lists.launchpad.net Subject: Re: [Dhis2-users] WebAPI do not work.
Hi,
Are you having any particular problem? Any error message?