<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>tag:www.local-guru.net,2005:/blog/tag/jquery</id>
  <link type="text/html" href="http://www.local-guru.net" rel="alternate"/>
  <link type="application/atom+xml" href="http://www.local-guru.net/blog/tag/jquery.atom" rel="self"/>
  <title>GuruBlog : Articles about jquery</title>
  <subtitle>local-guru.net</subtitle>
  <updated>2011-07-08T07:30:35+02:00</updated>
  <generator>GuruBlog engine</generator>
  <entry>
    <id>tag:www.local-guru.net,2005:Article/449</id>
    <published>2011-07-08T07:30:35+02:00</published>
    <updated>2011-07-08T07:30:35+02:00</updated>
    <link type="text/html" href="http://www.local-guru.net//blog/2011/7/8/lightbox-effekt-for-processing-sketches" rel="alternate"/>
    <author>
      <name>Nikolaus Gradwohl</name>
    </author>
    <title type="html">Lightbox-Effekt for Processing-Sketches</title>
    <category term="processing" scheme="http://www.local-guru.net/blog/tag/processing"/>
    <category term="javascript" scheme="http://www.local-guru.net/blog/tag/javascript"/>
    <category term="jquery" scheme="http://www.local-guru.net/blog/tag/jquery"/>
    <content type="html">&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;
</content>
  </entry>
  <entry>
    <id>tag:www.local-guru.net,2005:Article/321</id>
    <published>2010-10-29T03:20:00+02:00</published>
    <updated>2010-10-29T03:20:00+02:00</updated>
    <link type="text/html" href="http://www.local-guru.net//blog/2010/10/29/table-column-highlighting-with-jquery" rel="alternate"/>
    <author>
      <name>Nikolaus Gradwohl</name>
    </author>
    <title type="html">Table column highlighting with jquery</title>
    <category term="javascript" scheme="http://www.local-guru.net/blog/tag/javascript"/>
    <category term="jquery" scheme="http://www.local-guru.net/blog/tag/jquery"/>
    <content type="html">&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;
</content>
  </entry>
  <entry>
    <id>tag:www.local-guru.net,2005:Article/229</id>
    <published>2010-01-24T16:44:00+01:00</published>
    <updated>2010-01-24T16:44:00+01:00</updated>
    <link type="text/html" href="http://www.local-guru.net//blog/2010/1/24/calling-webservices-from-mootools-jquery-or-dojo" rel="alternate"/>
    <author>
      <name>Nikolaus Gradwohl</name>
    </author>
    <title type="html">calling webservices from mootools, jquery or dojo</title>
    <category term="javascript" scheme="http://www.local-guru.net/blog/tag/javascript"/>
    <category term="webservice" scheme="http://www.local-guru.net/blog/tag/webservice"/>
    <category term="xml" scheme="http://www.local-guru.net/blog/tag/xml"/>
    <category term="mootools" scheme="http://www.local-guru.net/blog/tag/mootools"/>
    <category term="jquery" scheme="http://www.local-guru.net/blog/tag/jquery"/>
    <category term="dojo" scheme="http://www.local-guru.net/blog/tag/dojo"/>
    <content type="html">&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;
</content>
  </entry>
</feed>

