Hi all,
I got a strange issue today while working on ExtJS charts. I am trying to use some of the events for the chart when user clicks on the chart items. I found the following events are available:
itemclick, itemdoubleclick, itemdrag, itemdragstart, itemdragend, itemmouseover, itemmouseout
Here is my test chart where I have impleme...
Hi,
I am using a datatable loaded via JSON with date like this : 2010-06-03
With Opera and Chrome I have the correct date displayed as 06/03/2010. With Firefox Windows (even in safe mode, without any plug-in), I get a NaN/NaN/NaN. If I use the debug console, I see a valid date, but in Firefox Windows I can see a "Invalid date".
Bonus, ...
Is there a way that you can pass in a javascript object to a yui aSync request or does it only accept a URI?
...
I have a richEditor (GRAILSUI) and on page load, I want to hide the editor. I want a link to show it. How to do ?
I make this but it's not working :
GRAILSUI.myeditor.hide()
Thanks a lot
...
I have a page in Quirks mode (no DOCTYPE). I'm trying to show a YUI modal dialog. And it shows correctly under Chrome & FF. But in IE7, when the dialog pops up, the font size of all the other elements on page becomes smaller. And it remains like that, even after I dismiss the dialog.
This isn't a problem for IE7 in Standards mode. But i...
I am working on a Yahoo! App and want to utilize YUI Features available, however, I haven't figured out a way to include the YUI Libraries in my App as yet. I was of the opinion that the Libraries will be a part of the App by default but seems its not true in my case.
I have tried including the Libraries in my Code but it fails with an ...
In grails, I use the mechanism below in order to implement what I'd call a conditional server-side-triggered dialog: When a form is submitted, data must first be processed by a controller. Based on the outcome, there must either be a) a modal Yes/No confirmation in front of the "old" screen or b) a redirect to a new controller/view repla...
I'm sure this has been asked a million times, but what is the accepted approach to this?
I have been writing php code for a while and up until recently I only copied+pasted javascript code, but now with help from YUI I've begun to understand javascript and want to use it more in an existing web app I have. I want to get various amounts...
I am using YUI to test my JavaScript app, and want to integrate the test results into my CruiseControl build system. How can I use CruiseControl to run the tests? I initially thought about using the JUnit plugin to drive the tests, but that is a no go.
Does anyone else have this working?
(Please note: Changing either YUI or CruiseCont...
I'd like to call a simple YUI3 function from within a JavaScript function.
Here is some code that does what I want in a very verbose way:
function changeContent (message) {
YUI().use("node", function(Y) {
Y.all('#content-div').setContent(message);
});
}
Is there a better way to do this?
NOTE: I don't want to attach th...
I'm using a YUI DataTable with a checkbox column like this:
var myColumnDefs = [
{key:"check", label:'', formatter:"checkbox"},
{other columns...}
];
How can I iterate over all the rows that have been checked?
UPDATE
Here is my current work-around:
YUI().use("node", function(Y) {
var recor...
Hello,
I have a YUI datatable and I have a function which is invoked when I click on a row:
...
YAHOO.keycoes.myDatatable = myDatatable;
...
myDatatable.subscribe("rowClickEvent", oneventclickrow);
var oneventclickrow = function( args ) {
...
}
I'd like to invoke the function subscribed to rowClickEvent on the row which is curren...
jQuery has handy .height() and .width() utilities to get calculated displayed size of a DOM element. It also has .position() to get coordinates. In YUI3 Node, I see that there are .getX(), .getY() and .getXY() utilities to get position, but I do not see anything for size (or can't look).
What's a good way to get element height and width...
Hi all I have (just like the rest) inherited some struts 1 code. I have had need to add a few more pages to this project.
What I cannot figure out is how to map several distinct but similarly natured input elements to my ActionForm.
Let me elaborate. I create a new <Input> element dynamically as the user inputs more and more items (I ...
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function(){
YAHOO.dateSelects.exc = new YAHOO.widget.Calendar("exc","excContainer",
{ title:"Choose a date:", close:true, multi_select:true });
YAHOO.dateSelects.exc.render();
YAHOO.util.Event.addListener(
"excshowup",
...
Hello,
I Jquery, one can attach/register an event for dynamic content( which loaded later, through ajax) through live() method. Is there anything similar in YUI
thanks.
...
I have a a set of yui buttons generated using the standard yui html.
<span class="yui-button yui-checkbox-button" id="analystbutton1">
<span class="first-child">
<button type="button" class="facetbutton" tabindex="0" id="analystbutton1-button">
Joe Bloggs
</button>
</span>
</span>
I create the butto...
So i have a set of checkbox buttons generate using YUI markup and javascript.
They have a function listening for an onclick event.
var onFacetClick = function (e) { // e is the event
console.log(e);
alert(this.get('value'));
alert(this.get('checked'));
submitForm();
};
When I click on the checkbox the function gets called, ...
We are using YQL to get the Profile Information in a Yahoo! App using YAP, however, we are facing an error while executing the YQL Query. We are using OpenSocial Gadget AJAX Functionality for making the call.
Following is the error message we are getting:
{"error":{"lang":"en-US","description":"Authentication Error. The table social.pr...
So if I'm using the YUI loader (on Yahoo's servers) to serve JavaScript, and I tell it to use combinations so several YUI Widgets can be downloaded by the browser in a single request, doesn't that make it much more difficult for the browser to cache the JavaScript?
Say I have a site with two pages, and the first one uses the YUI Calenda...