Reputation: 9293
Something strange is happening using jquery .load()
function.
$('#divR').load('clock01.html');
Nothing happens - many times. Or, just a part of the file is loaded, but it is scattered around the screen.
Then I tried inside #divR
:
<?php include "clock01.html"?>
// always works ok
And then again
$('#divR').load('clock01.html');
//always works, but only after php include
Tested about 10 times, without exception. What could be the reason ?
I regularly cleared the browser cache, each time.
Upvotes: 0
Views: 254
Reputation: 11104
There is some possibility's
first check your error console using F12
or cntrl+sift+j
1. Have u declared div
with same id like 'divR'
2. Do you included jquery
lib ?
u put block after html put after a page not after html
Upvotes: 1