1. #1
    Ext User
    Join Date
    Aug 2007
    Posts
    78
    Vote Rating
    0
    nromanel is on a distinguished road

      0  

    Default Update Tooltip Html

    Update Tooltip Html


    Hi All, a bit confused...

    Whats the best way to update the html in a simple tooltip?

    i tried:

    Code:
    myToolTip.html = 'new data'
    myTolTip.update('new data');
    What am I missing?

  2. #2
    Ext JS Premium Member
    Join Date
    Jun 2009
    Posts
    72
    Vote Rating
    0
    sneema is on a distinguished road

      0  

    Default


    hey.... were you able to update tooltip ?? I am facing similar issue...

    may be we can add a item instead of html and then use updater element to update ??

    we need to provide url in update method. Please see Ext.Update

  3. #3
    Ext User
    Join Date
    Aug 2007
    Posts
    78
    Vote Rating
    0
    nromanel is on a distinguished road

      0  

    Default


    I haven't found an answer yet, and i actually haven't looked at the problem since I posted.
    Hopefully I get some time later this week.

  4. #4

  5. #5
    Ext JS Premium Member
    Join Date
    Jun 2009
    Posts
    72
    Vote Rating
    0
    sneema is on a distinguished road

      0  

    Default


    @Animal : I am not sure why did you post link to Ext Panel class ??

  6. #6
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,501
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      -1  

    Default


    Did you see what a Tip IS?

  7. #7
    Ext JS Premium Member
    Join Date
    Jun 2009
    Posts
    72
    Vote Rating
    0
    sneema is on a distinguished road

      0  

    Default


    yeah I knw... it is a panel... panel -> subclass Tip -> subclass tooltip ... so I understand that adding panel as item doesn't make sense....
    I cannot get updator from Tooltip obj, I am not able to directly update the contents... so I cannot figure out any other way to update...

  8. #8
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,501
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      -1  

    Default


    So you didn't follow the link then. Fine.

  9. #9
    Ext User
    Join Date
    Aug 2007
    Posts
    78
    Vote Rating
    0
    nromanel is on a distinguished road

      0  

    Default


    Trying a different approach and still having a problem... what am I missing

    Code:
    var toolTipTemplate = new Ext.XTemplate(
    		'<b>Status:</b> {status}<br/>',
    		 '<b>Description:</b> {description}'
    	);
    
    
    var myToolTip = new Ext.ToolTip({
    		title: 'My Title',
    		width: 200,
    		tpl: toolTipTemplate,
    		data: {
    			status: 'Default Status',
    			description: 'Default Description'
    		},
            autoHide: false,
            closable: true,
            draggable:true
    		});
    
    
    myToolTip.update({status: 'New Status', description: 'New Description'});
    With that snippet of code, the tool tip doesn't get updated with the new info.

    Any thoughts?

    Thanks!!

  10. #10
    Ext User
    Join Date
    Aug 2007
    Posts
    78
    Vote Rating
    0
    nromanel is on a distinguished road

      0  

    Default


    Ahh, so I figured it out... sorta...

    When attempting to update the tooltip before it has been rendered once it fails with "el is null" presumably since it hasn't been displayed yet, it's container hasn't been created.

    If I show the tooltip and then attempt to update it, it works fine.

    So now my question is this... how can I update the tooltip if a user hasn't already viewed it once?

    Thanks!

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi