YUI Code Samples
Below are links to Code Samples I have posted to the YDN-Javascript Group.
YUI Examples
- YUI: Editor: Multilple Edit Areas, One Editor - Advanced Thu, Apr 10th 2008 10:09 PST
- YUI: Safari 3.x getDocumentHeight/Width bug Fri, Mar 7th 2008 03:13 PST
- YUI: 2.5.0 Multiple Editors Wed, Feb 27th 2008 10:57 PST
- YUI: 3-way Resizable Panel with iFrame inside Fri, Mar 21st 2008 01:39 PST
- YUI: Active Tab Label Sat, May 17th 2008 07:30 PST
- YUI: Animate Background Position Wed, Aug 15th 2007 03:17 PST
- YUI: Animation Sequences Again Fri, Oct 6th 2006 09:45 PST
- YUI: Animation Sequences iFrame Loading Fri, Oct 6th 2006 09:54 PST
- YUI: Animation Sequences Fri, Oct 6th 2006 09:16 PST
- YUI: Another Editor Example Mon, Aug 27th 2007 10:54 PST
- YUI: AutoComplete Issue Fri, Nov 16th 2007 08:19 PST
- YUI: Browser History (Calendar) Wed, Jan 10th 2007 03:42 PST
- YUI: Button Issue Wed, May 16th 2007 00:02 PST
- YUI: Button Widget and XHTML page Mon, Aug 27th 2007 01:04 PST
- YUI: Button: Menu Button in scrolled container Mon, Apr 7th 2008 10:54 PST
- YUI: CSS GridBuilder in AIR Tue, Mar 4th 2008 23:06 PST
- YUI: Calendar Date Error Mon, Jan 7th 2008 08:58 PST
- YUI: Calendar Select Whole Row (YUI Version .12) Fri, Jan 26th 2007 01:04 PST
- YUI: Calendar attached to Text Input (YUI Version .12) Tue, Mar 13th 2007 01:55 PST
- YUI: Calendar attached to Text Input Thu, Nov 2nd 2006 01:35 PST
- YUI: Calendar pageDate bug (YUI Version .12) Fri, Jan 26th 2007 08:13 PST
- YUI: Calendar w/ Drag & Drop Fri, May 23rd 2008 09:56 PST
- YUI: Calendar with Tooltip Overlay (YUI Version 2.2.2) Fri, Aug 10th 2007 07:34 PST
- YUI: Calendar with mouse navigation Fri, Dec 1st 2006 09:01 PST
- YUI: Calendar within a Treeview Sun, Oct 8th 2006 09:22 PST
- YUI: ColorAnim Class Extension (using stylesheets) Thu, May 29th 2008 09:43 PST
- YUI: Complex YUI Example in Adobe AIR Mon, Feb 25th 2008 06:40 PST
- YUI: Connection Example Sun, Sep 30th 2007 09:52 PST
- YUI: Container showing/hiding with Motion Fri, Nov 10th 2006 06:34 PST
- YUI: DD and onclick Fri, Oct 6th 2006 09:43 PST
- YUI: DDProxy instance on an href Mon, Dec 10th 2007 10:14 PST
- YUI: DHTML Form Controls Fri, Jan 26th 2007 01:01 PST
- YUI: DHTML Select box replacements Tue, Oct 31st 2006 06:52 PST
- YUI: DataTable Patch Wed, Feb 28th 2007 08:30 PST
- YUI: DataTable Patchs Wed, Feb 28th 2007 10:36 PST
- YUI: Datatable with AutoComplete Filter Tue, Sep 18th 2007 10:21 PST
- YUI: Dialog Alert Widget Tue, Nov 13th 2007 01:50 PST
- YUI: Dom getStyle - background-position Sat, Feb 9th 2008 10:38 PST
- YUI: Dom.getXY in iframe Mon, Jun 11th 2007 01:27 PST
- YUI: Dom.getXY on Fixed Position Elements Wed, Mar 12th 2008 23:56 PST
- YUI: Drag Drop Example Wed, Oct 25th 2006 07:59 PST
- YUI: Drag Drop Example Fri, Nov 3rd 2006 10:11 PST
- YUI: Drag Drop Example Mon, Mar 5th 2007 08:29 PST
- YUI: Drag Drop Form Handling Mon, Oct 29th 2007 03:49 PST
- YUI: Drag Drop onto Nested Targets Tue, Oct 17th 2006 07:17 PST
- YUI: DragDrop & Resize a Panel Wed, Dec 26th 2007 03:57 PST
- YUI: DragDrop - Copy not move Wed, Feb 13th 2008 08:19 PST
- YUI: DragDrop - Drag Handle Mon, Dec 10th 2007 00:23 PST
- YUI: DragDrop ALWAYS on top Fri, May 30th 2008 08:32 PST
- YUI: DragDrop DataTable Mon, Dec 17th 2007 07:31 PST
- YUI: DragDrop Extend Example Tue, Feb 12th 2008 07:41 PST
- YUI: DragDrop Proxy - Select Element Tue, Nov 27th 2007 07:30 PST
- YUI: DragDrop Radio Buttons Mon, Dec 17th 2007 08:14 PST
- YUI: DragDrop Snap to Grid Mon, Feb 11th 2008 08:17 PST
- YUI: DragDrop iFrame Thu, May 17th 2007 07:44 PST
- YUI: DragDrop inside scrolled parent Wed, Oct 31st 2007 02:00 PST
- YUI: DragDrop only fire drop event Mon, Oct 8th 2007 08:59 PST
- YUI: DragDrop: DDM Patch for IE issue Mon, May 12th 2008 00:48 PST
- YUI: DragDrop: Multiple Items Mon, Mar 24th 2008 01:15 PST
- YUI: DragDrop: Portal Sun, Jun 8th 2008 00:52 PST
- YUI: Edit in place Wed, Sep 5th 2007 07:02 PST
- YUI: Editor - IE over SSL Tue, Dec 11th 2007 02:43 PST
- YUI: Editor - Invalid HTML Tue, Dec 11th 2007 06:49 PST
- YUI: Editor Animation Thu, Jun 26th 2008 03:02 PST
- YUI: Editor Auto Resize Thu, Jan 10th 2008 08:43 PST
- YUI: Editor Bug #1857235 Tue, Jan 15th 2008 07:15 PST
- YUI: Editor Dirty Change Mon, Aug 27th 2007 23:21 PST
- YUI: Editor Font Size Select List Thu, Jan 10th 2008 10:51 PST
- YUI: Editor Full Screen Wed, Aug 29th 2007 07:17 PST
- YUI: Editor HTML inside toolbar Thu, Jan 10th 2008 06:57 PST
- YUI: Editor Highlight Tue, Jan 15th 2008 07:20 PST
- YUI: Editor Image Browser Thu, Sep 27th 2007 07:36 PST
- YUI: Editor Initial Data Sun, Dec 2nd 2007 08:59 PST
- YUI: Editor Mobile Test Tue, Jan 15th 2008 07:19 PST
- YUI: Editor Multiple Editors Bug Tue, Jan 15th 2008 07:21 PST
- YUI: Editor Safari Tab Fix Thu, Nov 15th 2007 08:06 PST
- YUI: Editor SpellCheck Example Sun, Jun 22nd 2008 23:42 PST
- YUI: Editor Styling Issues Fri, Nov 30th 2007 06:57 PST
- YUI: Editor Symbols Tue, Oct 30th 2007 09:07 PST
- YUI: Editor Toolbar Tue, Jun 10th 2008 06:38 PST
- YUI: Editor Width Issue Fri, Mar 21st 2008 09:47 PST
- YUI: Editor and Prototype: 1.4 Tue, Jan 15th 2008 08:53 PST
- YUI: Editor and Prototype: 1.5.1.1 Tue, Jan 15th 2008 07:12 PST
- YUI: Editor in Multiple Tabs Mon, Oct 15th 2007 10:08 PST
- YUI: Editor in TabView (advanced) Fri, Dec 14th 2007 06:46 PST
- YUI: Editor inside Panel Wed, Sep 12th 2007 07:39 PST
- YUI: Editor inside of a Dialog Wed, Jun 4th 2008 06:26 PST
- YUI: Editor inside of a TabView Control Tue, Jan 15th 2008 07:13 PST
- YUI: Editor rendered hidden Tue, Jan 15th 2008 07:14 PST
- YUI: Editor with 30+ font names Thu, Jan 31st 2008 06:50 PST
- YUI: Editor with Basic Link and Image Editing Tue, Feb 12th 2008 07:21 PST
- YUI: Editor: Add Button Group Fri, Feb 29th 2008 10:32 PST
- YUI: Editor: Buttons En/Disabled by Another Button Mon, Apr 7th 2008 08:20 PST
- YUI: Editor: CodeView on Render Mon, May 19th 2008 08:39 PST
- YUI: Editor: Colorpicker Menu Tue, May 6th 2008 10:14 PST
- YUI: Editor: Custom Objects Thu, Oct 4th 2007 01:31 PST
- YUI: Editor: Disable context menu inside editor Thu, Mar 27th 2008 00:42 PST
- YUI: Editor: Draggable Sat, Jul 19th 2008 07:53 PST
- YUI: Editor: External Data Mon, Jun 23rd 2008 07:44 PST
- YUI: Editor: Invalid HTML Filtering Tue, Oct 2nd 2007 07:49 PST
- YUI: Editor: Italic with Color Patch Tue, Apr 22nd 2008 09:25 PST
- YUI: Editor: Menu Button Click Tue, Mar 4th 2008 06:53 PST
- YUI: Editor: Multiple Editors One Toolbar Tue, Mar 18th 2008 07:58 PST
- YUI: Editor: Multiple Flickr Image Search Fri, Apr 25th 2008 09:26 PST
- YUI: Editor: Panel over Editor Wed, Oct 3rd 2007 08:24 PST
- YUI: Editor: Remove Button Wed, Jul 2nd 2008 09:35 PST
- YUI: Editor: SourceForge Bug #1804028 Mon, Nov 5th 2007 00:04 PST
- YUI: Effects Widgets 0.6 Tue, Nov 7th 2006 09:01 PST
- YUI: Effects Widgets 0.8 Fri, Feb 23rd 2007 07:06 PST
- YUI: Event Bubbling Fri, Jun 22nd 2007 07:15 PST
- YUI: Event Test Thu, Dec 20th 2007 01:10 PST
- YUI: Events Tue, Jan 30th 2007 07:03 PST
- YUI: Examples Mon, Sep 10th 2007 07:09 PST
- YUI: Filter Href’s from Document Mon, Mar 31st 2008 09:40 PST
- YUI: Fixed Center Calendar Thu, Nov 1st 2007 09:28 PST
- YUI: Full Page Panel Sat, Feb 3rd 2007 10:43 PST
- YUI: Get and Pipes - Example 1 Mon, Feb 4th 2008 06:37 PST
- YUI: Get and Pipes - Example 2 Mon, Feb 4th 2008 06:53 PST
- YUI: IE Grids Font Size Issue Wed, Jan 9th 2008 07:02 PST
- YUI: IP Address Text Input Fri, Nov 10th 2006 10:56 PST
- YUI: Image Cropper: Multiple Image Croppers Per Page Tue, Jul 15th 2008 07:12 PST
- YUI: Image Editor (like) example Wed, Mar 5th 2008 08:10 PST
- YUI: ImageCropper Bug Mon, Feb 25th 2008 08:20 PST
- YUI: ImageCropper inside a Panel Wed, Mar 5th 2008 07:03 PST
- YUI: Javascript Private Var Mon, Dec 17th 2007 05:11 PST
- YUI: Layout Manager: Custom LayoutUnits Fri, Feb 29th 2008 03:33 PST
- YUI: Layout Manager: Destroy Method Patch Fri, Mar 28th 2008 01:34 PST
- YUI: Layout Manager: Left Collapse Issue Mon, Feb 25th 2008 00:14 PST
- YUI: Layout Manager: Menu in top unit Wed, Apr 2nd 2008 09:11 PST
- YUI: Layout Manager: Panel inside Full Page Layout (Constrained to a unit) Mon, Apr 28th 2008 08:55 PST
- YUI: Layout Manager: Panel inside Full Page Layout Mon, Apr 28th 2008 09:06 PST
- YUI: Layout Manager: Prototype 1.6 Fri, May 9th 2008 04:20 PST
- YUI: Layout Manager: Scroll position issue Fri, Feb 22nd 2008 10:42 PST
- YUI: Layout Manager: TabView Example Wed, Feb 27th 2008 10:03 PST
- YUI: Listeners Fri, Oct 6th 2006 09:58 PST
- YUI: Load external webpage in an Overlay Sat, Oct 7th 2006 10:00 PST
- YUI: Loader Script Wed, Aug 1st 2007 01:15 PST
- YUI: Loader: Custom Module Tue, Jul 8th 2008 06:57 PST
- YUI: Menu Button Values Thu, Nov 1st 2007 10:58 PST
- YUI: MouseOver Scroll Wed, Jan 3rd 2007 02:36 PST
- YUI: Multiple Color Picker Buttons Thu, Jan 3rd 2008 10:19 PST
- YUI: Multiple Events Fri, Nov 17th 2006 09:16 PST
- YUI: Opera style issue Tue, May 27th 2008 02:16 PST
- YUI: Overlay Delayed Close Mon, Sep 10th 2007 00:19 PST
- YUI: Overlay Problem Mon, Oct 9th 2006 00:52 PST
- YUI: Overlay relative Module mask Mon, Nov 13th 2006 23:57 PST
- YUI: Overlay setFooter Wed, May 30th 2007 03:37 PST
- YUI: Overlay with rounded corners & a knob Wed, Oct 17th 2007 08:22 PST
- YUI: Panel - cloneNode fix. Tue, Oct 24th 2006 07:00 PST
- YUI: Panel and Button Sat, May 5th 2007 09:19 PST
- YUI: Panel: Proxy Drag Wed, May 7th 2008 07:25 PST
- YUI: RTE Tech Talk Wed, Apr 9th 2008 04:50 PST
- YUI: Remote Image URL from Javascript Mon, Jul 16th 2007 07:31 PST
- YUI: Reset Example Wed, Nov 22nd 2006 09:00 PST
- YUI: Resize Utility endResize Patch Mon, Mar 24th 2008 05:37 PST
- YUI: Resize Utility: Textarea Mon, Jun 2nd 2008 04:04 PST
- YUI: Rich Text Editor for Wordpress Plugin Wed, Dec 5th 2007 07:54 PST
- YUI: Safari Animation Thu, Dec 21st 2006 08:39 PST
- YUI: Safari Keypress Events Tue, Mar 18th 2008 03:03 PST
- YUI: Sample WYSIWYG Editor built with the YUI libraries. Wed, Aug 1st 2007 02:04 PST
- YUI: Simple YUI based slideshow Sat, Oct 7th 2006 10:07 PST
- YUI: Skinning a YUI Button Wed, Apr 30th 2008 09:46 PST
- YUI: Sortable Nested List Widget Tue, Feb 27th 2007 07:23 PST
- YUI: SourceForge Bug #1898886 Mon, Feb 25th 2008 00:45 PST
- YUI: Split Button w/ Dynamic Menu Sun, Aug 5th 2007 23:04 PST
- YUI: Sticky Dialog Sat, Feb 3rd 2007 10:30 PST
- YUI: TabView - open tab from url Thu, Aug 2nd 2007 10:40 PST
- YUI: TabView : Accordion Fri, Mar 23rd 2007 10:31 PST
- YUI: TabView Flicker and TabView inside TabView Tue, May 29th 2007 02:30 PST
- YUI: TabView with Colored Tabs Fri, Jan 5th 2007 01:17 PST
- YUI: TabView with DragDrop Tabs Wed, Feb 7th 2007 06:45 PST
- YUI: TabView: Accordion: Scroll to top when active Thu, Jan 10th 2008 07:14 PST
- YUI: TabView: Add a close button to a tab Tue, Aug 28th 2007 08:09 PST
- YUI: Table with DragDrop Columns Wed, Nov 28th 2007 00:56 PST
- YUI: TextArea Counter Mon, May 12th 2008 09:26 PST
- YUI: Toolbar Button Example Sun, Oct 21st 2007 23:06 PST
- YUI: Toolbar Dynamic Showing Buttons Fri, Apr 18th 2008 09:50 PST
- YUI: Toolbar Issue Sat, Dec 15th 2007 01:20 PST
- YUI: Undo reset.css on part of page Mon, Nov 20th 2006 02:17 PST
- YUI: Using a ContextMenu to Close a Tab Thu, May 17th 2007 08:26 PST
- YUI: Vim Syntax and AutoComplete (v0.1) Mon, Dec 4th 2006 09:22 PST
- YUI: Vista style menu button Fri, Aug 10th 2007 08:19 PST
- YUI: Widget Skins Wed, Feb 28th 2007 10:36 PST
- YUI: YAHOO.Tools Fri, Feb 23rd 2007 07:03 PST
- YUI: YAHOO.util.JSON Fri, Jan 26th 2007 01:00 PST
- YUI: YUI Docs in AIR Tue, Mar 4th 2008 23:16 PST
- YUI: YUI: Mouse Gestures Fri, Oct 6th 2006 09:52 PST
- YUI: YUILoader Tue, Jul 31st 2007 23:03 PST
- YUI: getElementsByClassName Fri, Oct 6th 2006 09:30 PST
- YUI: iFrame Fri, Mar 23rd 2007 01:09 PST
Other
- Opera Image Events bug Tue, Oct 23rd 2007 01:33 PST
- Opera Object Order Bug Tue, Jan 8th 2008 09:19 PST
- Opera Opacity Mac bug Tue, Oct 23rd 2007 01:13 PST
- Opera onload bug Tue, Oct 23rd 2007 01:12 PST
- Safari Javascript Hash Bug Fri, Feb 2nd 2007 07:26 PST
- Safari label Fix Sat, Oct 7th 2006 10:04 PST
- iSpam Sat, Jun 21st 2008 09:16 PST
Games
197 examples listed. Last updated: Sat, Jul 19th 2008 19:54 PST
September 14th, 2006 at 3:05 pm
The calendar attached to an input field is excellent! Yahoo should have included that with the library.
September 14th, 2006 at 7:57 pm
Thanks, I was thinking about updating it to be more of a widget, so you could just call it like:
YAHOO.widget.attachCal(’elm’, options);
I’ll be sure and put it on my list of enhancements
September 16th, 2006 at 1:17 pm
Wow, YUI is fantastic and its great to see some extensions to it. Hassle Dustin Diaz and see if you can get some of it in the library !
The select replacements are something I was going to implement myself, and the wysiwyg editor is fantastic as well !
September 16th, 2006 at 2:56 pm
Shyne the YUI is totally the most powerful JS library out there, but it is a little hard for beginner and intermediate programmers to build things with it.
Thanks for the compliment, since I do work at Yahoo!, some of my code may end up in the library
I am also hoping to eventually work for that team
September 16th, 2006 at 4:19 pm
Ah well that explains it.. you work at Yahoo
I guess I shoulda read around your site more.
I reckon your editor combined with the inline edit could be a nice rival for http://wikiwyg.net/ !
September 16th, 2006 at 7:05 pm
I haven’t seen that one
I may just have to make a demo of that too
September 28th, 2006 at 10:28 am
Awesome! Calendar Attached to Text Input is JUST what I was looking for.
Thanks for the GREAT examples.
September 28th, 2006 at 1:14 pm
Ryan –
Glad they helped..
October 25th, 2006 at 8:07 pm
Your Beatiful select boxes are not working in IE6 or IE7
October 31st, 2006 at 8:06 pm
William –
I have just released a new tool called DHTMLForms (which replaces the old example of the DHTML Selects), you can see it here:
http://blog.davglass.com/files/yui/dhtmlforms/
January 7th, 2007 at 1:30 pm
[…] Two great examples of how to use the YUI Library CSS Grid Builder - Mouse Gestures (via Davs Rants blog). These icons link to social bookmarking sites where readers can share and discover new web pages. […]
January 12th, 2007 at 5:25 am
Hi
Thanks for the great YUI calendar example - it is the best implementation I have seen.
Are the js files for this example availible ? - I am doing something wrong in my code and cant get it to work.
thanks
Tim
March 4th, 2007 at 2:59 pm
Hi
Great work.
Is it possible to use drag and drop on tree branches?
Thanks
March 4th, 2007 at 4:19 pm
@Dolittle
The current version of the TreeView doesn’t support DragDrop out of the box.
But there is a pretty good how-to here:
http://sonjayatandon.com/08-2006/how-to-add-dragdrop-behavior-to-a-yui-tree/
March 5th, 2007 at 3:47 pm
Dav,
Thanks. I’ve found your link very useful for making the yui TreeView combined with DragDrop.
I don`t use ruby so I used the code in one of the comments.
It has some minor mistake in it though (the comment).
I`ll be happy to work with you on a nice DD TreeView to publish here if you like.
Of course, with the appropriate credit to Sonjaya Tandon.
I think allot of people are looking for this extension to yui.
There is a great TreeView on the yui-ext
but I want to stay as close to the basic yui as possible
Thanks
March 11th, 2007 at 8:01 am
Dav,
I was looking at your inline editing example. It helped me allot figuring out how to do it in my application.
I think there is a small bug. When you dbl-click an item for editing and then dbl-click it again.
I`m not sure if this is important or not.
Another thing is I think you tried to prevent insertion of html code .
I`m not sure it`s working. I used:
var checkText = this.value.replace(/()/g,function(thematch){if (thematch==”
March 27th, 2007 at 12:46 am
Thanks for the wonderful code snippets…
Anyway, I am trying to activate a tab programmatically by javascript (suppose, by a button click or a hyperlink etc). Unfortunately, I am unable to find any clue on how to select a tab by some js code, instead of user clicking on the tab itself.
Please help….
Thanks.
March 28th, 2007 at 5:20 pm
Snig –
You could do something like this:
var myTabs = new YAHOO.widget.TabView(/* etc etc */);
myTabs.set(’activeIndex’, 1); // This would set the second tab to active.
Hope that helps
April 13th, 2007 at 8:54 am
Dav,
You just saved me hours of work. I was trying to implement drag and drop in tabs and was thrilled to find your example. Thank you.
April 13th, 2007 at 9:58 am
Amy, I’m glad that the example helped
April 14th, 2007 at 8:35 pm
[…] I have spent some time lately looking at various libs to use on a site I want to design, and by design I mean make it a true little piece of genius (and maybe learn something new while we are at it). I am not looking for a prototype replacement, I am looking more for a way to NOT use script.acuo.us, Dojo or the other libs that I thing are interesting, but they just seem to rub me wrong. I checked out the Adobe SPRY lib, decided it was too much other stuff, and eventually I kept finding myself coming back around to YUI which is pretty swanking and basically handles everything that I would have needed five others to bring together all the things I need. It is also split up in the various parts so you only bring in what you need as you need it see some code samples that I found and love, yay […]
April 19th, 2007 at 4:37 pm
Wow man i really admire your work most of these things i really didnt know you could do in just YUI This will help me alot to use YUI where flash applications arent required. thx!
July 24th, 2007 at 11:08 am
This is an amazing page! your samples are great, thank you for sharing.
I was wondering if you can elaborate on how you setup the rounded corners overlay sample? I’m not sure which css you’re using or if you’re using css at all (maybe using javascript directly?) to get the rounded corners?
Thanks!
July 26th, 2007 at 9:21 am
Thanks Dav for your code YUI: Builtin Alert Override - Uses SimpleDialog has helped me replacing my javascript alerts with YUI dialogs. I would like you to do me one more favour by giving me a similar example to replace the confirm dialog boxes too. Thank you.
July 26th, 2007 at 9:47 am
@Art — The rounded corners are all CSS based.. The CSS file used is here:
http://blog.davglass.com/files/yui/overlay2/style.css
@Samuel — Confirm boxes are a bit tricker to do, that is why I haven’t done one
With Confirm boxes the programmer is expecting it to stop the page, ask a question and get a response back.. You can’t do that with a Panel..
Dav
July 26th, 2007 at 10:02 am
Thanks for the immediate response.
I got a similar code while surfing on http://www.lib.virginia.edu/scripts/yui_dialog_1.0/examples/demo.html but its too much for me
Well I got an idea that they use the stopEvent function of the YUI util class and then depending on the response continue but i’m afraid so I had asked you.
Anyways thanks a lot
Samuel.
July 31st, 2007 at 4:47 am
Hey dav,
What is the best YUI control that I can use to open a as a child window to load a web page? The child page also does postbacks.
Samuel
July 31st, 2007 at 7:18 am
@Samuel –
Take a look at this example:
http://blog.davglass.com/files/yui/overlay1/
July 31st, 2007 at 4:45 pm
[…] Text Editor (beta): YUI developer Dav Glass brings you the new YUI RTE, featuring rich-text editing with robust A-Grade browser support. […]
August 6th, 2007 at 8:17 am
Heya Dav,Thanks a lot for the pointer to this page (from the YUI mail list) — I’d checked this site before, but hadn’t found this page… Very glad that we’ve based our app on YUI — really looking forward to getting over this initial discovery phase, so I can start building slick stuff ;-)-Chris
August 6th, 2007 at 8:29 am
Chris –
Glad to help
August 13th, 2007 at 1:07 pm
[…] a Rich Text Editor (RTE) prototype to show that it was possible to build one on top of YUI. Of all my YUI examples, it quickly became one of the most requested, and the project indirectly resulted in me joining the […]
August 13th, 2007 at 7:50 pm
[…] a Rich Text Editor (RTE) prototype to show that it was possible to build one on top of YUI. Of all my YUI examples, it quickly became one of the most requested, and the project indirectly resulted in me joining the […]
August 23rd, 2007 at 2:02 pm
Sorry about the basic question, but how can you get the popup calendar to display the current month (and current date selected) if the date entered in the text field is not well-formed?
August 23rd, 2007 at 4:07 pm
@Jeff –
In the function showCal, you could add some type checking before calling setProperty
August 25th, 2007 at 6:41 am
Your examples are brilliant to say the least but there is only one thing missing… You mentioned you are not a windows guy but you should consider testing your code on windows as there are more windows users on the net then other. I am running your examples on windows with firefox and noticed some of them throw errors or just do not work at all.The “Container Effects based off of my widget.Effects” samples do not even work on win/ff.
August 25th, 2007 at 8:35 am
@Jesse -
I don’t own a Windows machine (and don’t plan on spending the money to get one), so that would be a little difficult
August 28th, 2007 at 3:46 am
The following example works great (http://blog.davglass.com/files/yui/class/f2e/example3/solution2.php) but I use addTabs to dynamically add tabs. This works also great. But, when youadd a tab then the id of the tab div and the id of the content div of the tab is not added. To add the id of the tab div I found out I need to add ” id: value” to the addTab like: indexTabs.addTab(new YAHOO.widget.Tab({ label: ‘<?php echo $title; ?>’, dataSrc: ‘<?php echo $filename); ?>’, cacheData: true, id: ‘<?php echo $module; ?>’ }));But what I’m missing is how to add the id of the content tab. Can’t find it anywhere. Any idea’s?
August 28th, 2007 at 5:05 am
Problem solved by using this example: http://blog.davglass.com/files/yui/class/f2e/example3/solution.php. <br><br>But I still like to know if how to do this with the solution2.php example….
September 3rd, 2007 at 2:54 pm
I’m attempting to use the Rich Text Editor (that really is quite brilliant) within a .NET application - I can load data from an XML file into the editor with all the formatting, BUT any attempt to save any additions or amendments are causing me grief - the page postback seems to clear all the alterations and re-save the original - the page load event brings in the original text, but this is within a ‘If Not Page.IsPostBack’ so I can only guess it’s the JavaScript reloading! Any idea how I get round this one?RegardsDave
September 5th, 2007 at 6:33 am
@Dave –
Can you send me a link so that I can see it in action?
Send it to dav dot glass at yahoo dot com..
September 7th, 2007 at 1:13 pm
YUI: RTE hidden when rendered
works great in FF, but when in IE (my verision: 6.0.2900) it has a little problem — when after clicking the save button, there editor still partially showing over the page.September 19th, 2007 at 1:53 pm
[…] Text Editor (beta): YUI developer Dav Glass brings serious performance improvements to the YUI RTE, among the only full-featured RTEs to […]
September 19th, 2007 at 7:34 pm
[…] Text Editor (beta): YUI developer Dav Glass brings serious performance improvements to the YUI RTE, among the only full-featured RTEs to […]
October 1st, 2007 at 11:10 am
I can’t get the “DataTable with DragDrop rows” example to work. Do you have an example that shows dragging a row from one datatable and dropping to another?
October 2nd, 2007 at 12:08 pm
We really really really want to use the new YUI RTE and were wondering when you might or if you plan on building support for embedding flash widgets. Any recommendations if this is not in the works?FYI: I’m sure the blogging world would welcome this addition greatly!
October 27th, 2007 at 5:17 pm
Hey Dave…First up - great resource, appreciate all the hard work you’re putting in….I have the need for a splitpane control, either vertical or horizontal, where each panel would auto re-size - like a message preview pane in a mail app for example …. I don’t think that YUI comes with one straight out the box (?) I was wondering if you have implemented such a control, point me in the right direction etc….?thanksSunil ps it says David Glass
November 11th, 2007 at 8:39 pm
Great site - very useful. I need to swap out some old stuff and insert yours… I’m also trying to find a portal manager, similar to MyYahoo. Know where I can find the code?Thanks,mm
November 29th, 2007 at 6:44 am
very useful… thank you so much for all the work you have put in, after 13 years of HTML I think I am finally ready to take on CSS LoL, thanks to peoplr like yourself
December 3rd, 2007 at 3:21 pm
Dav, Can I get some clues on how to configure the rtEditor?I want to lose the color pickers, font options and the underline button.Thanks
December 3rd, 2007 at 3:31 pm
This section of the Editor’s landing page will show you:
http://developer.yahoo.com/yui/editor/#toolbar
Let me know if that doesn’t help
Dav
December 15th, 2007 at 4:10 am
I have been using YUI with rails - very useful - one can use js helpers for re-usePlease don’t ever get a windows machine(I unfortunately have a few for my sons games but never for anything work related)
December 19th, 2007 at 12:00 am
Hi, I want to implement the YUI tabView with .net..Is it possible to implement YUI tabView Control to .net..I have been using YUI Tabview with .net it’s working fine in FireFox not in IE7. when i specified Html file in Tabview it’s working Fine Both Browser .When i specify the .net File it’s Show the javascript error “Unknown javascript error” ..How i fix this issue….Thanks & Regards,S.Sajan
December 19th, 2007 at 10:41 am
Dav, I am building a dock (since I can’t find one) for some of our YUI dialog based tools and my plan is to use a Panel with a YUI DD target to simulate the effect. One of the things I would like is to be able to slide the DD target panel in and out from the left side of the screen like a tray. I think your effects would help me accomplish this but I am wondering about the roadmap for your tools library.For example I see the Effects class in YUI with FADE and SLIDE and I’m wondering if it would be (smaller|better|whatever) to make my own YUI Effect rather than use your whole toolkit just to get that cool “BlindRight” effect. My suspicion is that I should write my own YUI Effect. Are there any plans to add some of your effects to the YUI code base? In other words are your effects going be deprecated at some point soon and be ported to the YUI ContainerEffect heirarchy? Or am I just nuts for asking? :)-jasen
December 19th, 2007 at 10:53 am
Jasen –
I’m not sure if my Effects will be placed in the actual library. They may lead as a starting point for an official Effects package..
All of the source is available, so you can download it and chop out the effects that you don’t need.
Dav
January 3rd, 2008 at 6:59 pm
[…] - Download Leave a […]
January 6th, 2008 at 12:37 pm
Hi Dave,The “yui calendar with key strokes” has different key effects between IE and Firefox. Particularly, the “up” and “down” arrows need to manage the bubble with a javascript command like sv.cancelBubble=false;Otherwise, the calendar arrow moves upwards AND THENthe arrow causes the screen to scroll in IE.
January 18th, 2008 at 2:30 am
Hi Dave,I’m just starting to read things on YUI. I am trying to build a page with two columns 50/50 divided by a line on the center. Tabview on top with links to javascripts… I just need hints and thoughts… Thanks!!!
January 19th, 2008 at 2:42 pm
I like your effects, i think you saved a lot of people a gread deal of work, however there seems to be a problem with them randomly in IE 6 and IE7. The sliding effects don’t work properly.I tested it with Mozilla and they work fine though.Just thought i’d tell you, and thanks again.
January 21st, 2008 at 11:02 am
Hi Dave,Your DHTML From Controls example is cool. Just wonder if this tool is available for downloading. Thanks!
Suezie
January 24th, 2008 at 11:58 pm
Hi Dav,I want the following effect. i am having 10 images to show to the user. I want to show three images at a time. We should provide back and front buttons. when we click these buttons the images should scroll left and right(Three at a time) .I want to achieve these functionality using yui library.I am familiar with yui library. So give some ideas to implement my functionality.You can see what I want in the following site.http://games.yahoo.com/games/frontHere you can see staff picks and video games options.They are showing three images at a time and they also show two buttons with which we can animate(scroll) the images three at a time to left and right.I think they are using yui library to achieve this functionality.Please give your feed back regarding this.thanks,Mohan
February 3rd, 2008 at 8:19 am
Hi Dav,i have written code for drag and drop just like your’s drag handle ,but my first list is fix .everything was fine till i open it in IE . it says “children is null or not an object”what to do ?plz help me thanks
February 4th, 2008 at 10:02 pm
Hi dav,We have around 30 eot(private embedded fonts for IE) font files to be insert in the YUI editor fonts menu.we are inserting those 30 fonts dynamically.But we are only getting 23 fonts working.other fonts are not working.these 30 fonts are not in the local system.If we placed those fonts(TTF files) in the local fonts directory,all the fonts are working.
March 14th, 2008 at 8:57 am
Can I borrow your brain for a couple of days? Thanks for sharing these great examples.
March 18th, 2008 at 1:34 pm
For the rounded corners, can they be used without having to set the width and height in the script and css?
March 18th, 2008 at 10:07 pm
@tashfeen What example are you referring to? I have 160+ examples
March 27th, 2008 at 8:37 am
sorry about that.I was talking about the following one:YUI: Overlay with rounded corners & a knobI am trying to create roundd corners and avoid using images. I would rahter do it with YUI as we are already using it on our site. Thanks!
April 3rd, 2008 at 5:57 am
I have problem with Image upload, please send me the exact code of file upload..I got one example in your site http://blog.davglass.com/files/yui/editor36/# but it is not working at my sites. actually i have problem in YAHOO.util.Connect.setForm(formObject, true);
April 4th, 2008 at 1:32 am
Dav,Thanks for the code sample. It really helped me understand YUI.I have a question. In your image editor example, is there any way i can save the final image consisting of text and images to the server?Thanks
April 4th, 2008 at 4:20 pm
@tashfeen –
In order to do it with that large of rounded corners, you will probably have to use images.
Dav