Archive for May, 2006
« Previous Entries
Running php4 and php5 on a same machine on demand
Wednesday, May 31st, 2006
cd C:\phpdev
rename php512.ini php.ini
copy php.ini C:\windows /Y
rename php.ini php512.ini
cd C:\phpdev\apache
start apache -f conf/httpdphp512.conf
cd C:\phpdev\mysql\bin
start mysqld-nt.exe –standalone
start http://acosonic.com/
exit
cd C:\phpdev
rename php440.ini php.ini
copy php.ini C:\windows /Y
rename php.ini php440.ini
cd C:\phpdev\apache
start apache -k start
cd C:\phpdev\mysql\bin
start mysqld-nt.exe –standalone
start http://acosonic.com/
exit
IE specific css syntax
Monday, May 29th, 2006Example for HTM file (works only in IE win)
taken from:
http://www.quirksmode.org/css/condcom.html
With Javascript Objects
Monday, May 29th, 2006When You have
bb.obj.elementName.something and you want that elementName be variable you write:
bb.obj[elementName].something
Javascript web2.0 script loading problem firefox
Wednesday, May 24th, 2006I’ve wanted… TO load, but onload does not seem to work.
PHP XML story
Wednesday, May 24th, 2006I’ve get used to XPATH at JQUERY and Javascript, so I wanted the same functionality with javascript for a PHP.
I’ve been testing many classes and extensions under PHP 4.4.0 but noone seems to work except www.phpxml.com
You need to set output errors to 0
Dimming a page (with semi transparent overlay)
Thursday, May 18th, 2006It’s impossible to make this thing work in one css in IE and FF. So solution is simple
Make 2 css-es one for ff, and another for IE and include them dynamically….
Limitation of JQUERY’s DOM plugin
Thursday, May 18th, 2006You can’t write element creation in a loop like this:
var elem = $.TABLE({id:”mnglContacts”},
for( var x=0; x
Strange CSS word-wrap stuff
Wednesday, May 17th, 2006I wanted to make DIV to act as a text area (to break words and to add scrollbars)
So I have been doing some testing. If You want dinamically to add content to that div, and to break it
You should write css definitions like this:
#userTags {
border:1px;
border-style:solid;
width:50%;
height:40px;
word-wrap:break-word;
text-align: left;
white-space: -moz-pre-wrap;
overflow:auto;
}
So, firefox and IE does not break the line […]
strange error
Monday, May 15th, 2006Related to a Greybox.
The error is when You try to click on any link with onClick assigned inside a greybox frame, the background page (behind greybox) jumps few pixels up (scroll up).
The solution for this problem is, to add return false; on every onClick…
Javascript cookie manipulation
Thursday, May 11th, 2006function createCookie(name,value,days) {
if(SomeDebugFlag)(”cookie”);
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = “; expires=”+date.toGMTString();
}
else var expires = “”;
document.cookie = name+”=”+value+expires+”; path=/”;
}
function readCookie(name) {
var nameEQ = name + “=”;
var ca = document.cookie.split(’;’);
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==’ ‘) c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,””,-1);
}
function addLoadEvent(func) {
var oldonload = window.onload;
if […]
