Live Edit - Javascript in deeper directory not working

Not sure if this is a as intended thing but as soon as I move the javascript into the deeper directory live edit ceases to watch it.If xloop.js is in the same directory it work fine however move it to the javascript directory and it ceases to work if xloop.js is modified


wtf.html

<!DOCTYPE html>
<html>
<head>
    <title>WTF</title>
    <script src="js/jquery-1.7.1.min.js"></script>
    <script src="js/jquery-ui-1.8.18.custom.min.js"></script>
    <script src="javascript/xloop.js"></script>
    <script>
    doPoll();
    </script>
</head>
<body>
<div id="ctr">0</div>
</body>
</html>


xloop.js

var counter = 0;

function doPoll(){
    $("#ctr").html(counter.toFixed(1));
    counter+=0.5;
    setTimeout(doPoll,1000);
}
3 comments

EDIT: SOLVED - sort of. This works on my home machine so I still dont know what is going on with my work computer.


Oops: code didnt show:

wtf.html

<!DOCTYPE html>
<html>
<head>
    <title>WTF</title>
    <script src="js/jquery-1.7.1.min.js"></script>
    <script src="js/jquery-ui-1.8.18.custom.min.js"></script>


    <script src="xloop.js"></script> <---------------- WORKS!
    <script src="js/xloop.js"></script> <------------------ Doesn't Work


    <script>
    doPoll();
    </script>
</head>
<body>
<div id="ctr">0</div>
</body>
</html>


xloop.js


var counter = 0;


function doPoll(){
    $("#ctr").html(counter.toFixed(1));
    counter+=0.1;
    setTimeout(doPoll,1000);
}

0

[SOLVED] I simply deleted the Deployment.

File > Settings > Deployment > Hit the Minus and Apply.

0

Please sign in to leave a comment.