Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
php bootstrap json data not loading on page load

this is first error
--------------------------------------
XML
<script type="text/javascript">
            // bootstrap variables

            var bootstrap = {
                useProxy: '<?= $use_proxy ?>',
                apiBaseUrl: '<?= $api_base_url ?>',
                url: '<?= $url ?>',
                db: '<?= $client_db ?>',
                name: '<?= $client_name ?>',
                shortName: '<?= $client_short_name ?>'
            };

            if (<?= strlen($ag_filters) > 0 ?>) bootstrap.agFilters = JSON.parse('<?= $ag_filters ?>');
uncaught syntaxerror unexpected token (here comes this error)

            if (<?= strlen($cr_filters) > 0 ?>) bootstrap.crFilters = JSON.parse('<?= $cr_filters ?>');


this is second error
----------------------------------
bootstrap is not defined

and yeah this already running on another server but I transfer in new server so it not working
Posted
Updated 30-Sep-14 0:26am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900