Friday, June 27, 2008

Bye Bye tx1000!

i sold my hp tx1222au tablet two days ago, and now finding it a bit difficult to deal with work without it :-( actually, it was really a good tablet -- one of the best i've used -- and the only reason to sell it was to go for an upgraded version of the same series.

the hp tx series of tablets are very populat among users, according to www.tabletpcreview.com. however, there were a couple of drawbacks i noticed in the tx1000 series:

1. the touchscreen does not meet the expected standards; it's hard to write, and write-recognition is really bad. i couldn't use it to draw in photoshop; but finally managed to use it by doing a couple of tweaks -- still i had to draw slow, giving enough time for the processor to recognize the strokes.

2. the sound quality is no that satisfying. eventhough it comes with altec-lansing speakers, my n70 was better at times ;-)

3. hp doesn't provide the most optimized drivers for windows xp. it comes originally with windows vista, which is ofcourse a failure. and if you try to downgrade to windows xp, you will end up without optimized drivers. fortunately, i found third party drivers for all the components online.


besides the drawbacks mentioned, i found it a really good tablet, and it helped me a lot in organizing my files, and synchronizing between office and home.

i'm still contemplating between the "hp tx2500" and the "dell latitude xt" (which i'm not sure if is available in the market yet). if any of you guys have any idea of the two, please fill me in.

Monday, June 16, 2008

JavaScript: Loading an External File to a DIV

this script will let you load an external text file to a DIV container in the html file.

first, put this code in the 'head' section of the html:
<script>
<!--
function ReplaceText(container,content) {
document.getElementById(container).innerHTML = "<iframe src='"+content+"' width=600 height=400 frameborder=0 scrolling=auto>";
}
-->
</script>

and then use this in the link:
<a href="#" onClick="ReplaceText('base','sample.txt')">Load Text</a>

the container div should be something like this:
<div id="base"><div>

happy coding :-)


JavaScript: Simple Buttons

well, here is a quick way to replace the images on an html button:

put this code in the 'head' section of the html:
<script>
<!--
function ReplaceImage(image,imgfile){
document.images[image].src = imgfile;
}
-->
</script>

and then use this in the link:
<a href="home.html" onMouseOver="ReplaceImage('home', 'home_down.gif')" onMouseOut="ReplaceImage('home', 'home.gif')"><img name="home" src="home.gif" border="0"></a>

you can also use the 'onClick' attribute to use a JavaScript to load the link; in such case replace the value for 'href' with "#."