- Create Account

Problem using SuperNode in a table..

Forums > "Miscellaneous" Scripts > Problem using SuperNode in a table..
Author
Message

1) James White Group: Guests
IP: 130.76.--.--
Ok...maybe I'm missing something here. I'm using Stuts, JSP, Java etc. for this project I'm working on and came across SuperNotes. Exactly what I need, however notes don't display.

First, I added this line inside of the supernotes.js file. If I must remove it, please let me know:

var supernote = new SuperNote('supernote', {});

Second,  I have this as a data embedded in the td tags:

<td><font size="1" face="Times New Roman">java.lang.Exception: JUnit test: testAddErrorStringString<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a t com.boeing.ids.sds.logger.ApplicationLoggerTest.testAddErrorStringString(Applica tionLoggerTest.java:95)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a t sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at
<a href="#3" class="supernote-hover-3">...</a></font>
<div id="supernote-note-3" class="snp-mouseoffset pinnable notedefault"><a name="3"></a>java.lang.Exception: JUnit test: testAddErrorStringString<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a t com.boeing.ids.sds.logger.ApplicationLoggerTest.testAddErrorStringString(Applica tionLoggerTest.java:95)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a t sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<BR> junit.framework.TestCase.run(TestCase.java:118)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a t com.boeing.ids.sds.logger.ApplicationLoggerTest.main(ApplicationLoggerTest.java: 59)</div></td>

Basically, I'm displaying the stack trace of a Java app in the cell of a table. I'm only allowing the user to view 5 lines of the stack b/c they can get long and provide "..." When the user hovers the ..., I want to display the full stack trace. With that in mind, I added what I thought was sufficient tags around the data and then the note. The note is also embedded in div tags and is also in the table. Please let me know if that's incorrect.

Thanks!!!

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 192.188.--.--
Hmm, should work -- have you got a link to your whole implementation online?

Cheers - Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.