Monthly Archives: August 2010

Flexible JavaScript – Splitting Strings

After reviewing a chunk of my code for today I continue to admire the flexibility of JavaScript. It’s really powerful. In that example you can get a string split it by a given symbol to an array and than get … Continue reading

Posted in javascript, micro tutorial | Tagged , , , , , , | Leave a comment

Can Twitter Replace the RSS Feed Readers

I’m sure this is not the first time you’ve been asked this question. However there’s nobody today that doesn’t wonder the answer. For me – yes, twitter can replace the RSS feed readers, and NO – feed readers are awsome! … Continue reading

Posted in web development | Tagged , , , , , , | Leave a comment

Returning JSON in a Zend Controller’s Action – Part 2

In a reply from my latest post after following the comments, there is a much elegant solution to this use case. Simply by changing the output with a JSON helper. This also changes the content-type of the returned response. $data … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , , , , | 5 Comments

Returning JSON in a Zend Controller’s Action

There are three basic ways that you can achieve that. First of all what’s the task? You’ve an array, either from a database result or whatever, and you encode it JSON with Zend_Json::encode($array) // IndexController.php class IndexController extends Zend_Controller_Action { … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , , , , , , | 5 Comments

Quick Look at JavaScript Objects

JavaScript Objects As you may know there are different notations of objects in JavaScript, and there are slight differences. However here I’m gonna achieve the same thing with different notations. The first one is the object notation in JavaScript known … Continue reading

Posted in javascript, micro tutorial | Tagged , , , , , , , , , , , , | Leave a comment