Page 3 of 4

Debugging

Posted: Tue Oct 16, 2012 4:30 pm
by maxkatz

Did you install the app on your phone (or launched via Tiggzi Mobile Tester) or opened it in the browser?


Debugging

Posted: Tue Oct 16, 2012 5:00 pm
by Barbara

Tiggzi tester


Debugging

Posted: Tue Oct 16, 2012 5:12 pm
by maxkatz

When running as hybrid app, cross-domain class don't play a role and thus it works: http://help.gotiggr.com/documentation...


Debugging

Posted: Wed Oct 17, 2012 12:55 am
by Barbara

Worked when I installed the apk on my phone too.


Debugging

Posted: Wed Oct 17, 2012 12:57 am
by Barbara

So what's the best approach to get it working in tiggzi for testing purposes


Debugging

Posted: Wed Oct 17, 2012 3:42 am
by maxkatz

Why not just define a RESTservice (in Tiggzi) and use the proxy?


Debugging

Posted: Wed Oct 17, 2012 3:55 am
by Barbara

I'm trying to use existing code where possible and the request parameters are complicated and generated with js like this

var inData = "";
var ct=0;

Code: Select all

function appGET(data, str) { 
           if (data && data != 'undefined') { 
               data = encodeURIComponent(html_entity_decode(data)); 
               if (ct == 0) { 
                   inData += str + '=' + data; 
               } else { 
                   inData += '&' + str + '=' + data; 
               } 
               ct++; 
           } 
       }               

appGET(localStorage['user'], 'user'); 
if ($('#saveinp').val()==localStorage['listname']) { 
        appGET(localStorage['listid'], 'id');    
} 
       appGET($('#saveinp').val(), 'list'); 
var ingnum=localStorage['ingnum']; 
appGET(ingnum, 'ingnum');    

for (i=0;i + i);      
 }      
}

Debugging

Posted: Wed Oct 17, 2012 4:20 am
by maxkatz

I guess the only other thing you can do is add cross-domain support to the services. Or, host the pages on the same domain as the service.


Debugging

Posted: Wed Oct 17, 2012 4:33 am
by Barbara

Found this - it should do the trick.

http://benalman.com/projects/php-simp...


Debugging

Posted: Wed Oct 17, 2012 4:41 am
by Barbara

No it won't it would have to be installed on your server - is that possible?