yui

YUI AutoComplete Example Problem

Hi. I was hunting for an implementations of YUI AutoComplete and I came across this script from the site asklaila.com - <script type="text/JavaScript"> YAHOO.example.ACJson = new function() { this.oACDS = new YAHOO.widget.DS_XHR("/AutoComplete.do", ["Suggestions[0].Results","Name"]); this.oACDS.queryMat...

YUI Uploader in jQuery Draggable

I have a YUI-Uploader lying in some Element, which is a jQueryUI-Draggable. After clicking the Uploader-Button which opens the File-Select-Dialog, the Draggable got a MouseDown-Event => is sticky at my mouse. How can I prevent the YUI-Upload-Button from bubbling the MouseDown-Event? In Webkit the Upload-Button (which is a transparent F...

YUI dataTable row expandable/collapsible

Does someone have already made a script as following examples with YUI dataTable ? Example : http://extjs.com/deploy/dev/examples/tree/column-tree.html http://extjs.com/deploy/dev/examples/grid/grid-plugins.html I am looking for an example which produce same thing under YUI dataTable. I see this example with yui dataTable (http://www...

YUI MenuButton: menu doesn't show when menu widget is added to button widget

Hi, Using YUI, I want to create a menu button, passing in the menu widget instance. Result is what looks like a menu button, but the menu doesn't show. test case: http://sandbox.kluger.com/menu_test.html // key code section: var D = YAHOO.util.Dom, menu = new YAHOO.widget.Menu(D.generateId(), {lazyload: true}); menu....

jquery autogrow with yui-reset causes bad behavor in IE7

I am using YUI reset and jquery AutoGrow together on the same site. It works fine on firefox, but IE 7 behaves badly. The textarea grows way to big with even a small amount of text in it. Below is an example that demonstrates the problem. If I comment out the reset stylesheet, the autogrow behaves properly. I am hoping there is some si...

What's the closest jQuery approximation to YUI's DataTable?

My two highest priorities are progressive enhancement and inline editing. I've found progressive enhancement (DataTables) and inline editing (jqGrid), but not both. Support for jQuery UI themes would be nice, but is a lower priority. Thanks. UPDATE: Here's an example of what I'm imagining the solution would resemble: <table summary="A...

Do Drupal and YUI play well together?

We are putting together a website for a client and their IT Team have ask us if we can use Drupal and YUI together. We have not use both products before, but we have no reason why not to use them. We have heard good things for both, the only concern that we have is the actual integration, since drupal is a CMS and YUI is a framework....

Making the YUI TestLogger show only tests that fail?

I've been using the YUI Test framework to do TDD with JavaScript but the default TestLogger shows all sorts of messages, not just the FAIL ones. This makes scanning the log for failures an exercise in tedium, or you have to play whack-a-mole on the filter checkboxes. Is there any way to make the toggle switches on the logger window stay ...

Yahoo UI Tabview with embedded SWF

Hello, I have a flash app embedded in a yui TabView tab div, the problem is that each time I click the tab with the flash app, the flash app reloads. Does anyone have any information on this? ...

Creating a document fragment in YUI 2.x

Is it possible to create a document fragment from a string and get a reference to it using the YUI 2.x API? If so, how is it done? ...

Where can I catch up on event bubbling in web programming(Esp. RE: the YUI)?

Dear Stackoverflow; Can you provide some good reading material on event-bubbling, especially in regards to the Yahoo User-Interface libraries (YUI) ? ...

How do I get the select box values in YUI 3?

In YUI 3 I have a node that is my select box: Y.get('#regionSelect'); How do I get the <option> values that are currently selected (even if there are more than one?) Also, is there a tutorial out there that tells me explicitly how to do this (I don't want to serialize a whole form)? ...

Is it possible to have yui editor change paragraph style without selecting text?

Is it possible to change the behavior of the yui text editor so that when you make markup changes (via the toolbar bar buttons), for example changing from a paragraph to say a heading or to a list, and you dont have any text selected it assumes you mean the current block that the cursor is in So to change a paragraph to a heading rather...

Weird browser / ajax error : Extra junk appears at the end of javascript files in firefox

This is a weird one. We're writing a Django application with some rich javascript UI, using both Yahoo YUI and jQuery. Our main page template now includes a fair number of js files. And we're starting to see a strange error in Firefox (3 and 3.5) . Sometimes the javascript crashes. And inspecting in Firebug we see that a syntax error o...

Javascript Selectbox refresh necessary in YUI 3, when selecting none?

Hi all, I'm using YUI 3 to let someone click "Select All" or "Select None" and then have the selectbox select all the items or unselect all of them, respectively. Here's my code: // This selects all Y.on('click',function (e) { selectBoxNode.get("options").each(function () { this.removeAttribute('selected'...

How does alfresco's javascript( not webscript) mechanism

When I play with alfresco share, I found it is difficult to track the UI and javascript. you can only see some class name in the HTML tags, But you are difficult to know how are they constructed, And When, where and how can these scattered HTML code can render such a fancy page. Can someone help me ? Please offer several example and...

Putting a YUI Button in DataTable

I've got a YUI DataTable with various columns that represents a list of users. I would like to add a column that contains a button in each row with a specific label (say, "grant access") and which invokes some function when clicked. Is this possible? I've tried checking the YUI documentation, but as far as I can see, they don't allow yo...

stopPropagation not working for KeyListener in YUI 2.7

I have created a new YAHOO.util.KeyListener to attach to a specific element and have also created another new YAHOO.util.KeyListener to attach to the entire document. They are both associated with the "enter" key (keys:13). In the handler function for the listener attached to the specific element, I have the following code: ...

How to display images in datatable?

How to display an image instead of a bool value in a cell in datatable? The datatable is associated with a datasource. ...

What are the arguments against using a JavaScript Framework for a Web site development company?

Our company builds websites and web applications. We are a small firm and our team of developers are always building the javascript functions from scratch or copying from other websites built by us. Every time I bring to the table the word standardization and using a JS framework like JQuery, Prototype or any other, I am told Framework...