aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Add Data from database in a Tooltip Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Add Data from database in a Tooltip" Watch "Add Data from database in a Tooltip" New topic
Author

Add Data from database in a Tooltip

Sonu Sen
Greenhorn

Joined: Jun 03, 2009
Posts: 17
I am developing a project for Hotel.In this when i select the room No from the copmbobox . the related bed , Allocated and non allocated bed are displayed in a div. For display that bed I used the Dynamic span means document.createElement("span");. While creating the span if the bed is allocated the BgColor of span is red and not allocated bed the BgColor is blue.

Now my problem is when I move the mouse over the allocated bed I want to display the information of customer for which that bed is allocated in the ToolTip from the database.

My Code is :



Please Help Me...Thank You
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please read UseCodeTags.

I'm not sure what the actual question is--how to use whatever tool tip library that is you're using?
Sean Clark
Rancher

Joined: Jul 15, 2009
Posts: 377

Hey,
I think this is more a HTML + Javascript issue since that is what you are using.

You haven't really told us what this script is doing. What is getting displayed/not displayed?
Are you getting Javascript error messages?
I'm guessing you are recieving some kind of JSON data, can we see what xmlhttp.responseText is please?

Sean


I love this place!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56213
    
  13

Please be sure to ask JavaScript questions in the HTML/JavaScript forum. I have moved this post there for you.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
What is your problem exactly? Error message?

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Add Data from database in a Tooltip
 
Similar Threads
Regading getElementById
question about objects and events in javascript
How to display value in combo box using AJAX
Need Help With Dynamic text box in JSP
how to receive data in .jsp file from servlet in AJAX?