954,087 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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.

JaxsWastedLife
Newbie Poster
8 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

Maybe I'm not understanding this corectly, but couldn't you duplicate the intranet (I asume it's static content) and re-design in a separate server (folder?) meanwhile the old intranet is up.

Also why is that CGI and Perl are OK, but PHP not? Seems a bit wierd :-|

senexom
Junior Poster in Training
54 posts since Jun 2005
Reputation Points: 11
Solved Threads: 0
 

Since you cant change the existing html pages, every time a user clicks on a link in your template, it links to the html page directly, and not through your template.
Avoiding this cannot be one with a server side scripting language anyways.
It depends on the server you are using. You will have to force the server to run your template each time a link, above your template directly is clicked. Then read the url, and include the html page in your template.
Forcing the server to run your template first is server dependant.
If on apache you can use mod rewrite, or forcetype directives. theres alot on the topics on the net.
Your problem is similar to creating search engine friendly urls on dynamic pages.
So one of the existing solutions may work.
:)

digital-ether
Nearly a Posting Virtuoso
Moderator
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
 

Digital-ether,

Your post is very interesting, and is exactly what im looking for.. but im not sure, i've got the code right.

what i have is:

FILE * db;
        char str[680];

        db = fopen("Applications\\ffdbs\\client001.ffdb", "rt+");
        //if(db == NULL) exit(1);
        int pos = 0;
        while(!feof(db))
        {
                fgets(str, 690, db);
                strcpy(data[pos].c_str(),str);
                pos = pos +1;
        }
        fclose(db);

that should theoretical copy the line into the line array (data[]). In another function i have:

FrmClient->ClientCode->Text = data[0].SubString(3,6);


which should return the client code, out of my line array at line position 0. But, it's returning a null value...

do you have any ideas why this may be happeneing, not just digital-ether, but anyone.... please let me know, my grade depends on it.

Thanks,

Lance Wassing

Lance Wassing
Newbie Poster
10 posts since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

Since you cant change the existing html pages, every time a user clicks on a link in your template, it links to the html page directly, and not through your template.
Avoiding this cannot be one with a server side scripting language anyways.
It depends on the server you are using. You will have to force the server to run your template each time a link, above your template directly is clicked. Then read the url, and include the html page in your template.
Forcing the server to run your template first is server dependant.
If on apache you can use mod rewrite, or forcetype directives. theres alot on the topics on the net.

xeto
Newbie Poster
17 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: