yui

What's this UI pattern called?

北战南征 提交于 2019-11-28 23:32:26
问题 I'm trying to figure out what this sort of thing is called, and eventually how I can create one in a web browser. It looks like this (screenshot of the first app that came to mind): The specific component/pattern I'm looking for is the two list boxes ("Included Gear" and "Excluded Gear") that represent inclusion/exclusion of items from a set. I'm not really looking for the WPF name (if there is one) but it might be helpful. I am looking for the name of this thingy, if there is one, and if you

Yui compressor StringIndexOutOfBoundsException on jboss

我的未来我决定 提交于 2019-11-28 20:48:54
When minimising yui with 2.4.6, I get this problem: java.lang.StringIndexOutOfBoundsException: String index out of range: 232 at java.lang.String.substring(String.java:1934) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSourceString(JavaScriptCompressor.java:267) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:330) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:533) It works when started through my IDE but when deployed to jboss it doesn't. This place: http://yuilibrary.com/forum/viewtopic

What advantages does jQuery have over other JavaScript libraries?

折月煮酒 提交于 2019-11-28 20:30:58
I am trying to convince those who set standards at my current organization that we should use jQuery rather than Prototype and/or YUI. What are some convincing advantages I can use to convince them? Jahangir The 3 main advantages of jQuery are: its light weight when compared to other javascript frameworks it has a wide range of plugins available for various specific needs it is easier for a designer to learn jQuery as it uses familiar CSS syntax. jQuery is Javascript for Designers I would say my top reasons for using JQuery are: Large development community and many plugins. It's on Microsoft's

How to automate JavaScript files compression with YUI Compressor?

我怕爱的太早我们不能终老 提交于 2019-11-28 18:54:17
YUI Compressor does not accept wildcard parameters, so I cannot run it like this: C:>java -jar yuicompressor.jar *.js But I have over 500 files and would rather not have to create a batch file like this: C:>java -jar yuicompressor.jar file1.js -o deploy\file1.js C:>java -jar yuicompressor.jar file2.js -o deploy\file2.js ... C:>java -jar yuicompressor.jar file500.js -o deploy\file500.js And of course my file names are not in such uniform way. Is there way to automate this without writing any code? :) I might go for a makefile (I think it would probably be more maintainable long term), but if

how to implement facebook like notification?

荒凉一梦 提交于 2019-11-28 14:39:33
问题 I am trying to implement a Facebook-like live notifications system to notify users whenever someone adds them as friend, like their post or posts replies to their comments. All the database and PHP part is done, but I can't figure out how to implement it like Facebook has. Whenever someone likes/comments on your post in Facebook the light blue box appears at the bottom left corner of the screen. This happens as soon as someone hits like button or posts comment in Facebook. I would like to

Javascript: simulate a click on a link

我的未来我决定 提交于 2019-11-28 08:00:14
问题 I have a link that has a listener attached to it (I'm using YUI): YAHOO.util.Event.on(Element, 'click', function(){ /* some functionality */}); I would like to the same functionality to happen in another scenario that doesn't involve a user-click. Ideally I could just simulate "clicking" on the Element and have the functionality automatically fire. How could I do this? Too bad this doesn't work: $('Element').click() Thanks. 回答1: MDC has a good example of using dispatchEvent to simulate click

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

邮差的信 提交于 2019-11-27 23:30:12
问题 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 use YUI for the rich user control set. This is an internal application and will never see the light of day outside of the organization I work for. If anybody has

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

一笑奈何 提交于 2019-11-27 22:16:00
问题 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; } The problem comes in when I have text that's both em and strong . <strong>This is bold, <em>and this is italic, but not bold</em></strong> My rule for strong makes it bold

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

╄→гoц情女王★ 提交于 2019-11-27 21:34:50
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 following documented limitation: Because of a known Flash bug, the Uploader running in Firefox in Windows does not send the correct cookies with the upload; instead of sending Firefox cookies, it sends Internet Explorer’s cookies for the respective domain. As a

What http status code is supposed to be used to tell the client the session has timed out?

依然范特西╮ 提交于 2019-11-27 18:04:46
In a webpage, it uses YUI connection manager/datasource to send AJAX requests to the server, if the session (which contains the info on whether the user has been authenticated) has already timed out, those ajax responses that can only be viewed by authenticated users should return an http status code, telling the client that the session has already timed out, then the client either simply redirects him to the login page or asks him if he wants to extend the session. My question is that, in this situation, what http status code is the most appropriate to tell the client the session has timed