Jump to content

Jquery in block


Recommended Posts

{{$member = \IPS\Member::loggedIn();}}
{{$id = $member->member_id;}}

.trailer {
    position: relative;
    padding-top: 25px;
    height: 200px;
<script type="text/javascript">
      var id = <?php echo $id;?>;

    function refreshTable2(){
        $('#tableHolder2').load('data/trailer/trailer-button.php?id=(id)', function(){
           setTimeout(refreshTable2, 5000);

<div id="tableHolder2"></div>
	<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>

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


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

  • Recently Browsing   0 members

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