Hello Ian,<br><br>One use case, from my point-of-view, was to allow for non-networked form submits<br><br>For example, if you had a computer or device that did NOT have a network connection, and you did not have (and did not want to have or cannot have) a local&nbsp; HTTP server running.&nbsp; Then you could use such a data URL to make things happen.
<br><br>Also, with the use of data URL's for &lt;img&gt;'s, for &lt;object&gt;'s, and for &lt;form&gt;'s, you could have an entire HTML-based application contained in exactly one file.&nbsp; <br><br>Which is again useful in situations where you do NOT have network access.
<br><br>Also, it is useful to have the entire HTML-based application contained in &quot;one file&quot; when you want to put it into some other XML document.&nbsp; (Like in RSS, Atom, or XMPP/Jabber.)<br><br><br>What really motivated me to think about it is that is that I was writing a blog post about how to create HTML e-mail signatures with hCards built into them.
<br><br>I wanted to include a form to help them do this.&nbsp; The reader would fill in their name, e-mail address, etc, and it would generate HTML code they could use for their HTML e-mail signature.<br><br>However, I didn't want the form to make a request back to my server.&nbsp; (Because people could be reading this in their feed reader were they have the blog post cached from my feed.)&nbsp; I wanted it to be entirely self contained within the blog post.
<br><br>So, as you mentioned, one solution is JavaScript.&nbsp; However, JavaScript has a couple problem.&nbsp; #1: It complex.&nbsp; (Yes... I'm lazy :-)&nbsp; )&nbsp; #2: Not all blog readers will allow the execution of JavaScript.<br><br>Also,... another reason against making a call on my server....&nbsp; The blogging software I wrote works by having each blog post be a file.&nbsp; Each file is an Atom document.&nbsp; Not an Atom &lt;feed&gt; though.&nbsp; But an Atom &lt;entry&gt;.&nbsp; (And yes, it is legal to have an Atom &lt;entry&gt; as the root element.)
<br><br>So having everything in one file is easier and simpler for me.&nbsp; (And again, yes, I'm lazy, and like things easy.)&nbsp; Preferably, I'd like to do &lt;form&gt;'s, &lt;img&gt;'s, and &lt;object&gt;'s with data URL's.<br>
<br><br>See ya<br><br><div><span class="gmail_quote">On 8/24/06, <b class="gmail_sendername">Ian Hickson</b> &lt;<a href="mailto:ian@hixie.ch">ian@hixie.ch</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 26 Jul 2006, Charles Iliya Krempeaux wrote:<br>&gt;<br>&gt; &lt;form method=&quot;POST&quot; action=&quot;### DATA URL HERE ###&quot;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;text&quot; name=&quot;given_name&quot; /&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;text&quot; name=&quot;family_name&quot; /&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type=&quot;submit&quot; value=&quot;generate letter&quot; /&gt;<br>&gt; &lt;/form&gt;<br>&gt;<br>&gt; How would you get the value of &quot;given_name&quot; and &quot;family_name&quot; into the
<br>&gt; data URL?<br><br>You can't, unless you use JavaScript, I think.<br><br><br>&gt; What I want is something like...<br>&gt;<br>&gt; &lt;form method=&quot;POST&quot; action=&quot;data:,To whom it may concern.&nbsp;&nbsp;My give name is
<br>&gt; '%%{given_name}' and my family name is '%%{family_name}'.&nbsp;&nbsp;Sincerely,<br>&gt; %%{given_name} %%{family_name}&quot;&gt;<br><br>Interesting. What's the actual use case? I hadn't really envisaged data:<br>being used for anything but debugging.
<br><br>--<br>Ian Hickson&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U+1047E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)\._.,--....,'``.&nbsp;&nbsp;&nbsp;&nbsp;fL<br><a href="http://ln.hixie.ch/">http://ln.hixie.ch/</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U+263A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/,&nbsp;&nbsp; _.. \&nbsp;&nbsp; _\&nbsp;&nbsp;;`._ ,.<br>Things that are impossible just take longer.&nbsp;&nbsp; `._.-(,_..'--(,_..'`-.;.'
<br></blockquote></div><br><br clear="all"><br><span style="font-family: courier new,monospace;">-- </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;Charles Iliya Krempeaux, 
B.Sc.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;charles @ <a href="http://reptile.ca">reptile.ca</a></span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;supercanadian @ <a href="http://gmail.com">gmail.com</a></span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;developer weblog: <a href="http://ChangeLog.ca/">http://ChangeLog.ca/</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
___________________________________________________________________________</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;Make Television&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://maketelevision.com/">http://maketelevision.com/</a></span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">