WebAPI do not work.

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 “http://apps.dhis2.org/portal/

Note:
I checked that the user would had access to WebAPI.
The web site will be http://salas.saludcauca.gov.co

Thanks.

plugindhis.html (1.01 KB)

jquery.html (619 Bytes)

Hi,

Are you having any particular problem? Any error message?

Regards,

Paulo Grácio

···

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of helder yesid castrillon cobo
Sent: sexta-feira, 2 de Agosto de 2013 16:42
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] WebAPI do not work.

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 “http://apps.dhis2.org/portal/

Note:
I checked that the user would had access to WebAPI.
The web site will be http://salas.saludcauca.gov.co

Thanks.

On your jQuery file, replace line 15 from setLinks to setLinks()

Regards,

Paulo Grácio

···

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of Paulo Grácio
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?

Regards,

Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of helder yesid castrillon cobo
Sent: sexta-feira, 2 de Agosto de 2013 16:42
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] WebAPI do not work.

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 “http://apps.dhis2.org/portal/

Note:
I checked that the user would had access to WebAPI.
The web site will be http://salas.saludcauca.gov.co

Thanks.

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.

Regards,

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.

Regards,


From: pgracio@criticalsoftware.com
To: helder_947@hotmail.com; dhis2-users@lists.launchpad.net

Subject: RE: [Dhis2-users] WebAPI do not work.
Date: Sat, 3 Aug 2013 19:03:21 +0200

On your jQuery file, replace line 15 from setLinks to setLinks()

Regards,

Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of Paulo Grácio

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?

Regards,

Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of helder yesid castrillon cobo

Sent: sexta-feira, 2 de Agosto de 2013 16:42
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] WebAPI do not work.

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 “http://apps.dhis2.org/portal/

Note:
I checked that the user would had access to WebAPI.
The web site will be http://salas.saludcauca.gov.co

Thanks.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

JsonP?

···

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)


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


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.

Regards,


From: pgracio@criticalsoftware.com
To: helder_947@hotmail.com; dhis2-users@lists.launchpad.net

Subject: RE: [Dhis2-users] WebAPI do not work.
Date: Sat, 3 Aug 2013 19:03:21 +0200

On your jQuery file, replace line 15 from setLinks to setLinks()

Regards,

Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of Paulo Grácio

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?

Regards,

Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of helder yesid castrillon cobo

Sent: sexta-feira, 2 de Agosto de 2013 16:42
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] WebAPI do not work.

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 “http://apps.dhis2.org/portal/

Note:
I checked that the user would had access to WebAPI.
The web site will be http://salas.saludcauca.gov.co

Thanks.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

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.

···


Morten

On Mon, Aug 5, 2013 at 9:35 PM, Jan Henrik Øverland janhenrik.overland@gmail.com wrote:

JsonP?

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)


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


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.

Regards,


From: pgracio@criticalsoftware.com
To: helder_947@hotmail.com; dhis2-users@lists.launchpad.net

Subject: RE: [Dhis2-users] WebAPI do not work.
Date: Sat, 3 Aug 2013 19:03:21 +0200

On your jQuery file, replace line 15 from setLinks to setLinks()

Regards,

Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of Paulo Grácio

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?

Regards,

Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of helder yesid castrillon cobo

Sent: sexta-feira, 2 de Agosto de 2013 16:42
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] WebAPI do not work.

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 “http://apps.dhis2.org/portal/

Note:
I checked that the user would had access to WebAPI.
The web site will be http://salas.saludcauca.gov.co

Thanks.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

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.

regards

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.

regards


From: mortenoh@gmail.com
Date: Mon, 5 Aug 2013 22:28:51 +0700

Subject: Re: [Dhis2-users] WebAPI do not work.

To: janhenrik.overland@gmail.com
CC: helder_947@hotmail.com; dhis2-users@lists.launchpad.net

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.


Morten

On Mon, Aug 5, 2013 at 9:35 PM, Jan Henrik Øverland janhenrik.overland@gmail.com wrote:

JsonP?

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.

Regards,


From: pgracio@criticalsoftware.com
To: helder_947@hotmail.com; dhis2-users@lists.launchpad.net

Subject: RE: [Dhis2-users] WebAPI do not work.
Date: Sat, 3 Aug 2013 19:03:21 +0200

On your jQuery file, replace line 15 from setLinks to setLinks()

Regards,

Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of Paulo Grácio

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?

Regards,
Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of helder yesid castrillon cobo

Sent: sexta-feira, 2 de Agosto de 2013 16:42
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] WebAPI do not work.

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 “http://apps.dhis2.org/portal/

Note:
I checked that the user would had access to WebAPI.
The web site will be http://salas.saludcauca.gov.co

Thanks.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Hi Lars,

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.

regards

  _____

This is nice to have.

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.

Lars


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

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.

regards


From: mortenoh@gmail.com
Date: Mon, 5 Aug 2013 22:28:51 +0700

Subject: Re: [Dhis2-users] WebAPI do not work.

To: janhenrik.overland@gmail.com
CC: helder_947@hotmail.com; dhis2-users@lists.launchpad.net

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.


Morten

On Mon, Aug 5, 2013 at 9:35 PM, Jan Henrik Øverland janhenrik.overland@gmail.com wrote:

JsonP?

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.

Regards,


From: pgracio@criticalsoftware.com
To: helder_947@hotmail.com; dhis2-users@lists.launchpad.net

Subject: RE: [Dhis2-users] WebAPI do not work.
Date: Sat, 3 Aug 2013 19:03:21 +0200

On your jQuery file, replace line 15 from setLinks to setLinks()

Regards,

Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of Paulo Grácio

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?

Regards,
Paulo Grácio

From: Dhis2-users [mailto:dhis2-users-bounces+pgracio=criticalsoftware.com@lists.launchpad.net] On Behalf Of helder yesid castrillon cobo

Sent: sexta-feira, 2 de Agosto de 2013 16:42
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] WebAPI do not work.

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 “http://apps.dhis2.org/portal/

Note:
I checked that the user would had access to WebAPI.
The web site will be http://salas.saludcauca.gov.co

Thanks.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp