relative paths for iframes

3,439 views
Skip to first unread message

Dave Parker

unread,
Nov 30, 2007, 7:57:45 PM11/30/07
to TiddlyWiki
Good Evening,

I have this that works fine:
<html>

<iframe src="file:file://C:\Users\Owner\Documents\Clinic Website file
\CCNewsletterTW\Newsletter 2007 NovemberB.htm"
style="background:#fff;width:170%;height:400px">
</iframe>
</html>

but I want it to work with a relative path so I can use it on my
website server
I've tried"../" and "%CD%" but they don't seem to work (or maybe I'm
just doing it wrong)

Anyone have any ideas?

Dave Parker

FND

unread,
Dec 1, 2007, 3:32:01 AM12/1/07
to Tiddl...@googlegroups.com
> I want it to work with a relative path

Relative paths work just fine for me.
Might be the a malformed path; in your example, you have
file:file://C:\Users\...
but it should be
file:///C:/Users/...
(The backslashes are probably not an issue, but the double "file:"
protocol at the beginning most likely is.)

For relative paths, you need to leave out the protocol:
src="../foo.html"
This selects "foo.html" from the respective parent folder.

I've created a very brief overview here:
http://www.tiddlywiki.org/wiki/Relative_Paths
Feel free to add whatever you think might be relevant there.

HTH.


-- F.

Dave Parker

unread,
Dec 1, 2007, 1:10:08 PM12/1/07
to TiddlyWiki
Thank you FND...


> Might be the a malformed path; in your example, you have
> file:file://C:\Users\...
> but it should be
> file:///C:/Users/...

That was probably left over from a whack load of cutting and pasting I
was doing to try to get it to work

>
> For relative paths, you need to leave out the protocol:
> src="../foo.html"
> This selects "foo.html" from the respective parent folder.


That worked, i.e. I deleted everything in the quotes before the file
name itself (I don't know why I didn't think of that myself - I guess
I just assumed it couldn't be that simple)

Here's the fruit of your help: http://cedar-chiropractic.com/#Newsletters
(Just click on one of the date links to get the newsletter)


That does, however bring up another (non-TW) question:

Does anyone know a way to upload multiple files to an ftp server (I
think that's what its called) - I use Telus and they seem to only
allow one file at a time, and as you see on the link above, none of
the pictures are there because each newsletter has multiple image
files associated with it (and I haven't uploaded them all yet). I did
a search last night for +"upload multiple files" +ftp+ telus and
didn't find anything useful

Thanks again,
Dave Parker

FND

unread,
Dec 1, 2007, 1:15:12 PM12/1/07
to Tiddl...@googlegroups.com
> Does anyone know a way to upload multiple files to an ftp server

Well, that shouldn't be a problem; pretty much every FTP client (and
server) I know can do this without a problem - though it is possible
that Telus (whatever they are) has imposed some restriction.

Try using Internet Explorer's built-in FTP client; enter the FTP address
(e.g. "ftp://foo.bar") into the address/location bar, and a login dialog
will pop up.
After entering your username and password, you should be able to use the
FTP server almost like any other folder on your hard drive - e.g. you
can drag & drop files there.

HTH.


-- F.

Dave Parker

unread,
Dec 1, 2007, 3:59:02 PM12/1/07
to TiddlyWiki
great!, thanks - I'll try that
Reply all
Reply to author
Forward
0 new messages