Languages

Menu
Sites
Language
String is not binding in web widget

I am new to tizen development. I developed a web app for tizen but now i trying to develop a web widget which will collect data from my web application. my problem is i can't show a string on the widget body. 

any help for me ??? 

i am seeing this

https://developer.tizen.org/development/training/web-application/getting-started/creating-your-first-tizen-wearable-web-widget-application

and adding my string in the widget like this 

document.getElementById("name").innerHTML = "My String";

Responses

3 Replies
Iqbal Hossain

Web widget is little different from traditional tizen web app. I just found this works fine in widget 

document.getElementById("name").textContent = "My String";

 

Iqbal Hossain

Did you solve your problem ?

manish d

yes solved