Board Logo

Problems with external websites in frame
MaxFromH - 10/13/2005 at 09:30 AM

I use some own JS-Routines, that I include into my own websites by PHP include statements.

This works fine for my own pages. But when I let a foreign website (e.g. Google search results) run in a frame of my website, the menu doesn't work any more. This is logical for me, because those external sites don't contain my JS-Code, but I don't know what to do.

Is there a solution for this problem?


rock - 10/17/2005 at 09:39 AM

Does tree show up?

MaxFromH - 10/18/2005 at 09:26 AM

Originally posted by rock
Does tree show up?

Yes, in a frame of its own. But nothing happens, when I click an item (when a self-defined JS-function should be invoked).

rock - 10/18/2005 at 10:55 AM

I think it's a target frame issue - JS function should be defined in the fraget frame. Maybe link to live demo could be useful for diagnostic purposes.

MaxFromH - 10/20/2005 at 09:13 AM

Let me clarify, Rock.

I have two frames:
1. a navigation-frame containing an HTML-Page with the Tree-Menu JS-Code
2. a content-frame containing my PHP-Pages *and* my self-written JS-Code for Tree-Menu.

This constellation works fine.

But: when I let a foreign page run in my "content"-frame (e.g. a Google result page), my Tree-Menu won't work any more, because that foreign page does not contain the JS-Code needed for Tree-Menu. This is totally logical.

My question was: is there a solution for this problem?

rock - 10/20/2005 at 11:13 AM

Ok, its clear now. If you could not effect these extranal pages (say inserting some JS code after the frame loads) solution could be only to use some JS function at tree frame page to redirect URLs.
BTW: what sort of code you've witen for the tree (said "my self-written JS-Code for Tree-Menu")?
Again: live demo could be useful

Back to forum: