Tag: Projects
All the articles with the tag "Projects".
-
JavaScript URI parameter encoding
When creating a HTTP request in JavaScript, I always used encode() and decode() to pass data between client and server. I also used this approach in PRAjax, my open-source Ajax helper library for PHP. A developer working with PRAjax on his site reported to me last week that Swedish characters like å, ä, ö, ... were not passed corerctly to and from the server. My first reaction was: add a UTF-8 header on the server side, and it should work. Characters from other character sets are always displayed correctly when doing that. Except when using JavaScript, it seemed when I tried entering Swedish...
-
Have you alreday tried PRAjax?
Some people who know me, have already experimented with my home-brew PHP Ajax framework, PRAjax. PRAjax is short for PHP Reflected Ajax, and provides the glue between server-side PHP and client-side Javascript. You should really try it out in your project! My blog uses PRAjax too. Try navigating to the homepage and clicking a [more...] link. The article body is then fetched behind the scenes and updated on your browser view. A small example... One can write a method in PHP, and make it callable by the client using JavaScript. For example, you have the following PHP code: On the client-side, you can now call this method asynchronously (using, for example, a link with an onclick method "Hello('Maarten');", and get the result in a callback function:
-
My first blog post!
Starting today, I will try to regularly post some information about myself, my job, my life, my opinions. Some of my colleagues at work, mainly Joris, told me I should start a blog too. He has his blog hosted at Blogspot, but I really wanted to host it myself. After trying some PHP software (Wordpress, NucleusCMS), I decided to write my own software, based on my PHP Framework I also use at Holidayhome.be and Eurobesthosting.com. You will see that I have not (yet) implemented all "standard" blog features like rating, trackbacks, pings, ... Bad news: it'll maybe become implemented, maybe not. Luckily for all those blog fanatics out there, comments can be made, and I also have an RSS feed based on using tags. That way, you can build your own custom-made Maarten feed.