<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Frank Seitz - Developer Logbuch - JavaScript</title>
    <link>http://fseitz.de/blog/</link>
    <description>Notizen aus der Welt der Web-, Datenbank- und Unix-Programmierung</description>
    <dc:language>de</dc:language>
    <generator>Serendipity 1.5.1 - http://www.s9y.org/</generator>
    <pubDate>Wed, 21 Mar 2012 12:46:24 GMT</pubDate>

    <image>
        <url>http://fseitz.de/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Frank Seitz - Developer Logbuch - JavaScript - Notizen aus der Welt der Web-, Datenbank- und Unix-Programmierung</title>
        <link>http://fseitz.de/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Cookies per JavaScript setzen</title>
    <link>http://fseitz.de/blog/index.php?/archives/45-Cookies-per-JavaScript-setzen.html</link>
            <category>JavaScript</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/45-Cookies-per-JavaScript-setzen.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=45</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=45</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;h1 class=&quot;sdoc-sec-h1&quot;&gt;Serverseitig via HTML&lt;/h1&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Wenn serverseitig kein Zugriff auf die Header der HTTP-Antwort besteht, kann
  ein Cookie auch per HTML gesetzt werden:
&lt;/p&gt;
&lt;table class=&quot;sdoc-code-table&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 1&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;script&lt;/span&gt; &lt;span class=&quot;hl kwb&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;hl str&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 2&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;document.cookie = &lt;span class=&quot;hl str&quot;&gt;&amp;quot;KEY=VALUE&amp;quot;&lt;/span&gt;;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 3&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;h1 class=&quot;sdoc-sec-h1&quot;&gt;Zustand eines Select-Menü (per CGI.pm generiert) sichern&lt;/h1&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Ein onchange-Handler setzt einen Cookie, der den Zustand eines
  Select-Menü anwendungsglobal speichert (Perl/CGI.pm):
&lt;/p&gt;
&lt;table class=&quot;sdoc-code-table&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 1&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;pt-k&quot;&gt;my&lt;/span&gt; &lt;span class=&quot;pt-i&quot;&gt;$n&lt;/span&gt; = &lt;span class=&quot;pt-i&quot;&gt;$cgi&lt;/span&gt;&lt;span class=&quot;pt-i&quot;&gt;-&amp;gt;cookie&lt;/span&gt;&lt;span class=&quot;pt-s&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pt-q&quot;&gt;&amp;#39;n&amp;#39;&lt;/span&gt;&lt;span class=&quot;pt-s&quot;&gt;)&lt;/span&gt; || &lt;span class=&quot;pt-n&quot;&gt;25&lt;/span&gt;&lt;span class=&quot;pt-sc&quot;&gt;;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 2&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;pt-k&quot;&gt;my&lt;/span&gt; &lt;span class=&quot;pt-i&quot;&gt;$nSelect&lt;/span&gt; = &lt;span class=&quot;pt-i&quot;&gt;$cgi&lt;/span&gt;&lt;span class=&quot;pt-i&quot;&gt;-&amp;gt;popup_menu&lt;/span&gt;&lt;span class=&quot;pt-s&quot;&gt;(&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 3&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    -&lt;span class=&quot;pt-w&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pt-cm&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pt-q&quot;&gt;&amp;#39;n&amp;#39;&lt;/span&gt;&lt;span class=&quot;pt-cm&quot;&gt;,&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 4&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    -&lt;span class=&quot;pt-w&quot;&gt;values&lt;/span&gt;&lt;span class=&quot;pt-cm&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pt-s&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;pt-q&quot;&gt;qw/1 2 5 10 15 20 25 30 40 50 75 100/&lt;/span&gt;&lt;span class=&quot;pt-s&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pt-cm&quot;&gt;,&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 5&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    -&lt;span class=&quot;pt-w&quot;&gt;default&lt;/span&gt;&lt;span class=&quot;pt-cm&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pt-i&quot;&gt;$n&lt;/span&gt;&lt;span class=&quot;pt-cm&quot;&gt;,&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 6&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    -&lt;span class=&quot;pt-w&quot;&gt;onChange&lt;/span&gt;&lt;span class=&quot;pt-cm&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pt-q&quot;&gt;&amp;#39;document.cookie = &amp;#39;&lt;/span&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 7&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;        &lt;span class=&quot;pt-q&quot;&gt;&amp;#39;&amp;quot;n=&amp;quot;+this.options[this.selectedIndex].value&amp;#39;&lt;/span&gt;&lt;span class=&quot;pt-cm&quot;&gt;,&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 8&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;pt-s&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pt-sc&quot;&gt;;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; 
    </content:encoded>

    <pubDate>Thu, 28 Oct 2010 19:28:46 +0200</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/45-guid.html</guid>
    
</item>
<item>
    <title>Javascript: HTML-Formular abbrechen</title>
    <link>http://fseitz.de/blog/index.php?/archives/43-Javascript-HTML-Formular-abbrechen.html</link>
            <category>JavaScript</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/43-Javascript-HTML-Formular-abbrechen.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=43</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=43</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
  Ein HTML-Formular soll mittels Abbruch-Button beendet werden. Der
  Button schickt die Formulardaten nicht ab, sondern verzweigt auf
  irgendeine Seite &lt;i class=&quot;sdoc-seg-i&quot;&gt;URL&lt;/i&gt;, z.B. die Seite, von der aus das Formular
  aufgerufen wurde.
&lt;/p&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Implementierung:
&lt;/p&gt;
&lt;div class=&quot;sdoc-code-div&quot;&gt;
  &lt;pre class=&quot;sdoc-code-pre&quot;&gt;&amp;lt;input type=&quot;button&quot; value=&quot;Abbrechen&quot; onclick=&quot;location.href = &#039;URL&#039;&quot;&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;ol class=&quot;sdoc-list-ol&quot;&gt;
  &lt;li class=&quot;sdoc-list-li-num&quot;&gt;
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
      Der Button ist ein einfacher Button (&lt;tt class=&quot;sdoc-seg-c&quot;&gt;type=&quot;button&quot;&lt;/tt&gt;),
      kein Submit-Button, d.h. eine Formularaction wird durch
      den Button nicht ausgelöst.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li class=&quot;sdoc-list-li-num&quot;&gt;
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
      Die Folgeseite wird durch Zuweisung an das href-Attribut des
      location-Objekts geladen.
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt; 
    </content:encoded>

    <pubDate>Thu, 28 Oct 2010 14:53:57 +0200</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/43-guid.html</guid>
    
</item>

</channel>
</rss>