Converting Mootools 1.11 to Mootools 1.2

Feb 03

Converting Mootools 1.11 to Mootools 1.2

Converting Mootools 1.11 to Mootools 1.2


We will know how to convert:
  • Element
  • Array
  • Function
  • Class
  • Ajax
  • Cookie
  • Json
  • Extending
  • Effects
  • Plugins

Read More

SqueezeBox – Expandable Lightbox (v1.1)

Nov 30

SqueezeBox is an unobtrusive LightBox inspired overlay, for modal boxed content on your site. It’s a snap to show images but just as easy to use HTML elements, Ajax requests, iFrames, SWF movies and more.

Source: http://digitarald.de/project/squeezebox/

Read More

MySQL Search & Replace Tool

Nov 21

This web-based tool written in PHP makes it easy to search and replace text strings in a MySQL database.

Source: http://sewmyheadon.com/2009/mysql-search-replace-tool/

Read More

Resolve Mootools & jQuery Conflict

Oct 20

The correct place for the jQuery.noConflict() call would be after mootools, after jQuery (which you’ve got in the right order – mootools first, then jQuery), and before any other javascript code that makes use of either.

<script type="text/javascript">jQuery.noConflict();</script>

also substitute jQuery for the $, or wrapping them in this pattern:

(function($){

  // code with the jQuery $ can safely go in here

})(jQuery);
Read More

Passing Data from Javascript to PHP

Jul 24

<?php
//if the variable is "variable"
$value = '<script type="text/javascript">
<!--
var a = (document.title);
document.write(a);
//-->
</script>';
echo $value;
?>
Read More

Get the Current page Title, Description and Url using JavaScript

Jul 24

<div id="Box">
<script type="text/javascript">
<!--
var a = (document.title);
var b = (document.location.href);
var c = document.getElementsByTagName('meta');
var description;

for (var x=0,y=c.length; x<y; x++) {
  if (c[x].name.toLowerCase() == "description") {
    description = c[x];
  }
}

document.write('<a href="'+b+'">'+a+'<\/a><br />'+description.content+'<br />');
document.write('<span id="green">'+b+'<\/span>');
//-->
</script>
</div>

Source:

http://daydreamingonline.com/demos/javascript/title_and_url/

Read More

Cron Job to make error_log file empty

Jul 14

If you want to make a cron job for error_log file to make it empty, go to cPanel -> Cronjobs and add the following
Command:

> /home/cablexo/public_html/error_log > /dev/null 2>&1

Remember to set the time of the cron Job

Read More

Mootools – not finished

Jul 06

http://mootools.net/

MooTools is a compact, modular, Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript developer. It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.

Read More

How do i control the facebook like image ?

Jun 15

put the following code on the head

<link rel="image_src" href="path/to/theme/screenshot.png" />
Read More

How to start automatic download of a file?

Apr 14

<script type="text/javascript">
setTimeout(function () { window.location = 'download url'; }, 5000)
</script>
Read More