-
-
Re: Zoom Search / iFrame question
On Sun, 14 Feb 2010 14:43:30 +0000, Adendum wrote:
> Many thanks for your perseverance on this.
No problem - glad to help.
> Zoom.
> That issue is resolved - using my method of iFrames, Zoom now works and
> I assume your method it will work too. So this one's closed.
Yes, using the follow links setting in Zoom will do just that.
Using Include files (PHP or SSI) the content is absorbed into the parent
page, so it is a non-issue.
> As the site currently stands my Zoom results page points to the main
> page not the client iFrame page but as there is a javascript concern
> (that calls in the main page) changing to the php style is the next step.
> iFrames/php.
> I tried one page, the home page and used your script to include the
> client page. Thanks for that too! My main page is a .php page and I also
> made the client page a .php page.
Just an FYI - the client page does not even have to have an extension.
Keep in mind that it is not a real page ( IOW - there should be no HTML,
HEAD, or BODY tags in it. It is just a chunk of content ).
> That all worked to a point. The main
> index page did include the client page (from a different folder
> html-client) but the images used in the client page are all now broken
> links. Instead of looking for the images on the /html-client/assets
> folder the page is looking for the images on /assets folder. So I guess
> the php include assumes the included content will use the main page/site
> structure and takes no notice or overrides the code in the client page?
Everything is relative if your using relative links.
So a link on the parent page in the html folder that points to
.../assets/images goes UP one directory level, OVER to the assets directory,
DOWN into that and DOWN again into the images folder.
If you have the same link path from a chunk of HTML that is in a folder
called client that is BELOW the html folder, it is going to have a
different path like this:
/assets/images
That would originate the URL from the root directory.
> Therefore...If I republish the client pages to a sub-folder under the
> main site's html folder e.g. html/client/index.php and
> html/client/html/news.php and html/client/html/aboutus.php and so on
> will that see the images? Probably not as the images will be in
> html/client/assets.
Just cheat<g>.
Put the client pages IN the html folder and your done.
Otherwise you need to adjust your path, or put copies of the images for the
client sections in a different folder that is in a path relative to the
location of the client pages.
OR
Use absolute URLs to the images like:
http://www.domain.com/assets/images/...
> lol....my head is spinning now!
Your getting close then<g>.
Good luck!
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules