JooFriends

Single Global JavaScript Object Namespace

In some development environments, you don't know in advance what JavaScript Code will end up on a page. This can lead to an accidental variable naming conflict between your JavaScript code and the other JavaScript code that ends up on the page. I run into this problem frequently when developing JS code for Joomla Extensions. Here is a way to have only a single Object in the global scope of the JS Script.

Read more...
 

Understanding JavaScript Hacking

Today I somehow landed on a page about JavaScript hacking. I found the article interesting so decided to search google on the subject: http://www.google.com.fj/search?q=javascript+hacking

To my annoyance none of the articles (I only read three and got too annoyed) really helped the reader understand how to defend themselves against “JavaScript Hacking” and to understand what it really is and why its possible.

Read more...
 

Simple Javascript Confirm Box

I came across a question on a PHP forum about the JavaScript confirm function and how it can communicate with php. http://www.daniweb.com/techtalkforums/thread34967.html

For most it's obvious that PHP has nothing to do with this. But to be clear, JavaScript is client side, and PHP is server side. The only way they can communicate is by sending an HTTP request to the server. This tells the PHP what the JavaScript side needs or has done, and the reply from the PHP server lets the JavaScript know what the PHP has done or needs.

Read more...
 

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.