Home  |  About  | Last |  Submit  |  Contact
AllQuests.com

Previous Question:  Advisor Question  SitePoint Support and FeedbackNext Question:  How much does it cost GameTrailers.com Forums  Gran Turismo

Question Loading External Pages ( SitePoint Forums Just Starting Your Design )
Updated: 2008-08-12 06:04:31 (5)
Loading External Pages

I have been assigned the task of redesigning an intranet sight. I have some major obstacles and I am not sure how to proceed.

What I have is a main page designed with menus and CSS formatting.

The major problem is that I am not allowed to change the code on the existing pages. These legacy pages need to be loaded dynamically into my template. The legacy pages are multiple links deep.

I need to know how to insert these pages into my template and keep theme there no matter how deep the user navigates.

I am not permitted to use PHP or frames of any kind including iFrames. CGI & PERL were suggested but I am not very familiar with what they offer. Any suggestions on how to tackle this problem will be appreciated.

Answers: Loading External Pages ( SitePoint Forums Just Starting Your Design )
Loading External Pages

You can use SSI includes but if the pages you are including have complete sets of HTML and BODY tags you will be causing yourself a lot of trouble. Without PHP or another scripting language, or iFrames, I'm not sure how you could safely load complete pages.

What about opening the pages in a popup window?

beley

Loading External Pages

I was wondering if you could do it with PERL? No popup are allowed. The problem is that the orginal pages are linked from many other external sources so i cannot change their format. What a mess this intanet is.

JaxsWastedLife

Loading External Pages

I can't see how a script could be invoked if you click on a link on one of the legacy pages. Otherwise, perl can do about the same as PHP, but with a different syntax.

The obvious way to go is frames. What's more important to them; function or no frames? Popups would be the second choice in my opinion.

Maybe if you design the first window to be some sort of floating menu without all the icons, menus etc. and have a big popup window (main window) for the content...? Would they tolerate that?

(Well, now that I think about it, you could do it in perl. Without changing code on the legacy pages. If you invoke the script to read the old page, find all the links in it and then write the page to the browser substituting all links for links to your script. That could work. The legacy pages would be unchanged but you would change them on the fly as you write them to the browser. Would that be acceptable?

eg. any link in your menu points to your script:
<a href="script.pl pagename.htm">Linktext</a>
where pagename.htm is the page you're after

Your script reads which page the browser wants (pagename.htm)
reads the file and substituts all links
<a href="page_2.htm>Linktext</a> for
<a href="script.pl page_2.htm>Linktext</a>

The script also writes all the menus etc.
Could work..., Might not be that hard even.
Try asking in the perl section about this (as I'm not really that good at perl)

Good luck

figbeam

Loading External Pages

Well:
How about legacy CSS? Is there any?

In that case you might have to read it all (including linked CSS files etc.) and print them in the style section before you print the rest of the page...

Will you have defined any tags (h1 etc.) in some other way then the legacy page wants? Do you use the same class names anywhere?

Hopefully not. If its old enough to be "legacy" it shouldnt be CSS-ridden. But check it nonetheless...

figbeam

Loading External Pages

I don't know PERL yet, but I expect it could so this. It may not be easy though. String parsing can be very complicated.

This seems like one of the few times where frames might be the best solution.

Kravvitz

Previous Question:  Advisor Question  SitePoint Forums  SitePoint Support and FeedbackNext Question:  How much does it cost GameTrailers.com Forums  GameTrailers.com Forums  Gran Turismo

- Source: Loading External Pages SitePoint Forums Just Starting Your Design
- Previous Question: Advisor Question SitePoint Forums SitePoint Support and Feedback
- Next Question: How much does it cost GameTrailers.com Forums GameTrailers.com Forums Gran Turismo





AllQuests.com


Best dedicated servers   Top dedicated servers   Cheap dedicated servers   Linux dedicated servers   Windows dedicated servers   Unmetered dedicated servers