jQM and Google Visualization - PHP Issue
Doesn't matter what browser I use:
I have created a Visualization Table for the sorting functionality.
Upon initial page load, the DIV 'table_div' does not populate.
If I reload the page, then everything works fine. Also if I right click on the link and say open in new tab, all the data loads successfully. I feel it has something to do with jQM caching the CDN files, but am not certain.
I am hosted on Rackspace, so I don't feel that the server is taking to long to request the CDN versions of jQ and jQM.
I am really at a loss and any help would be greatly appreciated.
- <!DOCTYPE html>
- <html>
- <head>
- <title>Member Engagement Dashboard</title>
-
- <link rel="stylesheet" href="//code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css?UNI=38314885" />
- <link rel="stylesheet" href="me3style.css?UNI=34762994" />
- <script src="//code.jquery.com/jquery-1.9.1.min.js?UNI=8923293"></script>
- <script src="//code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js?UNI=26966532"></script>
- <script type='text/javascript' src='//www.google.com/jsapi/?UNI=8251973' charset='utf-8'></script>
- </head>
- <div data-role="page" data-theme="b">
- <div data-role="header" data-position="inline">
- <h1>Company - Member Engagement Dashboard</h1>
- <div data-role="navbar">
- <ul>
- <li><a href="index.php?UNI=37179744" data-icon="home" class="ui-btn-active">Home</a></li>
- <li><a href="accounts.php?UNI=44881611" data-icon="th-large">All Accounts</a></li>
- <li><a href="majormemberdata.php?UNI=49763935" data-icon="list">Major Member Data</a></li>
- <li><a href="nav.html" data-icon="cogs">Nav</a></li>
- <li><a href="settings.php?UNI=66714755" data-icon="cogs">Settings</a></li>
- </ul>
- </div>
- </div>
- <center>
- <div id="me3container"> <h2>Member Accounts</h2>
-
- <script type='text/javascript'>
-
- google.load('visualization', '1', {packages:['table']});
-
- google.setOnLoadCallback(drawTable);
- function drawTable() {
-
- var data = new google.visualization.DataTable();
- data.addColumn('string', 'ID');
- data.addColumn('string', 'Account');
- data.addColumn('string', 'Type');
- data.addColumn('string', 'Tier');
- data.addColumn('string', 'MSR');
- data.addColumn('string', 'MDD');
-
- data.addRows([['0015000000JEIuxAAH',
- 'That Company - <a href="detailreport.php?AID=xxxxx0JEIuxAAH&UNI=24327026">(Detail Report)</a>',
- 'Standard Member',
- 'T7: $10B-$25B',
- 'All Admin',
- 'Salesperson A'],['0015000000InODJAA3',
- 'His Systems - <a href="detailreport.php?AID=xxxxxx0InODJAA3&UNI=66290603">(Detail Report)</a>',
- 'Standard Member',
- 'T5: $1B-$4.99B',
- 'Some Admin',
- 'Salesperson B']]);
- var table = new google.visualization.Table(document.getElementById('table_div'));
- table.draw(data, {allowHtml: true, showRowNumber: true});
-
- }
-
-
- </script>
-
- <div id='table_div'>Loading</div>
-
- </div><!-- me3container - close -->
- </center>
- </div>
-
- </html>