Jump to content

Jquery in block


Get-Gaming

Recommended Posts

{{$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 :(

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...