JMG ALPHA 003

User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: JMG ALPHA 003

Post by Rathinagiri »

Wow. You are so fast!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4012
Joined: Wed Jul 30, 2008 6:43 pm

Re: JMG ALPHA 003

Post 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 :)
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply