Hi there,
I am developing a script to work along side my joomla website and i am wanting to develop a script that connects to my database and refresh's certain divs every 2 seconds without the user noticing this,
only issue is that joomla isnt wanting to work with me on this,
Here is my code,
since when i do that i get nothing on my navagation where user information is displayed and displays the enter layout in the div right_contenta So can jquery does this or shud i use ajax to help me out to what i want to achieve?Code:<script src="http://code.jquery.com/jquery-latest.js"></script> $user =& JFactory::getUser(); if($user->username) { $t=$user->username; /*$(document).ready(function() { $(".right_contenta").load("profilerefresh.php?username="<?php echo $t;?>""); var refreshId = setInterval(function() { $(".right_contenta").load('profilerefresh.php?username="<?php echo $t;?>"'); }, 2000); }); <?*/ } <div class="right_contenta"> <jdoc:include type="modules" name="right" /> </div>
How can i fix this and get my right_contenta div refreshing every 2 seconds with my joomla layout
in otherwords i want my ajax to load and refresh the information located at profile2.php?user=admin which has all user information coming fom database and refreshs every 2 second
how can i do this and achieve this
can anyone help me out here?
Thanks,William


Reply With Quote

Bookmarks