'Jquery Stop Settimeout Function on hower
Hi a have a static page, on this page i am getting data from a PHP File with ajax (Table). This ajax function have settimeout value. (1 second.) But i can't use table delete buttons. Because my table refresh is very fast. How i can make when my mouse on hover this table, my jquery settimeout function will disable. And my mouse location go to out of table settimeout will return again.
My Codes;
<script type="text/javascript">
$(document).ready(function()
{
GetTable();
});
function GetTable(){
$('#Table').load('gettable.php', function(){
setTimeout(GetTable, 100);
});
}
</script>
Solution 1:[1]
for guild in client.guilds loops through all the guilds. Then you just have to check if the channel with "giveaway-index" is in the guild and send the message.
@client.event
async def on_message(message):
if message.author == client.user:
return
if "GIVEAWAY" in message.content:
if message.author.id == 294882584201003009:
for guild in client.guilds: # looping through all guilds your bot is in
channel = discord.utils.get(guild.text_channels, name='giveaway-index') # getting channel
if channel: # checking if channel is in the guild
await channel.send("blah blah blah")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
