Email conversation
From | Daniel Gustafsson |
To | Me |
Subject | I have a question |
Date | 3 November 2003 21:11 |
Hi!
I've been looking on the web for the solution to a problem I have. I
thought I'd ask you. I saw that you have used a table to make your
website and I'm wondering if you could tell me if I can link from inside a
table, and the linked page will be shown in another cell, automatically?
Thanks in forhand!
Sincerely,
Daniel Gustafsson
From | Me |
To | Daniel Gustafsson |
Subject | Re: I have a question |
Date | 5 November 2003 18:43 |
Sorry Daniel, I didn't see this email or I would have replied sooner.
I don't actually use tables very much anymore, CSS is far more flexible,
but ...
Yes, it is possible to show the contents of one page inside the cell of a
table, and it does not even require script:
<table>
<tr>
<td>
<a href="somePage.html" target="myIframe">link text</a>
</td>
<td>
<iframe name="myIframe" src="blank.html" height="100"
width="100" border="0" frameborder="0"></iframe>
</td>
</tr>
</table>
The iframe element embeds a frame inside another page. You will need to
initially specify a blank page for its contents. It is not supported by
Netscape 4, but as almost no-one uses that now, who cares ... ?
OK, if you want it to work in Netscape 4 as well you can do this:
<iframe name="myIframe" src="blank.html" height="100"
width="100" border="0" frameborder="0">
<ilayer src="blank.html" height="100" width="100" id="myIlayer">
</ilayer></iframe>
...
<a href="somePage.html" target="myIframe" onclick="
if(document.layers){
document.myIlayer.load(this.href);
return false;
}
">link text</a>
This may cause problems later with parts of the embedded page, so I
recommend that you just ignore Netscape 4 and go for the clean (first)
solution.
Hope this helps. If not, feel free to contact me again and I will see what
I can do.
Tarquin - author of http://www.howtocreate.co.uk/
From | Daniel Gustafsson |
To | Me |
Subject | SV: I have a question |
Date | 5 November 2003 21:53 |
Thank you very much. I'm going to try it right away.
Very thankfull,
Daniel Gustafsson
From | Daniel Gustafsson |
To | Me |
Subject | |
Date | 15 December 2003 21:52 |
Hi!
I was just wondering if you could help me with one thing. I'm wondering
if you can make a local guestbook? If, then how? Thanks!
Wondering,
Daniel Gustafsson
From | Me |
To | Daniel Gustafsson |
Subject | Re: JavaScript guestbook |
Date | 16 December 2003 08:30 |
Daniel,
You should always include an email subject. The only reason I did not
delete your email is because I recognised your name!
Guestbooks require some way to store the guestbook entries, so you will
need server-side programming support (PHP, Perl, ASP, ESP, JSP, SSI/SHTML)
and a database (SQL, Access). They are very easy to program, but you need
to be careful to make sure that no-one enters dangerous entries, such as
'<script ...>' etc. Guestbooks cannot be written using just
JavaScript.
You will find that there are many free guestbook programs on the internet
(most are written for PHP+MySQL), so you might want to download one of
those if you have server-side programming support and a database.
Tarquin