Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HELP in tooltip - Good Question

    Friends,

    In Http://www.roseindia.net/javascript/...ile-data.shtml found a routine to access Excel data.

    What I need is the same routine with adjusts. The Excel data should be presented as follows: Hovering the mouse over the button the cell information must appear in tooltip next to the button.

    Thanks

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Probably

    Code:
     function GetData(cell,row){
      var excel = new ActiveXObject("Excel.Application");
      var excel_file = excel.Workbooks.Open("C:\\amitdata.xls");
      var excel_sheet = excel.Worksheets("Sheet1");
      var data = excel_sheet.Cells(cell,row).Value;
      document.getElementById('div1').title='Data: ' + data;
       }
    but you should attach the title to the button rather than the div.

    and use onmouseover
    Last edited by AndrewGSW; 07-19-2012 at 07:02 PM.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • #3
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Dear friends,

    I appreciate any and all expressions of interest for my problem. I understand that you have lost time looking for any ideas. But I ask you to pay attention to my request.

    What I need is the Excel DATA IN TOOLTIP

    My problem is to show the Excel data in a tooltip next to the button.

    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •