Sign In  Sign Up Live-Chat

Tooltip javascript error on postback

Last post 08-06-2005, 8:20 AM by iret. 5 replies.
Sort Posts: Previous Next
  •  08-05-2005, 1:53 AM 25512

    Tooltip javascript error on postback

    Attachment: Present (inaccessible)
    ASP.NET 1.1
    ASPXpand 1.5.2.0
    IE 6.0.2900.2180.xpsp_sp2_gdr.050301-1519

    In the page load sub I call a sub which executes:

    Dim lic As New Aspose.ASPXpand.License
    lic.SetLicense(p.ReportEng.ReportPath & "Aspose.ASPXpand.lic")

    and another sub which sets the tooltips:

    Aspose.ASPXpand.XLib.ToolTip(Me, lblBasePrice, "<B>Base Price</B> This is the base price of the purchased unit without options, concessions, or other pricing details.", Color.LightYellow, Color.DarkRed)

    If someone submits the page back to the server (which redisplays the page re-executing the above code), IE pops up the javascript error in the attached asposetooltipjserror1.jpg.  If they then mouse-over the label, it pops up another error (couldn't see how to post more then one image here, but it is a 'document.all(...) is null or not an object' error).

     
  •  08-05-2005, 5:55 AM 25534 in reply to 25512

    Re: Tooltip javascript error on postback

    Dear dharmaprotector,

    Thanks for your post.

    Our development team will delivery the fix as soon as possible.

    kyle
    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  08-05-2005, 10:48 AM 25568 in reply to 25534

    Re: Tooltip javascript error on postback

    Kyle,

    Thanks for the quick response.  My goal here is just to get some tooltips displayed on an aspx page and have them continue to be available on every subsequent page load (I've noticed that if you execute them only on If Not IsPostBack it generates errors on subsequent page loads).  If there is already a working methodology to do this, please let me know.

    As it stands, I believe that tooltips only work on the first page view of any aspx page and break on subsequent page views.

    Thanks again,

    James
     
  •  08-06-2005, 12:45 AM 25613 in reply to 25512

    Re: Tooltip javascript error on postback

    Dear dharmaprotector,

    Thanks for your post.

    Please invoke the method Aspose.ASPXpand.XLib.ToolTip, each time when post back.

    Like:



     Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
             Aspose.ASPXpand.XLib.ToolTip(Me, Me.Label1,"<B>Base Price</B> This is the base price of the purchased unit without options, concessions, or other pricing details.", Color.LightYellow, Color.DarkRed)



             ' other code 
            If Not me.IsPostBack Then

              'other initializing
             End If
    End Sub



     

    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  08-06-2005, 8:15 AM 25629 in reply to 25613

    Re: Tooltip javascript error on postback

    Kyle,

    That's exactly what I'm doing which is causing me to see the error I originally posted about.  I'll wait for your fix.

    Thanks,

    James
     
  •  08-06-2005, 8:20 AM 25630 in reply to 25629

    Re: Tooltip javascript error on postback

    Dear James, 

    You need to invoke the tooltip method in the page_load each time the page is loading, not only the postback is true, or postback is false.

    Thanks
    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
View as RSS news feed in XML