언어 설정

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 댓글
Marco Buettner

I think dynamicBoxviewer has no jQuery include

eunjin chun

Yes, I see.

I have solved problem. 

 

before 

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

after

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

 

folder address wrong

so, "dot" added.  

hahahah ^-^;;;