Languages

Menu
Sites
Language
How to devide html to css and js in dynamic box prject

I am working to build tizen dynamic box project.

I wanna devide file css, javascipt in html.

But if I do that, js code doesn't work.

I think 

That project doesn't read js file in dynamic html.

I am trying to build in tizen dynamicbox sample project.

 

box> index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <title>Web Dynamic Box</title>

        <script type="text/javascript" src="./js/jquery-1.8.2.js"></script>
        <script type="text/javascript" src="./js/jquery.mobile-1.2.0.js"></script>
        <script type="text/javascript" src="./js/main.js"></script>

     </head>
        <body bgcolor="#99CCFF" text="#FFFFFF">
        <div id="demo">Web Dynamic Box</div>
        <div id="demo">This is a Box.</div>
        <div id="fromPd"></div>
    </body>
    
</html>

js >jquery.mobile-1.2.0.js , jquery-1.8.2.js , main.js

 

js > main.js

$(window).load(function() {
    console.log("111");
});

$(document).ready(function() {
    console.log("222");
}); 

$(function() {
    console.log("333");
}); 

 

I can't see logs in console.

 

 

 

 

Responses

1 Replies
talari praveen kumar