<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JavaScript | Jörg Drzycimski</title>
	<atom:link href="https://drzycimski.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://drzycimski.com/tag/javascript/</link>
	<description></description>
	<lastBuildDate>Sun, 01 Oct 2017 16:54:15 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Top 4 jQuery slideshow and gallery plugins</title>
		<link>https://drzycimski.com/programmierung/jquery-slide-show-and-gallery-plugins/</link>
					<comments>https://drzycimski.com/programmierung/jquery-slide-show-and-gallery-plugins/#respond</comments>
		
		<dc:creator><![CDATA[Jörg]]></dc:creator>
		<pubDate>Mon, 07 Mar 2011 14:52:48 +0000</pubDate>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery plugin]]></category>
		<category><![CDATA[slide show]]></category>
		<category><![CDATA[transitions]]></category>
		<guid isPermaLink="false">http://www.drzycimski.com/?p=146</guid>

					<description><![CDATA[<p>The post <a href="https://drzycimski.com/programmierung/jquery-slide-show-and-gallery-plugins/">Top 4 jQuery slideshow and gallery plugins</a> appeared first on <a href="https://drzycimski.com">Jörg Drzycimski</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><div class="et_pb_section et_pb_section_1 et_pb_fullwidth_section et_section_regular" >
				
				
				
				
				
				
				<section class="et_pb_module et_pb_fullwidth_header et_pb_fullwidth_header_0 et_hover_enabled et_pb_section_parallax et_pb_text_align_left et_pb_bg_layout_light">
				<span class="et_parallax_bg_wrap"><span
						class="et_parallax_bg"
						style="background-image: url(https://drzycimski.com/wp-content/uploads/2017/09/programmierung.jpg);"
					></span></span>
				
				
				
				<div class="et_pb_fullwidth_header_container left">
					<div class="header-content-container center">
					<div class="header-content">
						
						<h1 class="et_pb_module_header">jQuery galleries</h1>
						<span class="et_pb_fullwidth_header_subhead">Why program yourself? 😉</span>
						<div class="et_pb_header_content_wrapper"></div>
						
					</div>
				</div>
					
				</div>
				<div class="et_pb_fullwidth_header_overlay"></div>
				<div class="et_pb_fullwidth_header_scroll"></div>
			</section>
				
				
			</div><div class="et_pb_section et_pb_section_3 et_pb_fullwidth_section et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_module et_pb_fullwidth_post_title_0 et_pb_post_title  et_pb_text_align_left et_pb_bg_layout_light et_pb_image_below"   >
				
				
				
				
				
				<div class="et_pb_title_container">
					<h1 class="entry-title">Top 4 jQuery slideshow and gallery plugins</h1>
				</div>
				
			</div>
				
				
			</div><div class="et_pb_section et_pb_section_4 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_0">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_0  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_0  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>I recently came across 4 very nice jQuery plugins for slideshows and galleries. Actually, I found a lot more, but those are my favorites:</p>
<ol>
<li><a title="Nivo Slider" href="http://nivo.dev7studios.com/" target="_blank" rel="noopener">Nivo Slider</a> (slideshow)</li>
<li><a title="jqFancyTransitions" href="http://workshop.rs/projects/jqfancytransitions/" target="_blank" rel="noopener">jqFancyTransitions</a> (slideshow)</li>
<li><a title="jQuery Cycle Plugin" href="http://malsup.com/jquery/cycle/" target="_blank" rel="noopener">jQuery Cycle Plugin</a> (slideshow)</li>
<li><a title="Fancybox plugin" href="http://fancybox.net/" target="_blank" rel="noopener">Fancybox</a> (gallery zoom)</li>
</ol>
<p>I decided on Nivo Slider for a new project (<a title="Gaastra Store Fehmarn" href="http://www.gaastra-store-fehmarn.de" target="_blank" rel="noopener">www.gaastra-store-fehmarn.de</a>), simply because it offers beautiful captions with links and images, which I´ll need for the second project <a title="Loft Fehmarn" href="http://www.loftfehmarn.de" target="_blank" rel="noopener">www.loftfehmarn.de.</a></p>
<p>If you don´t need those wild animations, but are looking for a cool Lightbox alternative, check out the Fancybox plugin, which I use on <a title="surfspot.de" href="http://www.surfspot.de" target="_blank" rel="noopener">surfspot.de</a>.</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div><div class="et_pb_section et_pb_section_5 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_1">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_1  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_comments_0 et_hover_enabled et_pb_comments_module et_pb_bg_layout_light">
				
				
				
				
				
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div></p>
<p>The post <a href="https://drzycimski.com/programmierung/jquery-slide-show-and-gallery-plugins/">Top 4 jQuery slideshow and gallery plugins</a> appeared first on <a href="https://drzycimski.com">Jörg Drzycimski</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>No-MVC Zend Framework: jQuery Ajax receiver / Part V</title>
		<link>https://drzycimski.com/programmierung/no-mvc-zend-framework-jquery-ajax-receiver-part-v/</link>
		
		<dc:creator><![CDATA[Jörg]]></dc:creator>
		<pubDate>Tue, 11 May 2010 16:34:31 +0000</pubDate>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Star Rating]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<guid isPermaLink="false">http://blog.drzycimski.com/?p=64</guid>

					<description><![CDATA[<p>The jQuery JavaScript is up and running, but needs a PHP file to handle the Ajax data submitted by the rating script. This will be done with PHP in the receiver you defined in your JavaScript, named &#8222;rating.php&#8220; in the &#8222;public/includes&#8220; folder. It&#8217;s important to put this PHP file in your public folder, because if [&#8230;]</p>
<p>The post <a href="https://drzycimski.com/programmierung/no-mvc-zend-framework-jquery-ajax-receiver-part-v/">No-MVC Zend Framework: jQuery Ajax receiver / Part V</a> appeared first on <a href="https://drzycimski.com">Jörg Drzycimski</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The jQuery JavaScript is up and running, but needs a PHP file to handle the Ajax data submitted by the rating script. This will be done with PHP in the receiver you defined in your JavaScript, named &#8222;rating.php&#8220; in the &#8222;public/includes&#8220; folder. It&#8217;s important to put this PHP file in your public folder, because if you pointed your webserver to &#8222;public&#8220;, anything outside (subfolders of  your document root) can&#8217;t be accessed by JavaScript.</p>
<p>Create the &#8222;rating.php&#8220;, and add the following lines:</p>
<pre class="brush:php">&lt;?php
require_once('bootstrap.php'); // Setup Zend Framework Environment
header("Cache-Control: no-cache");
$rating = new Mylib_Rating_Controller();
$score = $rating-&gt;setRatingById($_GET['id'], $_GET['val']); // rate object and get scores
echo Zend_Json::encode($score); // send response array in JSON format
?&gt;
</pre>
<p>The <code>setRatingById</code> passes the values from your JavaScript to the (soon to be created) controller, and receives the updated values from your (soon to be created) database. When I started out using jQuery in combination with Ajax, I was kind of afraid to find it difficult&#8230; but it really<em> is </em>that easy 😉</p>
<p>Next up: The rating controller</p>
<p>The post <a href="https://drzycimski.com/programmierung/no-mvc-zend-framework-jquery-ajax-receiver-part-v/">No-MVC Zend Framework: jQuery Ajax receiver / Part V</a> appeared first on <a href="https://drzycimski.com">Jörg Drzycimski</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>No-MVC Zend Framework: jQuery Star Rating code / Part IV</title>
		<link>https://drzycimski.com/programmierung/no-mvc-zend-framework-jquery-star-rating-code-part-iv/</link>
		
		<dc:creator><![CDATA[Jörg]]></dc:creator>
		<pubDate>Fri, 07 May 2010 16:35:58 +0000</pubDate>
				<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Star Rating]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<guid isPermaLink="false">http://blog.drzycimski.com/?p=48</guid>

					<description><![CDATA[<p>Now for the easy part: creating the page for our jQuery Star Rating plugin. It&#8217;s going to be just a bit of HTML, JavaScript with Ajax components, and PHP. If you want to integrate the Star Rating in an existing page, you can just copy the relevant parts into any HTML file. The JavaScript Before [&#8230;]</p>
<p>The post <a href="https://drzycimski.com/programmierung/no-mvc-zend-framework-jquery-star-rating-code-part-iv/">No-MVC Zend Framework: jQuery Star Rating code / Part IV</a> appeared first on <a href="https://drzycimski.com">Jörg Drzycimski</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Now for the easy part: creating the page for our jQuery Star Rating plugin. It&#8217;s going to be just a bit of HTML, JavaScript with Ajax components, and PHP. If you want to integrate the Star Rating in an existing page, you can just copy the relevant parts into any HTML file.</p>
<p><strong>The JavaScript</strong></p>
<p>Before continuing (or if this doesn&#8217;t work for you), you might want to familiarize yourself with the Star Rating plugin at <a href="http://zensoftware.org/archives/483" target="_blank" rel="noopener">http://zensoftware.org/archives/483</a>.</p>
<p>Add the following lines to the HEAD section of your &#8222;index.php&#8220;. This assumes that you already have one&#8230; if not, use you standard HTML template, and don&#8217;t forget to include your bootstrap 😉</p>
<pre class="brush:js">&lt;script type="text/javascript" src="/js/jquery/js/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/js/rating/jquery.rating.js"&gt;&lt;/script&gt;
&lt;link type="text/css" href="/js/rating/jquery.rating.css" rel="stylesheet" media="screen" /&gt;

&lt;script type="text/javascript"&gt;
$(function(){

 $(".rating")
 .rating({"showCancel": false})
 .bind("change", function(){
   var id = $(this).attr("id");
   var rate = "id=" + id + "&amp;val=" + $(this).val();
   var loading = 'Loading';
   // Or use image instead, looks prettier ;-)
   // var loading = '&lt;img src="/images/loading.gif" /&gt;';
   $.ajax({
     type: "GET",
     url: "/includes/rating.php",
     dataType: "json",
     data: rate,
     timeout: 10000,
     beforeSend: function(){
       $("#rating_value_" + id).html(loading);
     },
     success: function(response){
       $("#rating_value_" + id).html(response.average + " points");
     },
     error: function(){
       $("#rating_value").html("Error!");
     }
    }); // end ajax
  }); // end rating / bind

}); // end $()
&lt;/script&gt;
</pre>
<p>I used &#8222;loading&#8220; as a variable (as opposed to the direct output of &#8222;Error!&#8220;). You can Google the standard Ajax loading image, and put the HTML image tag in that variable to pretty things up, instead of that boring message.</p>
<p>BTW, I always use a leading slash and the complete path in relation to the root directory (e.g. &#8222;/images&#8220;) before each image, JS and CSS file. This way, I don&#8217;t have to worry about broken links when I split header and content sections into different files, and move them to different directories&#8230; which I favorize, because header sections are the same throughout the website, whereas content sections might use different templates.</p>
<p><strong>The PHP / HTML code</strong></p>
<p>You can put this code anywhere within your BODY section of your &#8222;index.php&#8220;, even in existing pages&#8216; DIVs:</p>
<pre class="brush:php">&lt;?php
$id = 1;
$rating = new Mylib_Rating_Controller();
echo $rating-&gt;getRatingView($id);
?&gt;
</pre>
<p>Set the variable &#8222;$id&#8220; to any unique id you want to rate. On my website <a href="http://www.surfspot.de" target="_blank" rel="noopener">surfspot.de</a>, I use it to rate a page, so the id comes from my database, and represents the page id. If you have more than one rating on one page, say for a couple of images, instantiate the class once, and only use <code>echo $rating-&gt;getRatingView($id)</code> with a different id for each image.</p>
<p>Next up: The jQuery Ajax receiver</p>
<p>The post <a href="https://drzycimski.com/programmierung/no-mvc-zend-framework-jquery-star-rating-code-part-iv/">No-MVC Zend Framework: jQuery Star Rating code / Part IV</a> appeared first on <a href="https://drzycimski.com">Jörg Drzycimski</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
