Languages

Menu
Sites
Language
Code not run with TIZEN emulator but run on browser

Hi,

My code is run on browser but not on emulator.I want to change image of select option button on button click.It work fine with browser but not on emulator.

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="Tizen basic template generated by Tizen Web IDE"/>

    <title>Tizen Web IDE - Tizen - Tizen basic Application</title>
    
    


<script type="text/javascript" src="js/ddslick.js"></script>

    <link rel="stylesheet" type="text/css" href="css/style.css"/>
    <script src="js/main.js"></script>
    <script src="js/momo.json"></script>
    <script src="js/moh.js"></script>
</head>

<body>

  <select id="demo-htmlselect">
        <option value="0" data-imagesrc="images/m.jpg"
            data-description="Description with Facebook">Facebook</option>
        <option value="1" data-imagesrc="images/k.jpg"
            data-description="Description with Twitter">Twitter</option>
        
    </select>

 

<input type="button" id="make-it-slick" value="click me">
</body>
</html>

js file is

$(document).ready(function(){
    $('#make-it-slick').on('click', function(){
        $('#demo-htmlselect').ddslick();
    });

});

json file

var ddData = [
    {
        text: "Facebook",
        value: 1,
        selected: false,
        description: "Description with Facebook",
        imageSrc: "images/m.jpg"
    },
    {
        text: "Twitter",
        value: 2,
        selected: false,
        description: "Description with Twitter",
        imageSrc: "images/p.jpg"
    }
    ];

 

please help me.My code is running on browser but not on emulator.When i right click on index.html and open it with web browser it work fine.

 

please help me

thanks in advance

Thanks and regards

Mohit Kumar

Responses

4 Replies
Marco Buettner

You use jQuery functionalities without the jQuery plugin.

Seoghyun Kang

Hello,

 

Please check whether it works well on the Tizen Web Simulator.

If it works well, please check the jQuery link as Marco Buettner's comment.

If there is no problem, please attach the full code. I will check it.

 

Thanks.

                                          

 

 

AVSukhov

Hello,

Try to launch app in Debug as.. mode and see console log.

Jean Yang

I try to run this code on the Tizen Web Simulator and it looks work well. Anyway with two options selection list and button displayed well.

But for the functionality is correct or not it depends on the specific code logic.