AnsweredAssumed Answered

Understand YUI component in share page

Question asked by need on May 11, 2012
Latest reply on Jan 18, 2014 by zladuric
Hi all,

I'm trying to put a button on the page of search results, when the user clicks the button the action that is generated is equal to the one you run when you click on the action in the copy detail pages document.

since it is the first time I interact with the YUI libraries, I do not understand why if I add this simple code in a search.js page:

var oButton = new YAHOO.widget.Button({
                id: "copy-button",
                type: "button",
                label: "Copy",
                container: "someelement"
            });
           
            alert("oButton===>"+oButton);

i see in alert a oButton===>button copy-button, I should not see the button in html?

I read this:

http://developer.yahoo.com/yui/examples/button/btn_example01.html

Thanks at all.

Outcomes