The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
View As User
#12
And I'm having one more issue....currently, all of my pages that have direct scripts in them are using the following script for
Code:
$uid
capture:
<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;
    }
</pre>


However, a page has to perform a function the
Code:
$uid
is not passed along.

For example, on
Code:
functions.php
, there is two div's, one for
Code:
alerts
and one for
Code:
stats
. These divs are powered by the following JS:
<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
</pre>


However, I run into the issue of the fact that when I am running these two URLs, I cannot push the
Code:
$uid
value. I was thinking that I could do something with the divs to enter the
Code:
$uid
which the
Code:
functions.php
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!
  Reply


Messages In This Thread
View As User - by Brandin - 11-10-2016, 09:03 PM
View As User - by mudmin - 11-11-2016, 09:44 PM
View As User - by Brandin - 11-11-2016, 10:16 PM
View As User - by Brandin - 11-12-2016, 12:24 AM
View As User - by mudmin - 11-14-2016, 04:27 PM
View As User - by Brandin - 11-14-2016, 05:52 PM
View As User - by mudmin - 11-14-2016, 06:30 PM
View As User - by Brandin - 11-14-2016, 08:03 PM
View As User - by mudmin - 11-14-2016, 08:06 PM
View As User - by Brandin - 11-22-2016, 11:18 PM
View As User - by mudmin - 11-23-2016, 12:19 AM
View As User - by Brandin - 11-24-2016, 02:52 AM
View As User - by mudmin - 11-24-2016, 03:46 PM
View As User - by Brandin - 11-24-2016, 04:23 PM
View As User - by Brandin - 11-24-2016, 04:50 PM
View As User - by mudmin - 11-24-2016, 04:50 PM
View As User - by mudmin - 11-24-2016, 05:28 PM
View As User - by Brandin - 11-24-2016, 07:55 PM
View As User - by mudmin - 11-24-2016, 08:28 PM
View As User - by mudmin - 11-24-2016, 08:28 PM
View As User - by Brandin - 11-24-2016, 08:52 PM
View As User - by dan - 11-24-2016, 09:03 PM
View As User - by Brandin - 11-24-2016, 09:44 PM
View As User - by mudmin - 11-24-2016, 10:49 PM
View As User - by Brandin - 11-25-2016, 03:09 PM
View As User - by mudmin - 11-25-2016, 03:31 PM
View As User - by Brandin - 11-25-2016, 04:00 PM
View As User - by Brandin - 01-12-2017, 10:52 PM
View As User - by Brandin - 01-12-2017, 10:53 PM
View As User - by Brandin - 03-19-2017, 11:46 PM
View As User - by mudmin - 03-20-2017, 11:24 AM
View As User - by Brandin - 03-20-2017, 11:28 AM
View As User - by mudmin - 03-23-2017, 10:05 AM
View As User - by Brandin - 03-23-2017, 11:24 AM
View As User - by mudmin - 03-23-2017, 11:30 AM

Forum Jump:


Users browsing this thread: 9 Guest(s)