targeting an ASP include  | |
March 3rd, 2007, 09:20 AM
|
#1 (permalink)
| | Mobile Member
Join Date: Apr 2005 Location: S. Central PA
Posts: 3,601
|
I am currently running a site where i have iframes calling certain cells (yes table cells merged together) They are calling .html files from a subdirectory and they are working alright with Iframes, since i want them to load in specific places not within the document they are called i have been using the name and target properties alot. But i have found the iframes to be troubling when going between browsers... some have told me to use SSI's, im not sure exactly how to do it, either with VB, PHP (i know how to include a file) or ASP, etc..
If i use ASP scripting, if i can, not sure, im pretty sure its one or the other with my hosting company (GoDaddy)and since I am using a PHP photo gallery they have me on a linux server. But if I wanted to do alot of ASP stuff i think, but im not sure, that i have to be on one of their Windows boxes, but they windows servers dont run PHP.
How would I link a file in a specific cell they way that i am doing it with iframes, and also be able to assign it a name and then when i call it assign it a target?
Here is how i've got my code set up now: Code: <tr><td height="165" colspan="6" bgcolor="#000000">
<iframe src="includes\title_top.html" name="topbar" frameborder="0" height="100%" width="100%" scrolling="no" align="left">
</iframe></td></tr>
<tr>
<td width="18%" align="left" valign="top" bgcolor="D4D4D4"><p align="center"><strong>pretty title</strong></p>
</td>
<td colspan="5" rowspan="2">
<p>
<iframe src="includes\main.html" name="main" frameborder="0" scrolling="no" width="100%"></iframe>
</p>
NOW HERE IS HOW I CALL THEM FROM ANOTHER IFRAME TO THAT MAIN IFRAME YOU SEE RIGHT ABOVE:
<li class="style5"><a href="..\weather\weather.html" target="main" >Weather Stuff</a></li>
<li class="style5"><a href="..\club\clubinfo.html" target="main">Information</a></li>
__________________ Thinkpad T61 14.1" wide | WinXP Pro | C2D T8300 CPU | 3GB DDR2 | 160GB HDD | AGN & WWAN
Lenovo S10 10.2" LED display | 1.6Ghz Atom CPU | 1GB DDR2 | 1.3mp webcam | B/G WiFi | 160GB HDD |
| |
March 3rd, 2007, 09:39 PM
|
#2 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
|
i'm not completely familiar with iframes. you got a link to a site so i can see what you're doing now and maybe I can help you with it? |
| |
March 5th, 2007, 11:17 AM
|
#3 (permalink)
| | Banned
Join Date: Jan 2004 Location: Earth
Posts: 420
| Virtual Paths Please Quote:
Originally Posted by ShuckyD How would I link a file in a specific cell they way that i am doing it with iframes, and also be able to assign it a name and then when i call it assign it a target? | For one you shouldn't use physical paths such as: includes\title_top.html
You need to use virtual paths from your root directory such as: /includes/title_top.html
If you do not have virtual paths then you need to create a virtual directory so you will have a virtual path. Usually folders off the root automatically inherit a virtual path by default without the need of a virtual directory. If you are unsure use the full URI path to the file such as: http://www.mywebsite.com/includes/title_top.html
Also I would use the id property of the iframe tag with the name property. The name property has been phased out with some browsers.
An example below: |
| |
March 10th, 2007, 12:03 PM
|
#4 (permalink)
| | Mobile Member
Join Date: Apr 2005 Location: S. Central PA
Posts: 3,601
|
alright well its been a short stint where i wasnt able to do much with this, but i did take into consideration virtual paths and i am now using the id property rather than the name property.
Still having a problem though trying to get the pages from the navbar to load in the correct window when not using name. It ends up targeting its own cell or else opening a new window, depending on how i have it written, like the example from above it doesnt work like that (probably because the iframe 'id' resides on another page) 
Last edited by ShuckyD : March 10th, 2007 at 12:08 PM.
|
| |
March 10th, 2007, 07:39 PM
|
#5 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
|
you should use both name and id...that way it works in old and new browsers  |
| |
March 10th, 2007, 10:28 PM
|
#6 (permalink)
| | Mobile Member
Join Date: Apr 2005 Location: S. Central PA
Posts: 3,601
|
alrighty then  will give that a shot, hope to get enough on this site so i can upload it soon and people will stop breathing down my back  |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |