JavaScript

Make ThickBox Work with Other JavaScript Libraries / Resolve ThickBox Conflict Issues

Submitted by Amir Shevat on Tue, 07/14/2009 - 07:45

ThickBox is a cool visualization tool based on Jquery JavaScript library. ThickBox helps you display photos in a cool way and is useful in many web projects.

The problem

ThickBox does not work when the HTML pages has other JavaScript libraries such as Mootools.

Debuging the error reveals this:
$(domChunk) is null

AutoSnippet - automatically generate HTML and javascript code snippets

Submitted by Amir Shevat on Tue, 07/07/2009 - 08:33

Code snippets posted online are a great source of knowledge and simple way to share experience and to reuse code. As developers we always look to see if there is a 'code example' which we can modify to our needs. As bloggers we find code snippets very useful to get our information out to the readers.

The problem is that creating these code snippets is a complex and cumbersome task. You need you replace all the < with &alt, wrap the code in <pre> and <code> tags and then use a Syntax Highlighter to make our code look nice. Every time we change or fix the code you need to reiterate this process.

AutoSnippet solves this problem by automatically generating the code snippet from the source code (HTML, CSS and Javascript). No more cumbersome repetitive tasks and no more inconsistencies between example and real code.

In this article I will show how to generate automatic snippets for your blog and source/code websites.

How to check where your site visitors come from using javascript

Submitted by Amir Shevat on Thu, 06/25/2009 - 08:35

Where do my visitors come from? That is always a question bloggers, site owners and advertisers want to know. Knowing who has referred the visitor to my site tells you a lot about that visitor. This information might help you drive better, more finely tuned content to this user.

Demo


Ajax persistent Data Objects - AjaxDo 1.1 released!

Submitted by Amir Shevat on Sun, 07/20/2008 - 20:06


Release 1.1 adds a fully functional JAVA server-side implementation to the pre-existing PHP server-side implementation. Now, Ajaxdo, AJAX

persistent Data Objects, enables applications can work in a JSP/JDBC environment and port easily from PHP to JAVA and vise-versa.

Code, examples and documentation can be found here.

Tip: Solving the browser caching problem of AJAX applications

Submitted by Amir Shevat on Fri, 07/18/2008 - 14:55

Browser caching is generally a good thing, why download the same image again and again while you can download it once and save it on the browser? In some cases, however, this is not a wanted behavior.

The problem:

Tip: how to write an XML document with JSP for AJAX applications

Submitted by Amir Shevat on Fri, 07/18/2008 - 11:28

AJAX applications usually connect to a server side application and request data in the form of XML. When the server side is written in JSP (Java Server Pages), for example a spring-framework web application with JSP views, writing the XML response is sometimes problematic.
The problem:
When using JSP to format the data in to XML and send it to the AJAX application, the XML is not recognized as XML (empty DOM object) and the AJAX application does not function properly.

Powered by Drupal, an open source content management system
Syndicate content