File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Having problem using Ajax

 
Sapan Shah
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Kindly see the below the link

Venus Diamond.

In this page there is Diamond DNA column. When you click on the images of Diamond DNA column the next row which was hidden while show the content of another jsp page which is index1.jsp .

Now we have a requirement of using tooltip on the image which is on index1.jsp but we are unable to do so and the content of tooltip is displaying below the image.


Regards

Sapan Shah
 
Saurabh Pillai
Ranch Hand
Posts: 524
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is the tooltip contents available on index1.jsp? Is it part of JSP (hard coded) or being pulled from database?
 
Sapan Shah
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is hard coded.
 
Saurabh Pillai
Ranch Hand
Posts: 524
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After little bit of debugging, it looks like, image and the tool tip text both are on index1.jsp. Why don't you use 'title' attribute of <img> tag.
 
Sapan Shah
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot use title because the content contains <br/> tag . For example :- This is first line.<br/>This is second line.

 
Saurabh Pillai
Ranch Hand
Posts: 524
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sapan Shah wrote:I cannot use title because the content contains <br/> tag

And you can not remove <br>? Also, tool tip supposed to be short.
 
Sapan Shah
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The tooltip content contains max 10 lines and on every line there will be max 30 characters.That's why after 30 character there will be <br/> tag which breaks the line.
 
Saurabh Pillai
Ranch Hand
Posts: 524
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sapan Shah wrote:The tooltip content contains max 10 lines and on every line there will be max 30 characters.That's why after 30 character there will be <br/> tag which breaks the line.

Is this supposed to be tooltip or tool description. Anyways, you can call a javascript function on mouseover event which will render a floating div tracking mourse position having your tooltip text.
 
Sapan Shah
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried doing the same way has you said but it is not working.

index.jsp




and index1.jsp





 
Saurabh Pillai
Ranch Hand
Posts: 524
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sapan Shah wrote:I have tried doing the same way has you said

It does not look like that way. What does call_shw() function do? Where is the function that creates tooltip.

Sapan Shah wrote:but it is not working.


'It is not working' does not help anyway. Separate out the problem and paste specific code here.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic