designing4u.de Yet Another Coding Blog

21Jul/085

jQuery – show / hide button for multiple div containers with AJAX and JSON

This time I will consider another case of loading content into div containers using jQuery, AJAX and JSON request. In an other example I showed you how you can simply load content into one div container using AJAX and provide a user show and hide button.

In this example I want to consider a different case. Sometimes you don't only have one div container which needs to be filled out with content but multiple containers which need to be filled out with content according to the link which was clicked by the user. Again we will provide a functionality of changing the label of our button. We will extend this example by handling a larger amount of data in our response. For that reason we will use build in functionality of jQuery to handle JSON requests.

19Jul/080

Symfony – no error message on empty values in not required fields

It's been a long time since I wrote my last post, but I kept myself busy with work. I'm just working with another web 2.0 project (yes, there will be another web 2.0 project :) , which was written using symfony framework. I need to admit that my previous experience with different frameworks was pretty good, but symfony is different and I'm really excited about it. In a way it is similar to CakePHP using MVC patter but it has features, which I couldn't find in Cake. I mean symfony has its pros and cons but I find it really easy to build database models and modules using CLI and ORM. Propel is probably not the best abstraction layer, but I was reading on Doctrine site (which I personally find better than Propel) that it will be included in the new 1.2 release. I don't want to write a lot about symfony here, but rather solve a validation problem I encountered during development.

   

Pages

Categories

Blogroll

Archive

Meta