+ 3

Refresh a webpage automaticaly

I want to refresh my website when we include new files.... How can i do it using php or js

26th May 2018, 5:33 AM
DarkZeus
DarkZeus - avatar
8 odpowiedzi
+ 3
Xpl0it, you're right! it's easier to do using AJAX, I could have given him the guide but the tag says PHP or Javascript
26th May 2018, 2:19 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 6
//js file.onload = window.location.reload(true)
26th May 2018, 5:49 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 3
yes! let's say you want to refresh a single image on your site, you can do that by shaking the source(using javascript to set the source to the same thing)
26th May 2018, 2:09 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 1
can i use this for specific location in page
26th May 2018, 5:54 AM
DarkZeus
DarkZeus - avatar
+ 1
If you want to reload only a certain module and not the entire page, use Ajax.
26th May 2018, 7:25 AM
Xpl0it
Xpl0it - avatar
+ 1
Yeah. I'm talking about using Ajax for more difficult tasks like passing back results from his database to populate, say, a list of users in a table or something like that. For basic stuff like images, I'd go with what you're offering.
26th May 2018, 2:11 PM
Xpl0it
Xpl0it - avatar
+ 1
True. Valid point.
26th May 2018, 2:25 PM
Xpl0it
Xpl0it - avatar
+ 1
Can i have the guide with ajax please...
29th May 2018, 2:16 AM
DarkZeus
DarkZeus - avatar