Archive for the ‘html’ Category

There’s a conflict using both libraries, jQuery and Prototype on same page, because both use the same namespace of ‘$’. To fix it we need to know, that Prototype library doesn’t allow too much to change, but jQuery is such flexible, that even supports different namespacing.

Here’s example (one of many solutions):

download (zip as jpg, change extension to zip!!!)

<!DOCTYPE htmlPUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”&gt;
<html xmlns=””&gt;

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
<title>jQuery and Prototype conflict – FIX</title>

<!– define Prototype as 1st –>
<script type=”text/javascript” src=””></script&gt;
<!– define jQuery as 2nd –>
<script type=”text/javascript” src=””></script&gt;

<!– script space is default for Prototype, we must invoke jQuery script by: –>
<script type=”text/javascript”>
<!– invoke jQuery: –>
jQuery(‘div#jQuery’).text(“jQuery script executed !!!”);

<!– Prototype (nothing to change, Prototype doesn’t support something similar as jQuery.noConflict(); –>
document.observe(“dom:loaded”, function() {
$(‘prototype’).update(‘Prototype script executed !!!’);

<div id=”jQuery”>jQuery script NOT executed</div>
<div id=”prototype”>Prototype script NOT executed</div>


I was searching couple of days for sending realtime pushing messages for my web app. I turned into this after crash of my cloud-realtime-messages system (cloud hosting with pricing). Here is very simple solution:

download file below and open it with 7zip (it’s archive)


If you need to use the attribute placeholder in different versions of web browsers, such as IE 7-10, Firefox, Chrome, the problem is IE version lower than 10. This browser does not support attribute placeholder.

To achieve the effect that brings placeholder attribute, you can use jQuery script.

An example of placeholder without JQuery (IE> = 10, FF, Chrome)
placeholder IE10 works
placeholder IE9 doesnt work

An example of the effect placeholder with JQuery (IE <10, FF, Chrome)
placeholder works





based onĀ