As I'm writing this I think I am answering my own question, but I'd like to
get any other ideas on the subject as well.
I have a standard Header.asp that I want to include in every other page in
my site. Header.asp is located in the root folder, but the calling pages are
in various folders/levels. Since the relative paths specified in header are
subject to change and are based on the relative path of the calling page,
problems arise. (Strangley, using the IFRAME method of including a header
doesn't react the same way.)
The solution I believe lies in using absolute paths in the Header.asp file
using the "virtual" include qualifier. But this assumes your development
directory structure is the same as your production environment. So I guess
that is the answer. Use absolute paths and set up your development directory
structure to be identical to your production.
Any other thoughts/best practices? 4 1572
use virtual includes to call yuo headers as they will work the same
everywhere http://www.powerasp.com/content/code...s/includes.asp
then in your headers use full urls to everything or virtual paths so theyt
work from any level ogf your site
"Chad Richardson" <chad@NIXSPAM_c hadrichardson.c om> wrote in message
news:11******** *****@corp.supe rnews.com... As I'm writing this I think I am answering my own question, but I'd like to get any other ideas on the subject as well.
I have a standard Header.asp that I want to include in every other page in my site. Header.asp is located in the root folder, but the calling pages are in various folders/levels. Since the relative paths specified in header are subject to change and are based on the relative path of the calling page, problems arise. (Strangley, using the IFRAME method of including a header doesn't react the same way.)
The solution I believe lies in using absolute paths in the Header.asp file using the "virtual" include qualifier. But this assumes your development directory structure is the same as your production environment. So I guess that is the answer. Use absolute paths and set up your development directory structure to be identical to your production.
Any other thoughts/best practices?
and yes virtual includes are going to be different on your lcaol machine
than on the live server
there isnt much you can do about that unless parent paths are enabled and
you want to do all your includes with "../" info which will work both at
home and n the live server
"Chad Richardson" <chad@NIXSPAM_c hadrichardson.c om> wrote in message
news:11******** *****@corp.supe rnews.com... As I'm writing this I think I am answering my own question, but I'd like to get any other ideas on the subject as well.
I have a standard Header.asp that I want to include in every other page in my site. Header.asp is located in the root folder, but the calling pages are in various folders/levels. Since the relative paths specified in header are subject to change and are based on the relative path of the calling page, problems arise. (Strangley, using the IFRAME method of including a header doesn't react the same way.)
The solution I believe lies in using absolute paths in the Header.asp file using the "virtual" include qualifier. But this assumes your development directory structure is the same as your production environment. So I guess that is the answer. Use absolute paths and set up your development directory structure to be identical to your production.
Any other thoughts/best practices?
and sorry for typos..
new laptop. damn small keybord
"Kyle Peterson" <kp*****@hotmai l.com> wrote in message
news:OV******** ******@TK2MSFTN GP14.phx.gbl... use virtual includes to call yuo headers as they will work the same everywhere http://www.powerasp.com/content/code...s/includes.asp
then in your headers use full urls to everything or virtual paths so theyt work from any level ogf your site
"Chad Richardson" <chad@NIXSPAM_c hadrichardson.c om> wrote in message news:11******** *****@corp.supe rnews.com... As I'm writing this I think I am answering my own question, but I'd like to get any other ideas on the subject as well.
I have a standard Header.asp that I want to include in every other page in my site. Header.asp is located in the root folder, but the calling pages are in various folders/levels. Since the relative paths specified in header are subject to change and are based on the relative path of the calling page, problems arise. (Strangley, using the IFRAME method of including a header doesn't react the same way.)
The solution I believe lies in using absolute paths in the Header.asp file using the "virtual" include qualifier. But this assumes your development directory structure is the same as your production environment. So I guess that is the answer. Use absolute paths and set up your development directory structure to be identical to your production.
Any other thoughts/best practices?
Great, thanks Kyle.
"Kyle Peterson" <kp*****@hotmai l.com> wrote in message
news:uX******** ******@tk2msftn gp13.phx.gbl... and yes virtual includes are going to be different on your lcaol machine than on the live server
there isnt much you can do about that unless parent paths are enabled and you want to do all your includes with "../" info which will work both at home and n the live server
"Chad Richardson" <chad@NIXSPAM_c hadrichardson.c om> wrote in message news:11******** *****@corp.supe rnews.com... As I'm writing this I think I am answering my own question, but I'd like to get any other ideas on the subject as well.
I have a standard Header.asp that I want to include in every other page in my site. Header.asp is located in the root folder, but the calling pages are in various folders/levels. Since the relative paths specified in header are subject to change and are based on the relative path of the calling page, problems arise. (Strangley, using the IFRAME method of including a header doesn't react the same way.)
The solution I believe lies in using absolute paths in the Header.asp file using the "virtual" include qualifier. But this assumes your development directory structure is the same as your production environment. So I guess that is the answer. Use absolute paths and set up your development directory structure to be identical to your production.
Any other thoughts/best practices?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: juglesh |
last post by:
at one centraldomain.com, I have central.php, which consists of this:
<?php
function square($num)
{ return $num * $num;
}
?>
at outerdomain.com, I have test.php, which consists of this:
<?php
include "http://www.centraldomain.com/central.php";
|
by: mark |
last post by:
I am designing a website at the moment and looking at the difference
between relative and absolute url links which is driving me crazy! I
would like to use relative paths, but it is proving very restrictive as
to how I design the file structure when it comes to including files. I
currently have something like below:
folder1
folder2
images
---image1.gif
|
by: Brian van den Broek |
last post by:
Hi all,
I'm just starting to employ unit testing (I'm using doctest), and I am
uncertain how to handle writing tests where the behaviour being tested
is dependant on whether certain file paths point to actual files.
I have a class which takes, in its __init__, a list of file paths to
process. The class has a method to validate that the paths passed in
are appropriate ones for the class. One portion of the validation code
ensures that...
|
by: Travis Pupkin |
last post by:
Hi,
Just curious: is there a bit of ASP code you can place in the top of a
document that will force all root relative image and file paths in the
HTML of this doc to expand to include the full URL?
I doubt it, but before I did it manually, I thought I'd ask. We use a
template of sorts, but need one document to use the full URL, and it
would better to just have it that way in the one document and not the
entire template.
|
by: wylbur37 |
last post by:
(This is a re-post of something that apparently did not post correctly
the first time, so if there's more than one copy, please ignore the
duplicate).
I normally use Mozilla 1.4 on Windows XP Pro.
As I was developing some test webpages, I discovered that the SRC
parameter doesn't seem to work when a path is used with the filename.
In one example, when I want to run a JavaScript from an external file
(i.e., not inline), I would do the...
| |
by: anil.rita |
last post by:
When the user chooses an AV file to play, based upon the type of file,
I want to use the default installed media player to play it.
I am wondering if this is a good way - any alternatives, suggestions or
improvements?
if( wmv file)
document.write("<OBJECT id=Player
classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="354"
width="479">
|
by: Daz |
last post by:
Hi everyone.
I am a little stumped at why when I try to include a file in same
directory as the script being processed, it looks in the same directory
as the script that included it to begin with. Is there any way I can
get around this? Is there anyway to get the name and/or of the script
being processed, rather than the name and/or path of the script that
was first called?
Many thanks.
|
by: Jon Slaughter |
last post by:
Can I modify code that I have included using
<?php
include("../Index.php");
?>
The Index.php file contains links that need to be modified to work.
Index.php is basically an html file uses a linked css file and when its
included in the new file its referencing a css file in the wrong spot. I
need to add "../" to the css file reference in Index.php to make it work.
|
by: kimiraikkonen |
last post by:
Hi,
I have an app which has a listbox and when i double click an
associated fileS, i want their paths to be added into listbox in my
application.
This code works good when i try to open a "single" file with my app
which works to get commandline arguments to get file paths:
Dim cla As String() = Environment.GetCommandLineArgs()
If cla.Length 1 Then
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |