Languages

Menu
Sites
Language
Error ajax in Dynamic Box(Widget)

function : get API data in dynamic box(widget)

 

>> DynamicBox project --> box(folder)--> widget.html

<script>

function getAPIDatanfo(){
        $.ajax({
                url : "http:~"

 

>>Console error msg

box/widget.html?type=pdopen&width=175&height=175&pdopen-direction=down&pdopen-arrow-xpos=87 (54) :ReferenceError: Can't find variable: $

 

widget.html  can't get api data in dynamicboxviewer, but it can in dynamicbox application.

 

 

Responses

2 Replies
Alexander AVSukhov

Hello,

You need export Jquery to your widget.

<script src="tizen-web-ui-fw/latest/js/jquery.min.js"></script>

Maksym

Do noy use jQuery, use Native Javascript!