yui

YUI drag&drop proxy drag

Question for YUI experts... I have a table and I've made each cell of the first row draggable by proxy. In IE, when the drag proxy is released, the original table cell actually jumps to wherever the release point was. How can I prevent this from happening? Essentially, I want to know where the proxy was dropped and handle my logic from ...

YUI Reset CSS Makes <strong><em>this not work</em></strong>

This line in YUI's Reset CSS is causing trouble for me: address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; } It makes my em not italic and my strong not bold. Which is okay. I know how to override that in my own stylesheet. strong, b { font-weight: bold; } em, i { font-style: italic...

Does a YUI Compressor GUI App Exist?

I recently discovered Yahoo's YUI Compressor software and started using it on my website. What I'm disappointed about with the software is its lack of a GUI, as well as a lack of a way to combine files. Does anyone know of a project which uses the YUI Compressor as a backend that provides a GUI front-end with the ability to combine fil...

Can I put an ASP.Net session ID in a hidden form field?

I'm using the Yahoo Uploader, part of the Yahoo UI Library, on my ASP.Net website to allow users to upload files. For those unfamiliar, the uploader works by using a Flash applet to give me more control over the FileOpen dialog. I can specify a filter for file types, allow multiple files to be selected, etc. It's great, but it has the f...

What are the best strategies for using multiple AJAX libraries?

What experience can you share about using multiple AJAX libraries? There are useful features in Prototype, some in jQuery, the Yahoo library, etc. Is it possible to include all libraries and use what you want from each, do they generally all play nicely together with name spaces, etc. For the sake of speed is there a practical limit to ...

Trouble having a modal dialog to open a secondary dialog

I have a modal dialog form which has some "help links" within it which should open other non-modal panels or dialogs on top of it (while keeping the main dialog otherwise modal). However, these always end up behind the mask. YUI seems to be recognizing the highest z-index out there and setting the mask and modal dialog to be higher tha...

Avoid hanging when closing a Yahoo map with lots of markers

I have a Yahoo map with lots of markers (~500). The map performs well enough until I close the page, at which point it pauses (in Firefox) and brings up a "Stop running this script?" dialog (in IE7). If given long enough the script does complete its work. Is there anything I can do to reduce this delay? This stripped down code exhibits...

YUI Autocomplete renders under other page elements in IE7

I'm working now on a page that has a column of boxes styled with sexy shadows and corners and whatnot using the example here. I have to admit, I don't fully understand how that CSS works, but it looks great. Inside the topmost box is a text-type input used for searching. That search box is wired up to a YUI autocomplete widget. Every...

Is the YUI Loader Utility reliable?

I've been using the YUI Components and want to begin using the Loader Utility to specify my dependencies on my page. From your experience, is the YUI Loader Utility a reliable way to load Javascript dependencies in web pages? ...

Any Yahoo YUI validation framework that I can implement in asp.net MVC?

Hi, Has anyone seen a Yahoo YUI validation framework that I could implement into asp.net MVC? I've seen a jQuery one but I want to work wit YUI. ...

Grails with YUI table example

Does anyone have an example using the table object in YUI library. More specifically, I'd like to dynamically load it from JSON or SQL? http://www.grails.org/YUI+Plugin ...

ASP.NET MVC and...YUI? jQuery? Other

After the last project I've done using WebForms, I've decided to pass on using that framework in the future. It's great for getting your basic features out there...not so great when you have more complex UI logic. I'm looking at ASP.NET MVC, and like what I see so far. Of course the issue is that you lose the server side controls when y...

Yui, how to remove the margins for a 2 column layout?

I want the 2 columns to touch ie. remove the margins, how can I do this? My code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>testing</TITLE> <!-- css --> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/reset-fonts-grids/reset-fonts-grids.css"&gt; <!-- js...

How do I have YAHOO.util.KeyListener disabled when an input element is focused?

I have a MenuBar setup with YUI's MenuBar widget, and I have a YAHOO.util.KeyListener attached to 'document' to get quick keyboard access to the menus and submenu items (e.g. 's' to open the Setup menu). The problem is that the keylistener will still fire when a user is in an input element. For example, a user might be typing 'soup' in...

Am I subscribing to YUI Menu events improperly?

I've read and followed YUI's tutorial for subscribing to Menu events. I also looked through the API and bits of the code for Menu, MenuBar, and Custom Events, but the following refuses to work // oMenuBar is a MenuBar instance with submenus var buyMenu = oMenuBar.getSubmenus()[1]; // this works buyMenu.subscribe('show', onShow, {foo: ...

Prevent Default Behavior in Key Listeners in YUI

I have a web page where I'd like to remap Ctrl+N to a different behavior. I followed YUI's example of register Key Listeners and my function is called but Firefox still creates a new browser window. Things seem to work fine on IE7. How do I stop the new window from showing up? Example: var kl2 = new YAHOO.util.KeyListener(document, { c...

Can I speed up the YUI layout manager, when I have a large table on the page?

I am using the YUI layout manager which seems to work at an OK speed. However if the page contains a large <Table> with about 500 rows, the YUI render() function takes about a minute longer to run. When I open the same page without the layout manager it opens in less than a second. My only concern is with IE 7. I tried it on firefox an...

Batch file uploading with a flashplayer dialog.

I'm currently looking at ways to allow people to select multiple files at once to batch upload images. I'm evaluating these options for my ASP.NET web app: YUI Uploader Flajaxian SWFUpload Dojo Toolkit Multi file uploader I'm leaning toward YUI because the documentation is clear and I basically already wrote the file uploaders and th...

Mixing jQuery and YUI together in an app, is it easily possible?

I have to preface this with the fact that I love jQuery as a JavaScript language extension and YUI as a rich set of free controls. So here is my question, is there going to be any problems down the line if I mix jQuery and YUI together in an MVC app I am working on. I want to use jQuery for the heavy lifting on the DOM and I want to us...

YUI Uploader 2.6.0 example

I'm trying to simply use some of the examples and instructions regarding the YUI-Uploader, and I'm being frustrated by a number of issues. The "YUI Library: Uploader" cheat sheet's simple use case doesn't work for me because all the listed methods except addListener() do not exist on the myUploader object. The example is for version 2....