I have a div with a width of 200px. There is text inside that is set not to wrap. So there is overflow. I need to get the width of the content of the div including the overflow.
I am using this for a YUI autocomplete dropdown menu. I want the dropdown to grow horizontally if the width of a result is greater than the width of the div.
H...
How can I use YUI to locate a text input by name and insert a div after it?
For example, this doesn't work:
<input name="some_name" type="text">
<script>
var el = new YAHOO.util.Element(document.createElement('div'));
var some_element = document.getElementsByName('some_name');
// doesn't work .... replacing 'some_element' with 'docum...
I have a problem with json data insertion in my DataTable.
Here an example of json data send by server :
{"geneItemList":"{"col":"symbol","qv":"cd4","limit":"-1","start":"0","geneid":"920","name":"CD4"
,"symbol":"CD4","lastupdated":"2009-05-20 10:01:52.0","lastmodified":"2009-05-20 11:12:37.0"}
,...
And here my YUI code :
<script ty...
You can see the search box in question at: http://www.trailbehind.com. If the user tries to search twice, they have to press backspace a bunch to clear the text, but I'd like to select all text on double click, which inputs should do by default. Why doesn't mind?
When the users first clicks, I clear the input as follows:
input.onclick...
I see on the YUI page an example about changing the style for panels in general. But I'd like to change the style for all the tooltips (and not other panels) on my website. All my tooltips are not in one certain DIV, so changing the YUI panel styles within a div won't work for me.
Any tips?
...
Hello,
I'm trying to use the YIUCompression DLL in MSbuild (http://yuicompressor.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=22364)
but I keep on getting the following error when i run the MSBuild:
OUTPUT:
Target Build:
Starting Css/Javascript compression...
# Found one or more JavaScript file arguments. Now parsing .....
I am writing a Javascript based upload progress meter. I want to use the standard multipart submit method (rather than submitting the file in an iframe). During the submit, I send ajax requests that return the % complete of the upload and then update the progress meter accordingly.
This all works smoothly in FireFox & IE. However, Safa...
The problem that I'm having with it, is that it tracks all the events in the log reader, too. This makes it very difficult to work with. As I scroll up down, click or move in the reader to examine events, it's scrolling all over the place adding new events. Is there a way to filter it to only include certain events from certain sources? ...
Hello,
I would like to be able to put the cursor wherever I want inside an instance of YUI SimpleEditor. The problem is that I am using setEditorHTML after every keystroke and the cursor moves to the beginning of the text every time.
Different commands in YUI do it already but I don't want to have to create a command for it if possible....
I am using YUI 2.7.0 and the YUI Loader in several places in one page, and FireBug shows me that, for instance, yahoo-dom-event.js is being loaded several times (by pretty much all of the loader instances).
If my page has two "modules", and each one creates a YUI container, and uses the YUI loader to do so, then FireBug shows me that "c...
Does jQuery have something similiar to YUI's getDocumentScrollTop?
(reference: http://developer.yahoo.com/yui/docs/YAHOO.util.Dom.html)
...
It seems like there should be, but I've looked over the API and nada. I don't see how it's done in 2.x. Currently, I store references with the elements to the tab and tabview objects via jQuery's data method.
The why: When I interact with the tabs via mouseovers and clicks, I need to be able to reference the YUI tab/tabview objects' pr...
Not sure if you guys are familiar with YUI Uploader, but after you click "browse" and select a bunch of files, the callback event returns a list of all the files that are queued, not just the ones you just finished selecting. This poses a bit of a problem because now instead of just adding the selected files to the UI, you have to clear ...
I am using yui-uploader from YUI 2.6.0
When an upload error occurs, I disable the uploader, show a warning, and then when the user clicks ok, enable it again.
Subsequent to this, selection of new files works, and the file list is populated correctly. However the uploads do not start. Has anyone encountered this problem? How do you han...
I am trying to use the (flash based) YUI Uploader with a Java (Spring-based) back-end.
The typical way of uploading files in the Java Servlet world is to set the ENCTYPE='multipart/form-data' on the HTML form requesting the file from the user. With the right server side APIs (i.e. Commons FileUpload), it is possible to get the file on t...
Hi there,
I am trying to find some sort of gui or batch utility where i can YUI compress a JS file i have.. I have a utility that sort of consolidates all my js into 1 single js .. and works great but i need to compress this file..
I was using something similar before to compress but it failed on european character i.e. character with ...
I have refactored working code to use proper objects and now I can't get Prototype's AJAX.Request to work properly. The code is following, it's working in context of YUI's DataTable:
SearchTable.prototype.setTableColumns = function (transport) {
this.dataTableColumns = transport.responseText.evalJSON();
this.dataTableCallbac...
I try to understand how use server-side Pagination for Dynamic Data (I see example : http://developer.yahoo.com/yui/examples/datatable/dt_dynamicdata.html).
My problem is I can not customize my request, when I try the pagination, my request is :
qct-list.htmlsort=geneid&dir=asc&startIndex=50&result=25
The request should be in the follo...
Hi all,
We are using YUI library in our asp.net project. I have a asp.net autopostback dropdown list which is converted to YUI dropdownlist as the code shown below. Now when user select some value from the dropdownlist the page posts back and the SelectedGroupChanged event fires but before that the confirm dialog box is not appearing. W...
I've used YUI ,which is too heavy.
What about GWT?
...