saquery.com
a web developer' s kung fu…

Development: PHP MySql

Introduction of a Web Developer’ s Kung-Fu: A good way to quit thinking… Start doing it. Is the main idea of the following articles. With each new challenge it is (unfortunately) also necessary to learn a few new things. Here are things to try and learn by errors. It is difficult to learn something without [...]

Categories: docs, english | Add a Comment

There are a lot of spider bots out there using so much traffic. It can be usefull for a webmaster to restrict access of some bots to keep your traffic limit save. It is easy to protect your website. Here is a list of bots no one needs.

Categories: docs, english | Add a Comment

Javascript Console-Log: Objects can be used in many ways in JavaScript. The following examples illustrate aspects of class architecture in Javascript. First of all: The execution context As described here it is allways a good idea to declare your own execution context.

Categories: english | Add a Comment

Out‐of‐Box Performance SQL Anywhere 12 added the following features to  enhance database performance, leading to faster queries and efficient use of resources. Automatic Tuning of Server Threads Column Statistics Management Improved Remote Data Access Performance Enhanced Connection Pooling for Clients and HTTP Server Other Performance Enhancements And much more… Scalability and Monitoring Developer Productivity Advanced Data Synchronization Take a look [...]

Categories: english | Add a Comment
/*! * jQuery Sample Plugin * * http://saquery.com * */ (function(){ $.fn.setBorderStyle = function( settings ) { var _defaults = { 'border':'solid 1px black', 'color':'red' }, _config = $.extend(_defaults, settings), _ = $(this); return _.each(function(i,n) { $(this).css(_config); }); }; })(jQuery); $(function(){ $('div').setBorderStyle(); }) Test 1 : Invoke setBorderStyle with default settings. $('div').setBorderStyle(); Invoke "Test 1" [...]
Categories: english | Add a Comment
This sample shows a good and well structured way to code your own WordPress Plugin in PHP. <?php /* Plugin Name: Your plugin-name Plugin URI: http://www.example.com Description: Your description. Version: 1.0.0.0 Author: Your name Author URI: http://www.example.com */ global $myWordpressPlugin; $myWordpressPlugin = new myWordpressPlugin(); class myWordpressPlugin{ function wp_head(){ echo '<!-- test -->'."\n"; } } add_action('wp_head', [...]
Categories: docs, english | Add a Comment
The big players on the Internet offer a good possibility to include well known JavaScript libraries  in your own websites. There is no need for a own webspace. This is an example to load jQuery and jQuery UI with the basic theme from Google CDN. <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" [...]
Categories: docs, english | Add a Comment
Your own scope or execution context in Javascript is important to avoid conflicts with instanced objects and variable names. var myVar=' - context0', toTitle = function(txt){ document.title+=txt; }; (function(){ var myVar=' - context1'; toTitle(myVar); })(); (function(){ var myVar=' - context2'; toTitle(myVar); })(); toTitle(myVar); Take a look at the page title to see how this example [...]
Categories: docs | 1 Comment
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript" language="javascript" src="http://code.jquery.com/jquery-1.4.2.min.js" ></script> <script type="text/javascript" language="javascript"> var _yourCode = 0 </script> </head> <body> <form id="form1"></form> </body> </html> jQuery kickStart Download | jQuery UI and CSS improved version!