Archive

Posts Tagged ‘Prototype.js’

AJP : Authenticated JSON Proxy

March 20th, 2009

Authenticated what?

The first hurdle most developers have to take when introduced to AJAX is S.O.P.
S.O.P stands for Same Origin Policy and basically means that you can only do AJAX-requests to the (sub)-domain the client is currently on. First thing I thought when I read about AJAX couple of years ago; ‘wow! cool! I can strip content from other sites and incorporate them in my websites’ .. and immediately I started hammering away on a RSS-reader which was supposed to grab news from a RSS-feed directly. My efforts failed. The RSS-feed was on another domain and S.O.P kicked in spoiling all the fun.
Read more…

buTTon Javascript, OOP, PHP, WPS , , , , , ,

Javascript Classes and Object Inheritance with Prototype.js

March 15th, 2009

If you’re used to writing Object Oriented PHP switching to Javascript could be confusing, it takes a lot of effort and ugly code to actually write pure classes. You won’t be able to create abstract-classes or use interfaces. On the other hand; being a prototyped language Javascript offers a lot of possibilities that you won’t find in PHP. If you’re used to the way of thinking of OOP in PHP, why not use this knowledge to write Javascript-classes? This is where Prototype.js comes in.

Read more…

buTTon Javascript, OOP , , ,


Onze tip:SCDB.info – de meest actuele flitspalen in Europa voor uw GPS!