1. #41
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    6
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    One more observation. Even after calling destroy() there is still a "x-shadow" class present in the DOM. I see from the source it may be there for caching purposes. I don't know about that, but in this example, I noticed that for subsequent notification windows the Z-Index of this element creeps by 10 each time.

    Could the incrementing of the z-index eventually be a problem if this is left to run on like that?

    I think the shadow in question is from the notification window as it doesn't exist in the DOM until the notification window is first called, and the size appears commensurate with the notification window.

  2. #42
    Sencha - Community Support Team SamuraiJack1's Avatar
    Join Date
    May 2008
    Posts
    554
    Vote Rating
    3
    SamuraiJack1 will become famous soon enough

      0  

    Default


    Great extension.

    May I publish it in repository? (with you as author of course) I'm using it personally and would like to add new features it in the sane way (through svn patches)

  3. #43
    Ext User
    Join Date
    Aug 2008
    Posts
    10
    Vote Rating
    0
    abhishek611plus is on a distinguished road

      0  

    Default problem while using it on EXTJS Desktop...

    problem while using it on EXTJS Desktop...


    guys,
    i m using EXTJS Desktop ... its working .. the only is when i m opening any window..this notification remains visible over the window...


    any solution????

  4. #44
    Ext User
    Join Date
    May 2007
    Location
    jakarta
    Posts
    9
    Vote Rating
    0
    bloon is on a distinguished road

      0  

    Lightbulb my addition for toastalert

    my addition for toastalert


    Hi All, sorry for english,

    this is my addition in toastalert function

    Code:
    toastID = '';
    function toastAlert( the_message, the_title, the_icon, autoDestroy ) {
       the_title = typeof(the_title) != 'undefined' ? the_title : 'Notice';
       the_icon = typeof(the_icon) != 'undefined' ? the_icon : 'icon-information';
       autoDestroy = typeof(autoDestroy) != 'undefined' ? autoDestroy : false;
       if (the_icon == 'icon-information') {
            imgIcon = 'images/icons/information.png';
       } else if (the_icon == 'error') {
            imgIcon = 'images/icons/error.png';
       } else {
            imgIcon = 'images/icons/note.png';
       }
       tmp1 = '<table cellpadding=2 cellspacing=0>';
       tmp1 += '<tr>';
       tmp1 += '<td width="10%" style="padding-right: 8px; vertical-align:top;align:left">';
       tmp1 += '<img src="' + imgIcon + '" width=32 height=32 border="0"></td>';
       tmp1 += '<td width="90%" style="font-size: 11px; font-family: Verdana, ';
       tmp1 += 'sans, Arial; vertical-align:top">'+the_message+'</td>';
       tmp1 += '</tr></table>';
        if (toastID == '') {
           tmp = new Ext.ux.Notification({
              title: the_title, iconCls: the_icon, autoDestroy: autoDestroy,
              // html: the_message
              html: tmp1
           });
        } else {
            if (!Ext.isEmpty(Ext.getCmp(toastID))) {
                Ext.getCmp(toastID).animHide();
            }
           tmp = new Ext.ux.Notification({
              title: the_title, iconCls: the_icon, autoDestroy: autoDestroy,
              // html: the_message
              html: tmp1
           });
        }
       tmp.show(document);
        toastID = tmp.id;
       return tmp.id;
    }
    it's to remind the toastwindow if it's already popup then the next message will placed in the same window. for me, it's effective to avoid recurrance of notification window in the right side. also, i change it into a table, where the icon resize into 32x32 pixels and the message in the right side.

  5. #45
    Sencha User
    Join Date
    Apr 2008
    Posts
    99
    Vote Rating
    0
    Bulle Bas is on a distinguished road

      0  

    Default


    Strangely enough, I hear a nice sound in Internet Explorer 7, whereas Firefox 3.0.3 doesn't play any sound.

  6. #46
    Sencha User
    Join Date
    Sep 2008
    Posts
    193
    Vote Rating
    0
    fxmisticat is on a distinguished road

      0  

    Default


    Quote Originally Posted by Bulle Bas View Post
    Strangely enough, I hear a nice sound in Internet Explorer 7, whereas Firefox 3.0.3 doesn't play any sound.
    I had to use soundManager2 for firefox

  7. #47
    Sencha User
    Join Date
    Apr 2008
    Posts
    99
    Vote Rating
    0
    Bulle Bas is on a distinguished road

      0  

    Default


    Thanks for the tip. If I need to use this, I will certainly refactor it to soundmanager2.

    lol@website:
    SoundManagR 2.0 Beta™ is a social, long-tail-oriented RIA-based enterprise javascript sound platform which leverages streaming AJAX push technology, Web 2.0, and leveraging. Including plenty of ajaxy goodness, this turn-key, SOA-based and Ajax-enhanced platform will take your Rich Enterprise Applications to the next level, connect the dots and move the needle when mashed up with Web 2.0 collective wisdom of the crowd-wowing features such as drag and drop, auto-complete and real-time performance thanks to enterprise mashup servers.

    By leveraging the collective blogosphere and rich folksonomy aspects of the web, it is expected that these supporting technologies may be joining the RIP (Rich Internet Professionals) and DOA (Development Of Asininity) groups within the next few years.

  8. #48
    Sencha User michaelc's Avatar
    Join Date
    Dec 2007
    Location
    Bay Area - CA
    Posts
    507
    Vote Rating
    0
    michaelc is on a distinguished road

      0  

    Default


    Hello looking at using this.
    I seem to have two minor items.

    1. the sound is not available, in firefox 3 ( super trivial ) I also see the fix three notes above if I want it.

    2. in IE7 if I click on the alert/dialog box the cancel x never shows up, unless I click on the edge of the actual dialog. this is a problem. if the user clicks on the dialog, it will never go away.

    I see that protoculous-packer.js is for the sound effect, does it have any other value ?

  9. #49
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    6
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Michael, you might want to also check out my version:
    http://extjs.com/forum/showthread.php?t=48135

  10. #50
    Sencha - Support Team keckeroo's Avatar
    Join Date
    Mar 2008
    Location
    Winnipeg, Canada
    Posts
    321
    Vote Rating
    10
    keckeroo will become famous soon enough

      0  

    Default


    How would I go about making the 'text' of the notificatication actually do things ? I've managed to inject html anchors into the message and that works, but i'm stumped as to how to close the notification window when any link is clicked ... eg ....

    Code:
        QoDesk.getDesktop.showNotification({
          html: ''Service unavailable ... Click <a href="#" onclick="QoDesk.chatManager.doLogin(false); this.close(); return true;">here</a> to reconnect.',
         autoDestroy: false 
       });
    Basically - just like msn - i'm trying to do a notification that will stay there until the window is closed [x] or the anchor is clicked to perform a routine (but upon click i want the notification to close)

    Thanks,

    Kevin