Editable Datagrid for Ruby on Rails Built with dhtmlxGrid
This tutorial will guide you how to display tabular data in Ruby on Rails with dhtmlxGrid Standard Edition, which is available under GNU GPL. We will end up with a datagrid with in-line editing, sorting, and filtering, which loads its data from server and saves it back to the database using Ruby on Rails.
As an example, we will create a table of users. This is a quite common task nearly for any web application. Working with RoR, we could use scaffolds but they are not so good for navigation on large sets of data. Besides, dhtmlxGrid has client-side editing and filtering functionality, which can simplify things a lot. This is how our final grid will look like:
504 hits
Ruby on Rails
Creating a Simple Web Application Using a MySQL Database
This document describes how to create a simple web application that connects to a MySQL database server. It also covers some basic ideas and technologies in web development, such as JavaServer Pages (JSP), JavaServer Pages Standard Tag Library (JSTL), the Java Database Connectivity (JDBC) API, and two-tier, client-server architecture. This tutorial is designed for beginners who have a basic understanding of web development and are looking to apply their knowledge using a MySQL database.
598 hits
JSP
Creating a Simple PHP Cache Script
Cache is a programming concept that can be used in a various range of applications and for various purposes. A cache library can be used for storing database queries for later use, to store rendered pages to be served again without generating them again, or to save indexed pages in a crawler application to be processed by multiple modules.
590 hits
PHP
Creating a Sun Effect
In this quick tutorial I will demonstrate how to create a sun effect with rotating sunrays. We will achieve this with some basic ActionScript and a some flash creativity.
642 hits
Flash
How to write a simple scraper in PHP without Regex
Web scrappers are simple programs that are used to extract certain data from the web. Usually the structure of the the pages is known so scrappers have reduced complexity compared to parsers and crawlers.
In this tutorial we are going to create a simple parser that extract the title and favicon from any html page.
598 hits
PHP
PHP cURL functions tutorial
cURL is a library which allows you to connect and communicate to many different types of servers with many different types of protocols. Using cURL you can:
- Implement payment gateways’ payment notification scripts.
- Download and upload files from remote servers.
- Login to other websites and access members only sections.
PHP cURL library is definitely the odd man out. Unlike other PHP libraries where a whole plethora of functions is made available, PHP cURL wraps up a major parts of its functionality in just four functions.
578 hits
PHP
Managing Databases in MySQL
CREATE DATABASE statement will create the database with the given name you specified. IF NOT EXISTS is an option part of the statement, this part prevents you from error if there is a database with the given name exists on the database server. In our tutorial, for example, to create classicmodels database, you just only apply CREATE DATABASE statement above as follows
632 hits
mySQL
Submitting forms using PHP cURL
In the previous article, we covered the PHP cURL basics. Specifically, we learned how to connect to a remote URL and retrieve the URL’s contents. In this article we will learn how to simulate form submission using PHP cURL.
568 hits
PHP
Spiral Exit Text Presentation
Using this thoroughly explained, detailed flash lesson, I will explain to you how to create spiral exit text presentation. This presentation can be used for some flash banner or for some animation. Let's start!
632 hits
Flash
Using a flat-file database in Perl
You've all heard of a Poor Man's Copyright: when you come up with a great idea and you send it to yourself in the mail to prove it was your idea. Getting a real copyright can be a pain, and sometimes isn't worth the effort. A poor man's copyright doesn't have all of the benefits of a "real" one, but for the small stuff - it usually gets the job done.
When designing a website, the same sort of problem can arise, you have a project that needs a database setup, but you either don't have the money for a database package, or it's such a small database, that using a commercial package isn't worth the trouble.
1350 hits
PERL
