11-24-2016, 02:52 AM
And I'm having one more issue....currently, all of my pages that have direct scripts in them are using the following script for capture:
<pre></pre>
However, a page has to perform a function the is not passed along.
For example, on, there is two div's, one for and one for . These divs are powered by the following JS:
<pre></pre>
However, I run into the issue of the fact that when I am running these two URLs, I cannot push the value. I was thinking that I could do something with the divs to enter the which the figures out (based on the script above) but how do I pass this on to the JS? Once it's at the JS it'll be fine, but my issue is getting it to the JS.
Any help would be great!
Code:
$uid
<pre>
Code:
if(isset($_GET['uid']))
{
if(checkMenu(2,$user->data()->id))
{
$uid = $_GET['uid'];
}
else
{
$uid = $user->data()->id;
}
}
if (empty($_GET['uid']))
{
$uid = $user->data()->id;
}
However, a page has to perform a function the
Code:
$uid
For example, on
Code:
functions.php
Code:
alerts
Code:
stats
<pre>
Code:
function autoRefresh_div() {
$("#stats").load("/eldis/master/usersc/includes/stats.php");
$("#alerts").load("/eldis/master/usersc/includes/alerts.php");
}
setInterval(autoRefresh_div, 1000); // every 5 seconds
autoRefresh_div(); // on load
However, I run into the issue of the fact that when I am running these two URLs, I cannot push the
Code:
$uid
Code:
$uid
Code:
functions.php
Any help would be great!