View previous topic :: View next topic |
Author |
Message |
danmc -
Joined: 23 Jan 2010 Posts: 3 Location: Cleveland, Ohio
|
Posted: Sat Jan 23, 2010 5:38 pm Post subject: Local files in iframes |
|
|
I have iframes (linked to local files) within divs on my site that are coming up blank on the server. The only thing I can think of is that the files need to be in a different location on the server. If so, where do I park them? Or do I need to use server side includes (which I'm not sure how to implement)?
Here is the code to one of my pages:
Code: |
<div id="content3" style="position:absolute; left:0px; top:109px; width:95%; height:288px; z-index:4; visibility: visible">
<table width="95%" border="0" cellspacing="0" cellpadding="30" height="288" align="center" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#FFFFFF" width="75%"><font color="#000000"><iframe src="file:///G:\Documents and Settings\Daniel McCord\My Documents\project_six\assets\MapAndMeetings.html"
width="100%"
align="left" height="66%" scrolling="auto" frameborder="1"
allowtransparency style="border:none;"></iframe> <img src="assets/nn_table_fix.gif" width="20" height="300">
</font></td>
<td bgcolor="E9E9C5" width="25%" align="center">
<p><img src="assets/FinalFlatsSky.jpg" width="182" height="132"></p>
<h1><b><i><font face="Times New Roman, Times, serif" size="5" color="#000000">Cleveland</font></i></b></h1>
<h1><b><i><font face="Times New Roman, Times, serif" size="5" color="#000000">Northeast
Ohio</font></i></b></h1>
<h1><b><i><font face="Times New Roman, Times, serif" size="5" color="#000000">Chapter</font></i></b></h1>
<h1> </h1>
<p><img src="assets/nn_table_fix.gif" width="20" height="400"></p
>
</td>
</tr>
</table>
</div>
|
Thanks From A Newbie |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sat Jan 23, 2010 5:50 pm Post subject: |
|
|
Welcome to the forum, Danmc!
The SRC attribute located in the IFRAME tag is pointing to a local path. You need to use relative paths within the document root of your website, which is usually in the htdocs folder, if you haven't changed it. Anyway, use relative paths.
Example:
file:///G:\Documents and Settings\Daniel McCord\My Documents\project_six\assets\MapAndMeetings.html,
would become (assuming the document for the code posted is in the main folder): assets/MapAndMeetings.html
NOTE: Be sure to use forward slashes for the relative paths.
Sincerely, Joshua H. (TRUSTAbyss) |
|
Back to top |
|
|
danmc -
Joined: 23 Jan 2010 Posts: 3 Location: Cleveland, Ohio
|
Posted: Wed Jan 27, 2010 11:34 pm Post subject: |
|
|
Thanks Joshua! It worked great and I'm letting the people I made the website for look at it from my computer for some feedback. When it goes online I'll post it.
Thanks
Dan |
|
Back to top |
|
|
|