PDA

View Full Version : Multi Tab HTML Excel Document - Jump to match and highlight



Anonymous
08-04-2005, 06:01 PM
I'm attempting to add this multi-tabbed HTML Excel document to my database but running in to a problem with the jump to match and highlight function. I've added the following to my document:
-
<head>
<style>.highlight { background: #FFFF40; }</style>
<script type="text/javascript" src="W:\WCS_IP\Search_Engine\highlight.js"></script>

</body>
<script type="text/javascript">highlight();</script>
-
The problem is that with a multi-tabbed HTML excel docuement it will not search/highlight the item being searched. If the HTML Excel document is only one tab, the funtion works great. Any help would be greatly appreciated. If any of this is not clear, please post back and I'll try and help.

Thanks, Todd

wrensoft
08-05-2005, 06:40 AM
Can you post the URL to your document so that we can have a look.

My guess is that the tabs are not initially visable when the document is opened. The highlighting only works when the page is initially opened on the text that is on the page at the time. If some Javascript executes at some point after the page load and changes the text on the page, then the highlighting function will not notice the change, becuase it has already finished running.

------
David