Thursday, December 23, 2010

How to slipstream SATA drivers in HP Mini 110-3000

I am going to teach on how to slipstream using nLite program. Usually this happens when your Windows XP CD does not have any SATA driver in it. When try booting from the CD, the setup doesnt detect the SATA harddisk. Sometimes blue screen will come out when the CD is starting the Windows.

First download the N-Lite software. Then download the SATA driver. In my case i am installing Windows XP in HP Mini 110-3000 which needs a recognize SATA driver for Intel. Download here. After finish installing N-Lite, create a folder and copy all files in your Windows XP CD into the folder.

Run N-Lite program.


Click Next and it will ask you the Windows XP files. Select the folder contain the XP files from CD.


After selecting the folder, it will scan your type XP version example Service Pack and etc.


Just click Next.


In this case i select Drivers and Bootable ISO(which later i can burn the image onto CD).


Click Insert to select the SATA driver to slipstream. I prefer select Multiple Driver folder.






In above step, click the button Make ISO. It will prompt you where to save the ISO file.


Wait until the process finished and click next. Now you can burn the ISO file and boot from your newly created CD.

Friday, December 10, 2010

Conditional ListDown - JavaScript

First create a html page name "main.html".

Code for "main.html" :
<!doctype html public "-//w3c//dtd html 3.2//en">
<html>
<head>
<title>(Type a title for your page here)</title>
<script language="javascript" src="list.js"></script>
</head>

<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000" onload="fillCategory();">

<FORM name="drop_list" action="yourpage.php" method="POST" >

<SELECT  NAME="Category" onChange="SelectSubCat();" >

<Option value="">Category</option>
</SELECT>&nbsp;
<SELECT id="SubCat" NAME="SubCat">
<Option value="">SubCat</option>
</SELECT>
</form>

</body>

</html>

Next create a javascript file name "list.js".

Code for "list.js":

function fillCategory(){
// this function is used to fill the category list on load
addOption(document.drop_list.Category, "Fruits", "Fruits", "");
addOption(document.drop_list.Category, "Games", "Games", "");
addOption(document.drop_list.Category, "Scripts", "Scripts", "");
}

function SelectSubCat(){
// ON selection of category this function will work

removeAllOptions(document.drop_list.SubCat);
addOption(document.drop_list.SubCat, "", "SubCat", "");

if(document.drop_list.Category.value == 'Fruits'){
addOption(document.drop_list.SubCat,"Mango", "Mango");
addOption(document.drop_list.SubCat,"Banana", "Banana");
addOption(document.drop_list.SubCat,"Orange", "Orange");
}
if(document.drop_list.Category.value == 'Games'){
addOption(document.drop_list.SubCat,"Cricket", "Cricket");
addOption(document.drop_list.SubCat,"Football", "Football");
addOption(document.drop_list.SubCat,"Polo", "Polo", "");
}
if(document.drop_list.Category.value == 'Scripts'){
addOption(document.drop_list.SubCat,"PHP", "PHP");
addOption(document.drop_list.SubCat,"ASP", "ASP");
addOption(document.drop_list.SubCat,"Perl", "Perl");
}

}
//////////////////

function removeAllOptions(selectbox)
{
var i;
for(i=selectbox.options.length-1;i>=0;i--)
{
//selectbox.options.remove(i);
selectbox.remove(i);
}
}


function addOption(selectbox, value, text )
{
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;

selectbox.options.add(optn);
}

Good luck trying it.