Loading ...
Sorry, an error occurred while loading the content.

Re: yui dialog issue (while destroying dialog)for yui 2.3.0 version only

Expand Messages
  • Caridy PatiƱo Mayea
    Hi mohan, See this post: http://tech.groups.yahoo.com/group/ydn-javascript/message/16762 Best Regards, Caridy (caridy at gmail.com)
    Message 1 of 2 , Sep 4, 2007
    • 0 Attachment
      Hi mohan,

      See this post:

      http://tech.groups.yahoo.com/group/ydn-javascript/message/16762

      Best Regards,
      Caridy (caridy at gmail.com)
      http://www.bubbling-library.com/

      --- In ydn-javascript@yahoogroups.com, mohan kumar
      <tmk_mohankumar@...> wrote:
      >
      >
      > Hi,
      > The following java script error occurs while calling destroy
      method of dialog.
      > this.configChangeEvent has no properties
      > This error occurs only for yui 2.3.0 files. This occurs both in
      fire fox and IE.
      > Provide me solution for this error.
      > The code written by me,.
      >
      > <html>
      > <head>
      > <script type="text/javascript" src="scripts/yahoo.js"></script>
      > <script type="text/javascript" src="scripts/dom.js"></script>
      > <script type="text/javascript" src="scripts//event.js"></script>
      > <script type="text/javascript" src="scripts/dragdrop.js"></script>
      > <script type="text/javascript" src="scripts/container.js"></script>
      > <link rel="stylesheet" type="text/css" href="scripts/container.css" />
      > <script>
      > var renameDialog;
      > function popup() {
      > renameDialog = new YAHOO.widget.Dialog("id", { width:"400px",
      visible : false, fixedcenter : true,modal : true,draggable :
      true,silent:true});
      > renameDialog.setHeader("<center>" + "Rename" + "</center>");
      > renameDialog.setBody("<form accept-charset='utf-8'
      name='renameForm'><table cellspacing=10 cellpadding=5
      border=0><tr><td><lable>Graph Name:</lable></td><td><input
      type='textarea' id = 'rename' accept-charset='utf-8' name='graphName'
      size='30' maxlength= '60'/></td></tr><tr><td colspan = 2><input
      type=button class=button value='Apply'
      onClick='renameDialog.hide()'> <input type=button class=button
      value='Cancel' onClick='renameDialog.hide()'></td></tr></table></form>");
      > renameDialog.render(document.body);
      > renameDialog.show();
      > renameDialog.hideEvent.subscribe(odestroy,renameDialog,true);
      > document.renameForm.graphName.value = "mohan kumar";
      > document.renameForm.graphName.focus();
      > }
      > function odestroy() {
      > this.destroy();
      >
      > }
      > </script>
      > </head>
      > <body>
      > <input type = "button" name = "Dialog1" value="popup1"
      onClick="javascript: popup()">
      >
      > </body>
      > </html>
      >
      > Thanks,
      > mohan
      >
      >
      >
      >
      >
      >
      > ---------------------------------
      > Be a better Heartthrob. Get better relationship answers from someone
      who knows.
      > Yahoo! Answers - Check it out.
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.