Tibor SzászInteraction matters

  • Home
  • About me
  • Projects
  • Reqest price offer
  • Contact me
  • RSS

2009 1201

Recursive AJAX calls

Last day I had to hack a webshop's basket management system, and deleting the items had to be done via AJAX. The problem was, that each call had to wait the previous to be completed, otherwise some products kept in the session. The solution was simple: call the AJAX requests recursively on the 'onComplete' event.

Here is a cleaned up code, using MooTools 1.2.4. Call addAjaxParam() to prepare the ajaxParams array.

var ajaxParams = [];
function addAjaxParam( pid )
{
    var obj = {
        'option': 'module_shop_action',
        'product_id': pid
    }
    ajaxParams.push( obj );
}


Category: Programming - Tags: AJAX MooTools JavaScript Read more

2009 1130

iScaffold 2.0 preview

iScaffold 2.0 preview I'm a little bit lazy and I prefer the challenging parts of coding, not the boring, repetitive ones. I read somewhere that a great percentage of development time is spent on creating basic CRUD functionality. I had to find something to get rid of this, so I did a little research on which is the best tool for PHP to generate CRUD source code.

Since I was using CodeIgniter for a while, I searched the forums for CRUD solutions and I found this forum thread. After downloading the package, I instantly loved the idea, that you can generate CRUD code based on source code templates. Just a click and models, views, controllers are ready to use, customized for your database schema.

Although the 1.1 is really cool, I missed a lot of features, that I added later.


Category: Programming - Tags: iscaffold crud php codeigniter - 10 Read more

2009 1122

Wikipedia excerpt over DNS service

One of 2009's coolest web mashup is David Leadbeate's Wikipedia DNS service. What it does is very simple: it returns an excerpt from a Wikipedia article in a TXT DNS record.

- What? Dynamic contents in a DNS text record? From Wikipedia?
- Yes!

For example, all you need is love PHP.

  // dns_get_record is a built in PHP function
  $knowledge = dns_get_record( 'trentemoller.wp.dg.cx' );
  var_dump( $knowledge );
See it on a test page:

This service is very sympathetic, because you don't need to install any piece of code and the world's knowledge is just a query away.

See the creator's page here: https://dgl.cx/wikipedia-dns
And check out his presentation: https://dgl.cx/2008/11/wpdns-pres/


Category: Programming - Tags: php wikipedia dns - 1 Read more

 < 1 2 3 4 5 6 7 8 9 10 > 

Briefing

Me myself and I
I love coding, especially for the web. I'm in the online industry for 6 years. My favourite toys are:
JavaScript, PHP, XHTML, MySQL, Canvas, Flash
Váltás magyar nyelvre

Topics

  • Coffee break
  • Design & stuff
  • Generative arts
  • Programming
  • User experience

Friends

  • Kárpáti Róbert
  • Royaljerry
  • Bagi Zoltán
  • Pegazoo
  • Charles Alexander Deli
  • Bence Bangócs
  • Lunakid
  • Rapp design

Feeling so social

  • Facebook
  • IWIW
  • TurulMeme

Tags

javascript (14) php (6) mootools (5) iscaffold (4) codeigniter (4) tutorial (3) crud (3) structure-synth (2) renders (2) template (2) css (2) free (2) google (2) drupal (1) data-visualisation (1) resizing (1) canvas (1) soundcloud (1) wordpress (1) joomla (1) google-buzz (1) hack (1) script (1) rss (1) bermuda-triangle (1) interface (1) design, (1) transitions (1) easing (1) microsoft (1) windows8 (1) magyar (1) bugs (1) ie8 (1) experience (1) user (1) twitter (1) facebook (1) email (1) table (1) rc1 (1) nl2br (1) drag-and-drop (1) slideshow (1) wikipedia (1) dns (1) svg (1) experiment (1) firefox-extension (1) tagging (1) slimbox (1) bugfix (1) cfdg (1) lists (1) inspiration (1) data-uri (1) trick (1) forge (1) infovis (1) blackout (1) tabs (1) library (1) sitebuild (1) utf8 (1) class (1) ajax (1) konami-codes (1) open-source (1)




All rights reserved, ©2008-2012 - Built on CodeIgniter framework - Konami codes - Mostly Valid XHTML 1.1 - Valid CSS 2.1