Loading External Pages

Reply

Join Date: Jun 2005
Posts: 8
Reputation: JaxsWastedLife is an unknown quantity at this point 
Solved Threads: 0
JaxsWastedLife JaxsWastedLife is offline Offline
Newbie Poster

Loading External Pages

 
0
  #1
Jun 22nd, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 54
Reputation: senexom is an unknown quantity at this point 
Solved Threads: 0
senexom's Avatar
senexom senexom is offline Offline
Junior Poster in Training

Re: Loading External Pages

 
0
  #2
Jun 28th, 2005
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 :-|
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,073
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: Loading External Pages

 
0
  #3
Sep 30th, 2005
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.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 10
Reputation: Lance Wassing is an unknown quantity at this point 
Solved Threads: 0
Lance Wassing Lance Wassing is offline Offline
Newbie Poster

Re: Loading External Pages

 
0
  #4
Apr 5th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 18
Reputation: xeto is an unknown quantity at this point 
Solved Threads: 0
xeto xeto is offline Offline
Newbie Poster

Re: Loading External Pages

 
0
  #5
Nov 20th, 2007
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the IT Professionals' Lounge Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC