Share

YUI Library

Tracker: Bugs

5 [#2259230] Button control doesn't work with Loader - ID: 2132372
Last Update: Comment added ( gpuckett )

The YUI Loader doesn't work with the Button Control. Use the attached file
to test -> it throws the error "YAHOO.widget.Button is not a constructor".

When I replace the YUI Loader with the Javascript-Includes at
http://developer.yahoo.com/yui/button/ everything works fine.


Bernhard Schmidt ( nuramon ) - 2008-09-27 15:23

5

Closed

Invalid

george puckett

Loader

2.5.2

Public


Comments ( 5 )

Date: 2009-01-24 07:22
Sender: gpuckettProject Admin

The YUI project has been migrated from Source Forge to YUILibrary.com.
This ticket has been moved to the tracker on YUILibrary.com that
corresponds to the project it was filed against (YUI2, YUI3, Compressor,
etc.). All tickets not yet closed on Source Forge have been transferred
with their current state intact. The Source Forge instance of all tickets
is being marked as closed to avoid confusion. You can track the
status/progress of this ticket at http://yuilibrary.com/ using the same
ticket ID as it held in Source Forge.


Date: 2008-10-19 02:22
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2008-10-03 20:24
Sender: adammooreProject Admin

http://developer.yahoo.com/yui/yuiloader/#using

The files are loaded asynchronously, so you need to put your
implementation code inside of the onSuccess callback:

var loader = new YAHOO.util.YUILoader({
require: ["button"],
onSuccess: function() {
var oButton = new YAHOO.widget.Button("examplebuttonid");
}
});
loader.insert();



Date: 2008-10-03 20:23
Sender: adammooreProject Admin

http://developer.yahoo.com/yui/yuiloader/#using

The files are loaded asynchronously, so you need to put your
implementation code inside of the onSuccess callback:

var loader = new YAHOO.util.YUILoader({
require: ["button"],
onSuccess: function() {
var oButton = new YAHOO.widget.Button("examplebuttonid");
}
});
loader.insert();



Date: 2008-10-03 20:14
Sender: gpuckettProject Admin

This bug report is being forwarded to the author or current owner of the
affected component for additional investigation and response.


Attached File ( 1 )

Filename Description Download
test.html Test page Download

Changes ( 10 )

Field Old Value Date By
assigned_to adammoore 2009-01-24 07:22 gpuckett
allow_comments 1 2009-01-24 07:22 gpuckett
close_date 2008-10-03 20:23 2008-10-19 02:22 sf-robot
status_id Pending 2008-10-19 02:22 sf-robot
close_date - 2008-10-03 20:23 adammoore
status_id Open 2008-10-03 20:23 adammoore
resolution_id None 2008-10-03 20:23 adammoore
summary Button control doesn't work with Loader 2008-10-03 20:14 gpuckett
assigned_to nobody 2008-10-03 20:14 gpuckett
File Added 295095: test.html 2008-09-27 15:23 nuramon