DevReview.net

More development notices …

Archive for the ‘javascript’ tag

IE7 getElementById bug

leave a comment

<html>
<body>
<input type=”text” name=”q” id=”qTop”  value=”2″ >
<input type=”text” name=”q” id=”q”     value=”3″ >
<script>
var el = document.getElementById(‘q’);
alert(el.value);
alert(el.id);
</script>
</body>
</html>

So, guess what?
Exactly, this one will output: 2, qTop instead of 3,q

Known Microsoft issue aroung getElementById fixed in IE8.

Written by admin

October 29th, 2010 at 1:33 am

Posted in javascript

Tagged with , , , ,

Moving from Prototype to jQuery

leave a comment

Recently, I found a lot of really useful frontend products (ready components: here -> sohtanaka.com :) ) built with jQuery, so I decided to switch from PrototypeJS to jQuery. Since my applications don’t use to much javascripts, just maybe for ajax needs I have no need to load both libraries anymore.

On my opinion both libraries have different goals. On this moment prototypejs is more like base library which extends base js functionality, and jQuery is more usefull as practical framework with a lot of opensource and ready for use components. Also, with this switch I hope to receive more experience of usage both libraries because that will give me possibility to compare them and analyze results. Read the rest of this entry »

Written by admin

August 9th, 2010 at 6:52 pm