Hi Martin Sorry, I'm a big confused. Why are you using the dhis-web-mapping module directly? Wouldn't it be better to use it through the web api? are you looking for data or images? (you mention JSON in your code..)
-- Morten On Tue, Sep 4, 2012 at 8:10 PM, Martin Namutso <[email protected]> wrote: > > Hey guys, > > I am enhancing and re-developing the dynamic tool that picks maps, charts, > reports from any DHIS2 system and i am dynamically sending the id's of the > maps & charts but on the page to diaplay the maps / charts, it doesnt > load..what could i be doing wrong??? I have shared a sample excerpt of the > maps page which doesn't load in my tool but as you can see in the jpeg > attached loads just fine in the DHIS2 system! > > <?php > $ch = curl_init( " > http://aaa.bbb.ccc.ddd/dhis-web-mapping/mapping/index.html?id=cc5D0epyFJC" > ); > $options = array( > CURLOPT_RETURNTRANSFER => true, > CURLOPT_USERPWD => "username:password", > CURLOPT_HTTPHEADER => array('Content-type: text/html') # NOT > SURE THIS IS CORRECT! > ); > curl_setopt_array( $ch, $options ); > > $result = curl_exec($ch); // Getting jSON result string > print $result; > curl_close($ch); > ?> > > *FYI:::** > The standard reports work just fine! > The data-visualizer also doesn't load*! > > ----- > > kind regards > > *Martin Namutso | Information System Specialist | Mob: +256 782 006 662* > > *----- If you think education is expensive try ignorance! -----* > > > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-devs > Post to : [email protected] > Unsubscribe : https://launchpad.net/~dhis2-devs > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

