maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Debugging

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

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Debugging

Tiggzi tester

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Debugging

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

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Debugging

Worked when I installed the apk on my phone too.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Debugging

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Debugging

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

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Debugging

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);      
 }      
}
maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Debugging

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.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Debugging

Found this - it should do the trick.

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

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Debugging

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

Return to “Issues”