Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Get-Gaming Posted June 18, 2016 Posted June 18, 2016 {{$member = \IPS\Member::loggedIn();}} {{$id = $member->member_id;}} <center> <style> .trailer { position: relative; padding-top: 25px; height: 200px; } </style> <script type="text/javascript"> $(document).ready(function(){ var id = <?php echo $id;?>; refreshTable2(); }); function refreshTable2(){ $('#tableHolder2').load('data/trailer/trailer-button.php?id=(id)', function(){ setTimeout(refreshTable2, 5000); }); } </script> <div id="tableHolder2"></div> <hr> <p> <a class="ipsButton ipsButton_positive ipsButton_verySmall" href="https://tour-o-matic.net/data/trailer/trailer-button.php?id={$id}&mode=2" target="trailer">Start Loading</a> <a class="ipsButton ipsButton_positive ipsButton_verySmall" href="https://tour-o-matic.net/data/trailer/trailer-button.php?id={$id}&mode=3" target="trailer">Start Unloading</a> </p> <hr> </center> This is my code so i'm trying to move from iframe to jquery refreshing but i need to pass the id of the user to the php script.. i just can't get it to work
Recommended Posts
Archived
This topic is now archived and is closed to further replies.