Search & Replace U-Includes

J

jmpatrick63

I'm using FP2003 and trying to modify a path withing a U-include.

When I run Search & Replace it does not find the code on the pages
even though it is an exact match.

Here's the example: http://www.motorcityrock.com/bands/kaos/kaos.html

Click on the SEARCH link on the left navbar. You'll see a Seach layer
open just below the masthead.

Now try this example: http://www.motorcityrock.com/bands/katzemjammer_kids/katzemjammer_kids.html

When you click on the SEARCH link you get a Javascript error. The
difference between the two pages is the first example has the complete
path specified to the navbar include: "http://www.motorcityrock.com/
navbar_left.html", whereas the second example uses: "../../
navbar_left.html" as the target. I learned that by using the complete
path I don't get the Javascript error.

So, I want to use Search and Replace to change the path on all 8000+
pages of my website, FP scans all the pages and comes back with 0
results. For whatever reason, it's not finding the "../../
navbar_left.html" located with the webbot code.

Any ideas?
 
T

Thomas A. Rowe

To solve this JS issue, you need to create a absolute URL to the JavaScript function or change the
JavaScript function use only Absolute URL to nay pages in your site. You can not set the FP
navigation component to use Absolute URLs if you plan on having FP manage the navigation structure
or if using the FP Include Page component, etc.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
J

jmpatrick63

OK, I'll work on the Javascript. Here's what I have:

<a href="javascript:;" onclick="FP_changeProp(/*id*/'layer1',
0,'style.visibility','visible')">

How would I create an absolute link to the function?

Thanks!

jp
 
T

Thomas A. Rowe

You can't as that is created by FP. You would have to find a replacement script.

However that script has no path info, so this should not be causing you any of the issue you
indicated.
--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
J

jmpatrick63

You do realize that:http://www.motorcityrock.com/bands/katzemjammer_kids/katzemjammer_kid...

has none of the javascript in the head section that:http://www.motorcityrock.com/bands/kaos/kaos.htmldoes.

--

Steve Easton
Microsoft MVP FrontPage
FP Cleanerhttp://www.95isalive.com/fixes/fpclean.htm
Hit Me FPhttp://www.95isalive.com/fixes/HitMeFP.htm


No, I didn't notice that. Here's the crazy part (follow me): When I
open a page that has the SEARCH link that causes the Javascript error,
then re-link the navbar Include (double-click, browse to include
page), I get all the extra Javascript stuff at the top of the page
that you're seeing...and the SEARCH works!

Strange?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top