home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

targeting an ASP include

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1476
Discussions: 200,988, Posts: 2,379,857, Members: 246,352
Old March 3rd, 2007, 09:20 AM   Digg it!   #1 (permalink)
Mobile Member
 
ShuckyD's Avatar
 
Join Date: Apr 2005
Location: S. Central PA
Posts: 3,601
targeting an ASP include

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
ShuckyD is offline   Reply With Quote
Old March 3rd, 2007, 09:39 PM     #2 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
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?
sr71000 is offline   Reply With Quote
Old March 5th, 2007, 11:17 AM     #3 (permalink)
Banned
 
Iturea's Avatar
 
Join Date: Jan 2004
Location: Earth
Posts: 420
Smile
Virtual Paths Please

Quote:
Originally Posted by ShuckyD View Post
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:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>
      IFrame
    </title>
  </head>
  <body>  
    <table cellpadding="0" cellspacing="0" summary="IFrame" border="0">
      <tbody>
        <tr>
          <td>
            <iframe id="myiframe" src="http://www.google.com" frameborder="0" height="250" width="400" name="myiframe"></iframe>
          </td>
        </tr>
      </tbody>
    </table>
    <p>
      <a href="http://www.msn.com" target="myiframe">Change MyIFrame</a>
    </p>
  </body>
</html>
Iturea is offline   Reply With Quote
Old March 10th, 2007, 12:03 PM     #4 (permalink)
Mobile Member
 
ShuckyD's Avatar
 
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.
ShuckyD is offline   Reply With Quote
Old March 10th, 2007, 07:39 PM     #5 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
you should use both name and id...that way it works in old and new browsers
sr71000 is offline   Reply With Quote
Old March 10th, 2007, 10:28 PM     #6 (permalink)
Mobile Member
 
ShuckyD's Avatar
 
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
ShuckyD is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making the switch from ASP to ASP.NET omalleytrading Webmastering and Programming 6 October 15th, 2008 03:12 PM
ASP Question...referencing the same ASP page Tekk Webmastering and Programming 2 April 18th, 2004 04:05 PM
INCLUDE FILE ??? EvilRick Webmastering and Programming 7 April 30th, 2003 12:25 AM
File include with html? PyroSama Webmastering and Programming 5 February 28th, 2003 09:14 PM
PHP include in HTML, help? Whir Webmastering and Programming 7 October 7th, 2002 06:07 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3063)
Charges against non-tippers dropped.. (20)
Health Care Rationing (11)
Delete an OS (17)
Nvidia GTX 260 problem (9)
Laptop with wireless problem. (12)
windows vista security holes (19)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (7)
windows 7 problem (7)
Internet Lost (5)
[F@H SPAM 11/16/09] ! 1/2 months to.. (39)
Recent Discussions
Point and Shoot Camera Suggestions. (8)
Looking for new motherboard (0)
How to convert Mod/Tod video to AVI/M.. (0)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (39)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
Desktop Calendar Application (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Nvidia GTX 260 problem (9)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)
Is the PSU I received dead? (15)
Can't open Word (12)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Linksys WMP54GS wireless card problem.. (5)


All times are GMT -4. The time now is 04:59 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28