PDA

View Full Version : Help With "Find in Page Script"



jdizzle
09-25-2004, 08:59 PM
Script:Find in Page Script (http://www.dynamicdrive.com/dynamicindex11/findpage.htm)

I have a top frame(name="tabs") and a bottom frame(name="archive") on my site. The "Find in Page" script is located in the top frame. I want to be able to search a large string of data in the bottom frame of my page.

This is the source for the "main" page which I view the two frames on:

<html>
<head>
<FRAMESET rows="100, 200">
<FRAME name="tabs" src="http://www.angelfire.com/folk/johncochran/Tabs.html">
<FRAME name="archive" src="http://www.angelfire.com/folk/johncochran/Archive.html">
</FRAMESET>
</head>
<body>
</body>
</html>



This is a snippet from the "find in page" script's source code, located inside the top frame(tabs) (This is the section where the frame variability is located):

// USE THE FOLLOWING VARIABLE TO CONFIGURE FRAMES TO SEARCH
// (SELF OR CHILD FRAME)

// If you want to search another frame, change from "self" to
// the name of the target frame:
// e.g., var frametosearch = 'main'

//var frametosearch = 'main';
var frametosearch = archive;


If "ANYONE" has any help or ideas, please reply. Thanks

cr3ative
09-26-2004, 05:47 AM
You've asked this before, and it was answered here?

http://www.dynamicdrive.com/forums/showthread.php?t=199

Sorry if i'm being blind :o
cr3ative