The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Automatic refresh
#1
I hate to ask this here because it feels like general web development but I'm stumped;

I have a page that has a set of categories on it that display a list of items from a db which each category held in a div being generated from a for loop.

http://hastebin.com/vezeluyigi.xml

http://hastebin.com/duyavanuvo.xml
on line 140 there is a script that effectively does what I need, but when i put the

` <script>
jQuery().ready(function(){
setInterval("getResult()",1000);
});
function getResult(){
jQuery.post("_category.php?Key=<?php echo $eventKey ?>",function( data ) {
jQuery("#cat<?php echo $catValue ?>").html(data);

});
}
</script>'

in the forloop it doesn't seem to work.

Im making a supplies list that automatically updates every few seconds to show when a user when another user has grabbed the supply needed.

When I hard code the redirects in the jQuery script it works but I can't differentiate the catergories.



Do you guys have any ideas on how I might solve this problem.
  Reply


Messages In This Thread
Automatic refresh - by lefox - 06-03-2016, 08:57 AM
Automatic refresh - by brian - 06-03-2016, 11:30 AM
Automatic refresh - by lefox - 06-06-2016, 04:30 AM
Automatic refresh - by brian - 06-06-2016, 10:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)