When building an Ajax Gateway, ie a file that is invoked by the object XmlHTTPRequest JavaScript, you can inadvertently create a tunnel for unwelcome intrusion. In fact, being a file like the others, located on our server is reachable from the address bar of your browser.
Category 'Ajax'
Very short snippet: how to identify calls Ajax in PHP
WordPress: step by step how to create their own login
In this tutorial we will see how to create a personal login procedure, also using Ajax functionality via jQuery . ). There are several ways to customize your WordPress login, for example by the use of hooks and filters ( add_action() , add_filter() ). Here we will use a lower-level procedure, although there still interfacceremo Kernel WordPress. In addition we will attempt to validate a user through the dupla email / password.
Why create their own login?
- In some contexts can return uitle have maximum control on the login page, to propose a custom layout to our registered users. Additionally you can enrich the page with useful information, a logo from the classic "Forgot Password?"
- To allow access via the email (as in the example discussed here) instead of
user_loginstandard WordPress - To be able to enter a login panel in the sidebar of our blog
- And finally, to have a skeleton - and an idea - a great Plugin

Environment
In our example / tutorial we will work on the root of WordPress into a folder mylogin . . We create two php files within this folder: index.php and logon.php . The first will contain our login interface with all functions JavaScript / jQuery we need. The second file, logon.php , will contain the code for user validation. e una cartella images . We then create a folder css and inside this file layout.css and folder images . Inside the images folder insert a classic Ajax loader: create it online AjaxLoad.info . At the end you should have:
- mylogin
- index.php
- logon.php
- css
- Layout.css
- images
- ajax-loader.gif
Shadowbox 2.0: The release candidate 1
She was released the release candidate 1 (rc1) for version 2.0 of Javascript library Shadowbox , by Michael JI Jackson , useful to open windows dedicated to the views of various types of media, from Flash to Quicktime to HTML pages. In this new version include:
- The site is full of information and now includes a wizard (in the style of mootools) to create "on the fly" a library package customized to our needs
- Ability to use a module standalone basis, without necessarily include - specific adapter - external libraries like prototype.js, jQuery, etc ...
- Improvements to the management and implementation of Skins
- Location
The library is also available on SVN at:
http://michaeljackson.googlecode.com/svn/trunk/shadowbox Text Replacement Techniques in Flash
The Text Replacement technique that I present today is, in some aspects, really interesting. Unlike the classic image replacement is for using CSS , this technique uses a Flash movie to overwrite the titles of our site. Although it is a little bit more articulated, as it requires the creation of a Flash movie and the use of JavaScript, allows to obtain a series of considerable advantages:
- Keeps the 'accessibility to the site using a True-Unobtrusive Javascript- so that crawlers and spiders continue to see the page as simple and correct HTML
- It does not require the creation of n by n image titles. It only takes one movie to replace all the titles of our site, with a considerable saving in terms of the Download
- It allows you to create simple titles but also with Font not normally used on the Web
- Text can be rendered in HTML, thanks to the features of Flash
- The text is selectable
- Being a Flash movie you can insert any kind of interactivity and animations
You will note, also, that in this procedure are practically no CSS considered!
Google AJAX Library API: a breakthrough for developers
Google , in the latter period, has released a multitude of tools for developers, constantly updating their releases. Now holds an agreement with popular AJAX framework, and not only to centralize the distribution of library jQuery , Prototype , script.aculo.us , MooTools and dojo !
In practice it is possible to access these libraries leveraging the infrastructure and the Google network, with significant advantages in terms of speed and safety.
The speed, in the load, is guaranteed by the same network as Google that, in addition to providing a structure per se of distributed server, allows (by default) loading compressed (gzip / minify) of the libraries. The hosting Google closest to the request will be used to send the code and, if not met or down temporarily, Google will provide the network, however, sending the Javascript code!
Google Maps: How to get Latitude and Longitude from an address
Also this time I reply to a comment with a post, given the general interest. Armando asked me if it was possible, using Google Maps, Latitude and Longitude obtained from a city name or street. The answer is yes! Through this service, Google Maps API geocoding service you can directly ask Google trasfromare our textual information (state, city, etc.) into geographic coordinates. You can try an online example directly on the site of documementazione Google.
Google AJAX Language API tutorial on the operation
I respond with this post, at the request of Andrea on how to insert the translator of Google in its web. There are several ways to take advantage of machine translation services available from Google and elsewhere. We can use plugins written by others, a simple JavaScript script from Google itself or mixed learning to use the API, ie a set of callable functions - as we shall see - in various ways.
Plugin
I will not dwell on this solution, as I think is not really relevant to the request of Andrew , if I understood well. It is also a solution sostanzialemente valid only for the blog and not for individual use and generic. I can only point out to users WordPress , Global Translator , perhaps the most simple, practical and popular plugins of this type.
Script Ready by Google
The easiest way to translate your website or your blog is to add a simple JavaScript script provided by Google. Just go to the site translate.google.com tab and click on 'Tools'. From this page you can preset the translation functions or leave the default. The script is very simple:
1 |
and as a result is obtained:

2.0 Snipplr code: fragments (snipp) of useful code
It was a long time that I wanted to point this valuable service dedicated to programming world. Snipplr (code 2.0) is a veritable font or repository of useful code snippets. You can register for free and send portions of their code and, above all, enjoy the many snipp already on site. I have treated many languages (Actionscript, ASP, C #, MatLab, PHP, Rails, SVN, etc ...), all well-sorted and cataloged. You can also install a handy WordPress plugin can display on our blog a snipp-tails through its unique id.
Free Pocketguide the Adobe AIR for JavaScript
Written directly by the AIR team, this guide is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License In short it is freely accessible! Despite its simplicity, it contains a lot of interesting (and correct, as is the team to write AIR) to develop AIR applications using Javascript, HTML and CSS. Thanks to Ajaxian, you can download the text in PDF format, clicking here , or - if you prefer - you can order it on Amazon . At Adobe Labs, you find other useful information.
Adobe AIR FAQ: Everything You Need to Know
By turning on various blog (thanks Frank) and through discussions with Julius , I realized that in addition to the extreme interest in Adobe AIR , there is also much confusion, and rightly so. Both developers and users continue to not be clear what it is, what you serve and how developments in Adobe AIR . I decided, therefore, to gather the various threads in this sort of FAQ to try to clear a little 'what is actually hiding behind Adobe AIR.






Latest Comments
Subject : very helpful indeed! I tried it and it is just what I needed. Now I wonder how do I get ...
vik : With strategic help!
Pepper : Hi there, I do not know if you're one of the creators of the WP plugin Bannerize. I have spotted a ...
Rosanna : Can anyone tell me how do I delete the Snap Shots window that opens automatically when I ...
blessed Maresca : I can not download any skypemote me spiegaaa