Thanks,

it was not due to problem of timing, because whenever I launch html fragment 
with ajax I generate an event. And I attach actions to this event (in this case 
creation of the tips).
Then all stuff are synchronised. (I pray for this)

Creating StickyWind.PointyTips with relativeTo was unefficient and the box 
container used  to compute the location of the Tips was a parent container of 
the one's mentionned in 'relativeTo' option

I don't know exactly the origin of the problem, but the workaround was to use 
effectively 'position' method (of Tips) to reassert the stickyWin.PointyTip 
location.


Thanks again nutron

  ----- Original Message ----- 
  From: nutron 
  To: [email protected] 
  Sent: Friday, April 17, 2009 7:29 PM
  Subject: [Moo] Re: StickyWind and Ajax loading


  My best guess is it's a rendering thing. The browser sometimes is able to run 
your code faster than it can render the document. Try adding a delay to the 
creation of your tip. Just wrap your tip creation with:

  (function(){

  }).delay(200)

  and see if that helps.

  Also note that you can call the position method on the tip to have it 
reassert it's location.


  On Fri, Apr 17, 2009 at 9:55 AM, patrick-5 (via Nabble) 
<ml-user%2b162544-1744807...@...> wrote:

    Â 
    Hi all,
    Â 
    I've this kind of problem, may be you can help me. 
    Â 
    I've a html code that i launch via Ajax.
    When the code is loaded I create on a <div id="target" > inside a <form> a 
StickyWin.PointyTip.
    I attach it on the div via relatedTo: 'target'
    ----
    The pb I encouter is that my pointytip is well created but is not well 
positioned.
    I spend a lot of time to understand that maybe it is due to the Ajax 
loading because the pointyTip is located near the <div> which encompass the 
html fragment and not located near the 'target'.
    ---
    The code looks like this :
    fragment html i load :
    <div id="point1">
    <p> some Texte blablabla</p>
    Â 
    <form>
    <div id="target">
    Â Â Â  <label>So nice label</label>
    Â Â Â  <input type='text' ......./>
    </div>
    Â 
    ....others input...
    Â 
    </div>
    Then the StickyWin is located near "point1" and not near "target".
    Â 
    Do you have a workaround for this situation ?
    Is there a specific option to set when creating the stickyWin.PointyTips ?
    Â 
    Thanks a lot.


  The MooTools Tutorial: www.mootorial.com Clientcide: www.clientcide.com


------------------------------------------------------------------------------
  View this message in context: Re: [Moo] StickyWind and Ajax loading
  Sent from the MooTools Users mailing list archive at Nabble.com.



------------------------------------------------------------------------------



  No virus found in this incoming message.
  Checked by AVG - www.avg.com 
  Version: 8.0.238 / Virus Database: 270.11.59/2064 - Release Date: 04/17/09 
07:08:00

Reply via email to