Have you ever wanted to test the existance of a javascript variable
(an array item for example) ?
Just like in PHP, I’ve found a method to do this.
The function returns true if the variable is set or false if the variable was not set.
A variable to be set must be initialized.
The starting point was that an [...]
After many torments while finding a working nl2br() javascript function, i came accross this idea…
For those that are not familiar with the nl2br function from PHP, this simply converts regular line breaks (carriage return ASCII characters) to HTML breaks.
The function converts to XHTML format: <br />
Here is the code:
function nl2br(text){
text=escape(text);
return unescape(text.replace(/(%5Cr%5Cn)|(%5Cn%5Cr)|%5Cr|%5Cn/g,‘<br />’));
}
The function uses regular [...]
Dosarul in care Dumnezeu a fost dat in judecata de un detinut din penitenciarul timisorean a fost clasat de procurorii de la Parchetul de pe langa Judecatoria Timisoara, deoarece nu a fost gasita adresa invinuitului.
Pavel Mircea, condamnat la 20 de ani de puscarie pentru omor, l-a chemat, in octombrie 2005, in instanta pe Dumnezeu deoarece, [...]