944,120 Members | Top Members by Rank

Ad:
Jun 22nd, 2005
0

Loading External Pages

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
JaxsWastedLife is offline Offline
8 posts
since Jun 2005
Jun 28th, 2005
0

Re: Loading External Pages

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 :-|
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
senexom is offline Offline
54 posts
since Jun 2005
Sep 30th, 2005
0

Re: Loading External Pages

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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Apr 5th, 2007
0

Re: Loading External Pages

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Lance Wassing is offline Offline
10 posts
since Apr 2007
Nov 20th, 2007
0

Re: Loading External Pages

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
xeto is offline Offline
17 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in IT Professionals' Lounge Forum Timeline: India running out of skilled IT workers
Next Thread in IT Professionals' Lounge Forum Timeline: Website loading speed





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC