Page 4 of 4

Re: JMG ALPHA 003

Posted: Sat Apr 16, 2016 2:31 am
by Rathinagiri
Wow. You are so fast!

Re: JMG ALPHA 003

Posted: Sat Apr 16, 2016 3:25 pm
by Roberto Lopez
Rathinagiri wrote:Wow. You are so fast!
I get very upset when something is not working, so, I've spent hours reading about AJAX problems with Phonegap, until I've found a solution:

In config.xml:

Code: Select all

   <plugin name="cordova-plugin-whitelist" spec="1" />
   <allow-navigation href="*" />
In index.html (head section)

Code: Select all

		<script>
                $( document ).bind( "mobileinit", function() {

                   $.mobile.allowCrossDomainPages = true;
                   $.support.cors                 = true;
                   $.mobile.pushStateEnabled      = false;

                });
		</script> 
I guess the same applies for cordova.

And I'm very enthusiastic about this, since the possibility to use exactly the same code for any OS and screen size/orientation (including Windows desktop) is really a wonderful thing.

Besides that, Javascript is a nice language, not so nice as xBase, but I can live with it :)