0
голосов
2ответов
361 просмотров

Prototype and YUI

I saw a reference on a company intranet recently that "You should use YUI instead of prototype". (formerly Prototype was company recommended JS framework). Is that because YUI builds on/extends Prototype? Or merely implements a super-set of its functionality?

5
голосов
1ответов
683 просмотров

Palm Pre frameworks

I have some measure of web development experience (not my main skill, but I am pretty good with the basics) What I'm sorely lacking is knowledge of and experience with modern JS frameworks (Prototype, jQuery, YUI, whatnot). I'd like to play with them (all eventually but need to start with one). ...

2
голосов
1ответов
1050 просмотров

YUI Test: How to simulate more complicated user actions in JavaScript?

I have a number of tests written with YUI Test. YUI Test capabilities when it comes to simulating users' actions are quite limited, or rather fairly low level. For instance, I can't easily simulate the user typing in a text field, with the events and modifications to DOM objects that go with it. ...

0
голосов
2ответов
473 просмотров

Yahoo Autocomplete results sometimes show old query

I'm using Yahoo Autocomplete with a remote php database request and zero time delay. The problem is that sometimes the results from an old query come back after the most recent query. So far example if im searching for beginner, sometimes the results from 'beg' will override the most recent res...

0
голосов
1ответов
2651 просмотров

YUI Panel Resize issues

I am having trouble while using the YUI panel as a dialog. I have a dialog object created with javascript on page load: $J = jQuery; dialog = new YAHOO.widget.Panel("dialog", { width: "300px", fixedcenter: true, close: true, draggable: true, zindex: 4, modal: true, visible: false }); Then whe...

0
голосов
1ответов
1886 просмотров

How do I disable the click handler on a YUI Node?

I am wanting to be able to disable the click functionality of a radio button so I can uncheck it. However, when I uncheck it, the click still fires and the end result is a radio that unselects (and modifies other page elements accordingly), and then re-checks because of the onclick event. v...

1
голосов
1ответов
222 просмотров

YUI TreeView Object

Does anyone know how to remove the connecting "lines" between the nodes of the YUI TreeView object? I know I can use the TreeView plugin for jQuery, however, I'm already using YUI as my main js-library and don't really want to include both. Thanks.

0
голосов
2ответов
332 просмотров

'Unexpected' behaviour when calling ColdFusion code (server-side code) from javascript event handlers

I have a simple YUI dialog with 2 buttons - Accept and Decline. I would like to call ColdFusion code together with JavaScript code when each of the buttons is clicked. When I introduce CF code together with JS code unfortunately both CF code present in each of the functions get triggered. All t...

1
голосов
4ответов
2220 просмотров

What's a good JavaScript grid with tabs?

I have 3 sets of tabular data I want to display with a JavaScript framework in ASP.NET MVC. I know I can embed a separate grid in a tab, but this seems inefficient especially when large datasets are involved since I imagine 3 separate grids would be created. I haven't found a JavaScript datagri...

0
голосов
1ответов
399 просмотров

IE6 showing wrong background image

Im using the YUI tabs components and customised each tab to show a unique icon and then show a variation of the icon when the tab is selected. As we know YUI adds 'selected' class to the selected tab and I manually added 'nav-xxx' where xxx is the tab name to each tab. Im using the following c...

1
голосов
3ответов
2052 просмотров

Comprehensive list of IE8 changes that break JavaScript code

Is there a list online somewhere of IE8 changes that might break existing JavaScript code? We have a few clients which we developed a few different apps for using jQuery, YUI and some pure JavaScript. All have problems after upgrading their browsers to IE8. The jQuery display we did won't show. ...

1
голосов
3ответов
663 просмотров

YUI Button initiates Postback Twice

I'm using ASP.NET 2.0 under VS 2005. Page_Load is getting called twice for my .aspx pages. AutoEventWireup is set to true, but even if I set it to false and manually add the EventHandler, it still gets fired twice. // also set AutoEventWireup to false public _Default() { this.Load += new Even...

1
голосов
2ответов
184 просмотров

Make sure most recent SQL query result is used in autosuggest

I'm using the PHP code below to get results to return to an autosuggest / autocomplete. The problem is that if an earlier SQL query takes longer to return from the database than the most recent SQL query then the results of the older query will be displayed in the autosuggest results box. So if y...

0
голосов
1ответов
232 просмотров

YUI (JS): Putting a MenuBar in a Panel

If I put a YUI menu bar in the body it works perfectly. However if I use it inside of a Panel it shows up without the proper background. It is larger than it should be. Other than the default sam skin I'm using only the following css. .windowbody is the class of the panel. <style type="text/c...

0
голосов
1ответов
1024 просмотров

Using yui to customise select boxes

I know how to customize select boxes using such techniqiues as http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/ however Im trying to figure out if yui provides such functionality. Thanks.

32
голосов
13ответов
62051 просмотров

Need to find height of hidden div on page (set to display:none)

I need to measure the offsetHeight of a div that is inside of a hidden element. <div id="parent" style="display: none;"> <div id="child">Lorem Ipsum dolor sit amet.</div> </div> The parent div must be set to "display:none". I have no control over that. I realize tha...

0
голосов
1ответов
1736 просмотров

How do I change YUI Autocomplete textfield Value population Options?

Data: JACKSON, MS 39212|39212 BAINVILLE, MT 59212|59212 CROOKSTON, NE 69212|69212 COLUMBIA, SC 29212|29212 SPOKANE, WA 99212|99212 Code: <form method="GET" target="_blank"> <fieldset><legend>remote example</legend> <label for="myRemoteInput">E...

4
голосов
2ответов
1866 просмотров

Rounded input boxes with YUI

Would it be possible to use YUI to change all my input boxes to have rounded corners? I cannot use a background image as the inputs will be variable width and I cannot add divs wrapped around them because some input elements are generated. Also I cannot use border radius or any moz/webkit variat...

4
голосов
1ответов
1476 просмотров

Yui Mouse Coordinates over Element

I'm trying to determine if the mouse is over an element preferably with YUI if there is a method for that already. Basically something like function bool IsMouseOver(Element);

2
голосов
3ответов
927 просмотров

YUI Hello World

I'm trying to do some experimental stuff for which YUI looks like the best solution. The Getting Started documentation is all written on the assumption that you already know how to use YUI and only need to find out how to use specific components. Is there any documentation available that tells yo...

2
голосов
2ответов
1622 просмотров

YUI Datatable Column Filter

Does anyone know of any plugins/extentions to the YUI Datatable that will allow column sorting similar to how a sharepoint grid works. I'm looking for something that works/looks a bit like this from sharepoint (click on the clumn header, and a drop down appears with options to filter the datatab...

1
голосов
1ответов
584 просмотров

Using YUI is it possible to add another css footer that sticks to the bottom of a page?

I'm a big fan of using the YUI library as my CSS and design skills are typical of a developer. I can find many examples of CSS techniques that result in a footer sticking to the base of a page. However I have failed in trying to add this to the YUI grids, I'm just wondering if anybody else has a...

0
голосов
1ответов
151 просмотров

Is there a tristate GUI element in YUI?

I'm not seeing anything in YUI that could be used for a tristate GUI element. Is there one?

1
голосов
1ответов
395 просмотров

simple mouse over image swap with YUI

I am attempting to do a simple image swap on mouseover event with YUI. Is this a simple task? As when I google all I get is plugins. Thanks.

0
голосов
2ответов
96 просмотров

Preferred customizable progressively enhanced dropdowns/menus?

I was looking at what YUI had, http://developer.yahoo.com/yui/examples/button/btn_example07.html Can anyone recommend a library/plugin they used to progressively enhance native select element dropdowns at the request of a client? I know it's impossible to style a dropdown in IE, so it's either t...

1
голосов
2ответов
729 просмотров

YUI Event and Links

Using YUI, I have a div, with an attached listener that says if I click on the div, execute a callback function. Inside the div is a series of normal html links to other pages. What I WANT to happen is that if I click a link, I go to that page. But, if I click anywhere in the div outside a link...

2
голосов
2ответов
4395 просмотров

Super class methods in javascript

I am writing some objects (classes I guess) in javascript. Class B inherits from Class A. Class A has a method called isValid, and class B overrides that method. I am using the YUI extend function to have Class B extend Class A. A = function(){ } A.prototype = { isValid:function(){ ...

0
голосов
1ответов
1726 просмотров

YUI JSON Datatable: how to dynamically change the request without POST

I have been playing with server side sorting/paging using YUI DataTable, and everything is working as expected. I want to be able to have something like a form input element to restrict the rows in the table, and my json proxy can handle it, for example: new YAHOO.util.DataSource("/php/json_pro...

1
голосов
2ответов
351 просмотров

Nested Objects With YUI and Javascript

I am working on a Javascript object that contains some YUI objects. The key thing is, my object needs to contain it's own set of YUI tabs so that I can display multiple instances of my object on the same page and have the tabs control their own object instance. I set it up as follows: var Sc...

1
голосов
1ответов
433 просмотров

Transferring JSON from YUI client to WCF web server?

From YUI Client I want to send data using JSON object to WCF webserver. I am using YUI's YAHOO.util.Connect.asyncRequest('POST', uri, callbacks, postdata) method to send the data to Webserver. But the web server is not responding to the call. I see there is a problem in sending postdata. WCF exp...