www.webdeveloper.com
Results 1 to 3 of 3

Thread: yui button vs standard html <button>

  1. #1
    Join Date
    Dec 2010
    Posts
    40

    yui button vs standard html <button>

    hi,
    i am trying to understand when should yui push button be used instead of just standard <html> button. example is given at yui site:

    http://developer.yahoo.com/yui/examp...example01.html

    If I just have a button on click of which I should do some calculation, should i use standard <button>, attach event handler to it or should i create a new button using yui button constructor first and then handler?
    var oPushButton1 = new YAHOO.widget.Button("pushbutton1");

    there is existing code that i have inherited for maintainence and in some plces, button is being instantiated using yui constructor and at other places, only <button> is being used.I am confused between when to use what.
    thanks in advance.

  2. #2
    Join Date
    Jan 2011
    Location
    United Kingdom, London
    Posts
    117
    YUI button is simply wrapper around button that add some functionalities, there is no way to say which one should be used when it's your choice.
    Javascript, jQuery / Prototype & PHP expert ready to complete your work on Freelancer.co.uk - Hire Me at https://www.freelancer.co.uk/users/1...&action=hireme

  3. #3
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    a regular button clicks just fine. if it were a slider or progress bar something, yui is worth considering. but a button? just use html.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles