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.

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 :-|

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,

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.