Languages

Menu
Sites
Language
is it right? (jQuery API:Support for backward compatibility)

I'm sorry because of using poor english..^^;

 

I can't believe   ==>    jQuery API:Support for backward compatibility   

most of tizen2.3 samples make by jQuery... but  tizen2.3 documents says  jQuery API is just Suport for backward compatibility.. and TAU API:RECOMMEND

Is it right???  

 

 

and  I use TAU API..  It's not easy to use...

for example..

1. tau.widget.[object]  ...   

    var button1 = tau.widget.Button(document.getElementById("button1"));
    var textInput1 = tau.widget.TextInput(document.getElementById("textinput1"));
    var label1 = tau.widget.TextInput(document.getElementById("label1"));   <--- how can i use <label> tag  which tau.widget.???  or other tags which is not supported tau's widget name???
   

 

2. how can I  make event by TAU API (Widget)     

tau.event.on(document.getElementById("button1"), "tap", function(event){   --> is it right???  first parameter use javascript element.. is there any method by using tau.widget?

 
3. how can I  read and write by using Widet..??    
        textInput1.value().element.value  --> is it right?  It seems confused...   is there any simple way??

        textInput1.value("111"); -->tau.widget.Button's value is work. but  TextInput's value is not work..becasuse it needs object.. It's  alse confused...  

ex)   Button1.value("AAA") -> works...     TextInput1.value("BBB")->not work.. how can I set the TextInpu1's value..

        //$("#label1").text($("#textinput1").val());  --> jQuery is simple and good work..
    });

thanks for reading... ^^

Edited by: 병옥 이 on 13 Nov, 2014
View Selected Answer

Responses

6 Replies
John Ixion

Hi,

This explains the rationale behind TAU http://download.tizen.org/misc/media/conference2014/slides/tdc2014-apps-on-your-hands.pdf

병옥 이
Thanks.. Document is very useful to me
병옥 이
Thanks.. Document is very useful to me
Mark as answer
Konrad Lipner

Hi :)

First of all - TAU is not based on jQuery because of performance. It is written in pure JS. It is tuned to work good on Tizen.
About your examples:
1. All widgets that are not in TAU must be handled by developer. TextInput can find its label and add styles, but does not nothing else with it. You can:
var label1 = document.getElementById("label1");
label1.innerHTML = "Name:";

2. Yes, you are correct. You can do it also:
var button1 = tau.widget.Button(document.getElementById("button1"));
button1.on("vclick", function(e){
or
document.getElementById("button1").addEventListener("vclick", function(e){

3. You are right, this is a problem with text input - it is not consistent with other widgets. You can change its value by:
var textInput1 = document.getElementById("textinput1");
textInput1.value = "BBB";
This should be fixed.

병옥 이
very very thank you..
병옥 이
very very thank you.. I understand. Good answer. .