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

Re: [ydn-javascript] yui tooltips and IE

Expand Messages
  • Satyam
    The first thing to check when something works in Firefox and not in IE is if for commas in an array, as you do in: contextPhoneElements= [ passwordTipId ,
    Message 1 of 2 , Jan 2, 2009
    • 0 Attachment
      The first thing to check when something works in Firefox and not in IE
      is if for commas in an array, as you do in:

      contextPhoneElements=
      ["passwordTipId", "confirmPasswordTipId",];

      IE doesn't like that last comma before the bracket. Check for others, I
      didn't.

      Satyam


      Jason Brett wrote:
      > I am having an issue with tooltips. THey work perfectly in Firefox,
      > but with IE I get the tool tip, but I notice that the vertical
      > scrollbar on the right seems to be moving and add blank space is
      > added to the bottom of my page. I am not sure what is going on , so
      > any insight would be helpfull.
      >
      >
      > Thanks
      >
      > here is the code that I am using
      >
      > <script type="text/javascript">
      > YAHOO.namespace("example.container");
      > var contextPhoneElements = [];
      > contextPhoneElements=
      > ["phoneTipId", "faxTipId", "supervisorTipId", "pmTipId"];
      > YAHOO.example.container.init = function() {
      > var ttB = new YAHOO.widget.Tooltip
      > ("urlToolTipId", {
      >
      > context:contextPhoneElements,text:'<spring:message
      > code="phone.tooltip.ps"/>',effect:
      > {effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}
      > });
      > var emailTT = new
      > YAHOO.widget.Tooltip("emailTT", {
      > context:"emailTipId",
      > text:'<spring:message code="email.tooltip.ps"/>',effect:
      > {effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}
      > });
      > var contextPasswordElements = [];
      > contextPhoneElements=
      > ["passwordTipId", "confirmPasswordTipId",];
      > var emailTT = new
      > YAHOO.widget.Tooltip("passwordTT", {
      >
      > context:contextPhoneElements, text:'<spring:message
      > code="password.tooltip.ps"/>',effect:
      > {effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}
      > });
      > }
      >
      > YAHOO.util.Event.addListener(window, "load",
      > YAHOO.example.container.init);
      > </script>
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      >
      > No virus found in this incoming message.
      > Checked by AVG - http://www.avg.com
      > Version: 8.0.176 / Virus Database: 270.10.2/1872 - Release Date: 02/01/2009 13:10
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.