How can i put variable into "load" function ? - i need to recover source filename and put in location
function updateClock() {
var loc = $(location).attr('pathname');
// $("#clock").load('index.php #clock'); <- this one is working but I need variable
$("#clock").load('$loc #clock'); < -problem with $loc variable(how to implement)
}
$(document).ready(function() {
setInterval('updateClock()', 1000);
});