|
Posted by Toby Inkster on 09/25/05 19:27
Dung Ping wrote:
> Toby Inkster wrote:
>
>> <iframe id="myelement"
>> src="data:Blah%20%3Cb%3Eblah%3C%2Fb%3E"></iframe>
>
> In above line, is the word 'data' mandatory? What does the
> Blah%20%3Cb%3Eblah%3C%2Fb%3E stand for? I know the the percentage
> symbol plus a number stands for something, but don't remeber what.
IFRAME needs a SRC attribute to tell it where to get its contents.
Normally the source attribute will be "http://...something...", but could
also be "ftp://...something..." or "gopher://...something...". Basically
these are different URL-schemes, which indicate to the browser it should
recieve the file in different ways: using Hyper-Text Transfer Protocol,
using File Transfer Protocol, using Gopher, etc.
In this example, I've chosen to use "data:...something...". This tells the
browser it should retrieve the file by continuting to read the URL.
In this case, it will read:
Blah <b>blah</b>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|