Fork me on GitHub

Davs Rants and Random Thoughts

YUI Code Samples

June 27th, 2006

Below are links to Code Samples I have posted to the YDN-Javascript Group.

YUI Examples

Other

    209 examples listed. Last updated: Mon, Jan 26th 2009 08:38 PST

    165 Responses to “YUI Code Samples”

    1. Ajith Nishantha says:

      Hi,

      I’m new comer to yui and also currently doing project.
      your Example so helps me.
      ThanX lot …………………..

    2. Sasanka Sekhar Banerjee says:

      Hi Dav,

      I want to create a custom image buttom in yui rich text editor. I am able to create the button but not able to attach an image to the button.

      Pls advise.

      This is code snippet :

      myEditor.on(’toolbarLoaded’, function() {
      var tb = this.toolbar;
      var config = {
      group: ‘Email Customization ‘,
      label: ‘Personalise’,
      buttons: [
      { type: 'push', label: 'Personalise', value: 'First Name' },
      ]
      };
      this.toolbar.addSeparator();
      this.toolbar.addButtonGroup(config);
      }, myEditor, true);
      //
      myEditor.render();

    3. Udit says:

      Hi Dav,
      I have a little problem; I want to save the content of the simple editor.
      Its something like updating the content present in the editor.
      Please help.

      Thank You,
      Udit.

    4. mahcih1 says:

      me too !!!!! the same problem !!!!

    5. Patkar (OP) says:

      Hi Dave,
      1) I am trying few things with YUI RTE . I have added a custom image panel that allows user to get image link from db , overwrite the caption and alignment information and submit the same. On sumbmission I generate a span tag something like this “‘”
      2) The b-rule for images is 1 image per paragraph so I need to associate the above generated span tag with a paragraph id i.e. I have to get the paragraph ids from the rte .
      3) I don’t think Yahoo assigns IDs to paragraphs by default. Can I look into tweaking the stock paragraph tag insertion code to insert an ID automatically. Is this possible? Is there a better wya to do this.

      Also
      4)I have an add page button where I dynamically add a customized editor with a dynamically generated id. I was just wondering what would be the best way to go about it.
      Regards,
      Omkar.

    6. Madz Cali says:

      Hi Dav,

      Happy New Year! How’re you doin’?

      I have read that there is no YUI confirm replacement for the window.confirm because it will not stop the execution of the javascript. Currently, I still don’t know if there is. I read in this forum posted on July 26, 2007, that Samuel posted a solution for this which will use the stopEvent function of the YUI util class. So my question is, is this still possible?

      Thanks.

    7. gatesdawn says:

      Hi Dav,

      I’ve been looking at Yahoo UI Library for the Calendar but I am not able to find anything in the API that will allow me to drag and drop event item(s) (such as appointments) into a calendar day. I should be able to modify each item’s set time and have the item automatically re-order in a list inside the calendar day area depending on the appointment time. Is there a way to do that w/ the API? Can u provide an example.

    8. pradesh says:

      Dav

      You are a dude with soul!

      Just wanted to wish you well for the new year.

      Take care.

    9. Dav Glass says:

      @Peykan –

      You probably forgot to add the handleSubmit config option.

    10. Peykan says:

      Hi Dav,
      I bet you’re asked this question 10 million times, but I went through several sites about YUI and I couldn’t find the answer.
      I am using simple editor at:
      http://www.4400payequity.org/form/order7.htm
      but when I make the changes and submit I see no changes to the text.
      Your help is greatly appreciated……….Peykan.
      Perhaps my form handler is missing a code: here you see it:

      Yahoo Editor

    Leave a Reply

    © 2009 Dav Glass - All content is mine, except comments. Comments are the property of the poster. I speak for no person or company.
    Can you tell me what this says? 01000100 01100001 01110110 01101001 01100100 00100000 01000111 01101100 01100001 01110011 01110011