<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>GuruBlog : Articles about jquery</title>
    <description>local-guru.net</description>
    <link>http://www.local-guru.net/blog</link>
    <ttl>40</ttl>
    <item>
      <title>Lightbox-Effekt for Processing-Sketches</title>
      <link>http://www.local-guru.net//blog/2011/7/8/lightbox-effekt-for-processing-sketches</link>
      <description>&lt;p&gt;In my &lt;a href="http://www.local-guru.net/blog/pages/processing-sketches"&gt;Processing Sketch gallery&lt;/a&gt; I wanted to run processing sketches inline using a lightbox effekt.
With the help of &lt;a href="http://jquery.org"&gt;jquery&lt;/a&gt; and some ajax-blackmagic I generated a script that loads the &lt;em&gt;index.html&lt;/em&gt; of the
processing export and runs the applet in a lightbox.&lt;/p&gt;

&lt;p&gt;If javascript is enabled the original index.html is opened.&lt;/p&gt;

&lt;p&gt;to integrate it in a page simply include jquery, the &lt;a href="http://www.local-guru.net/projects/p5lightbox/processing.js"&gt;processing.js&lt;/a&gt; script and &lt;a href="http://www.local-guru.net/projects/p5lightbox/processing.css"&gt;processing.css&lt;/a&gt; in
a html page. The script also need the deployJava.js from java.com that is also used in the &lt;em&gt;index.html&lt;/em&gt; files
of an processing applet-export.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;script type="text/javascript" src="http://www.java.com/js/deployJava.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type="text/javascript" src="jquery.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type="text/javascript" src="processing.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;link rel="stylesheet" type="text/css" href="processing.css"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then simply link the processing sketch and mark the link with &lt;code&gt;class="processing"&lt;/code&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;a class="processing" href="http://yourserver/processing/sketchfolder/"&amp;gt;My processing sketch&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To see it running click on this
&lt;a class="processing" href="http://www.local-guru.net/processing/plopp/"&gt;Example Link&lt;/a&gt;&lt;/p&gt;
</description>
      <pubDate>2011-07-08T07:30:35+02:00</pubDate>
    </item>
    <item>
      <title>Table column highlighting with jquery</title>
      <link>http://www.local-guru.net//blog/2010/10/29/table-column-highlighting-with-jquery</link>
      <description>&lt;p&gt;in one of my recent projects i needed to highlight a table row and column of a
html table on mouseover.&lt;/p&gt;

&lt;p&gt;i found out that it's quite simple to do in jquery - even without a plugin.&lt;/p&gt;

&lt;p&gt;first you have to find out in which column your mouse pointer currently is.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var idx = $(this).parent().children('td,th').index( $(this))+1;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and then you mark all the td's and th's in the table with the same column index&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$('td:nth-child('+idx+')').addClass( 'hover' );
$('th:nth-child('+idx+')').addClass( 'hover' );
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href="http://www.local-guru.net/projects/colhl.zip"&gt;click here&lt;/a&gt; to download a simple example project.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://www.local-guru.net/img/guru/table_sc.png" alt="column and row heighlighting" /&gt;&lt;/p&gt;
</description>
      <pubDate>2010-10-29T03:20:00+02:00</pubDate>
    </item>
    <item>
      <title>calling webservices from mootools, jquery or dojo</title>
      <link>http://www.local-guru.net//blog/2010/1/24/calling-webservices-from-mootools-jquery-or-dojo</link>
      <description>&lt;p&gt;I wrote a small webservie using java6 and jax-ws. Then i wrote clients for the webservice
using some some popular javascript frameworks. I used &lt;a href="http://mootools.net/"&gt;mootools&lt;/a&gt;,
&lt;a href="http://jquery.com/"&gt;jquery&lt;/a&gt; and &lt;a href="http://dojotoolkit.org/"&gt;dojo&lt;/a&gt; for writing the clients.&lt;/p&gt;

&lt;p&gt;I tried to use the same simple form for all the three clients to make them comparable. I also used no
libraries besides the core framework classes.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.local-guru.net/projects/webservice.zip"&gt;click here&lt;/a&gt; to download the sourcecode of the clients and the java-service&lt;/p&gt;
</description>
      <pubDate>2010-01-24T16:44:00+01:00</pubDate>
    </item>
  </channel>
</rss>

