Wednesday, April 1, 2009

readonly not works in JavaScript DOM

DOM- Javascript if you are using...
document.getElementById("idTest").readonly=true;
it will not work.
we have to use readOnly instead of readonly
correct is...
document.getElementById("idTest").readOnly=true;

Friday, March 20, 2009

csrcs.exe virus remove manually

1. Go to Task manager and stop csrcs.exe Process ( csrss.exe is windows Process )
2. Go Command Prompt and go to system32 folder and change attrib -r -s -h csrcs*.*
3. Delete all csrcs*.* including dll and exe
4. run regedit and find entry for csrcs. mostly it will find two entry. delete them.( Pl be careful while edit registry.

local mdb data export to website backend mysql

Problem: Laboratory Machine connected with rs232 update .mdb file on Local computer. We have to fetch this data from web page (web site running on service provider IIS/Apatche server) and send it to website Back-end MySql Server so everyone can use same data world wide.
Solution: Webpage in native PHP. write Javascript embedded into it with ADODB object...
var obj = new ActiveXObject("ADODB.Connection");
fetch data and assign it through document.getElementById and import to input tag name by same ID.
HTML:
input name=i1 type=text
JS:
document.getElementById("i1").value = jsVar;
PHP:
$PhpVar = $_GET["i1"]

To fetch Data from Local .mdb you can use systemDSN ODBC

var cObj = new ActiveXObject("ADODB.Connection");
var rS = new ActiveXObject("ADODB.Recordset");

rS.CursorLocation = adUseClient;
cObj.CursorLocation = adUseClient;

var iStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/userdata.mdb";
var adOpenKeyset = 1;
var adLockOptimistic = 3;
var adCmdText = 1;
var adUseClient = 3;
cObj.Open(systemDSN_Name) // or use cObj.Open(iStr)
var grStr = "SELECT * FROM table1 WHERE uid=12"



recSet.Open(grStr,cObj,adOpenKeyset,adLockOptimistic,adCmdText)
recSet.AddNew;
var id = rS.Fields("Name").value;
Important:
To Access SystemDSN from another Machine on your Intranet Pl share Folder with FullAceess(Read-Write) on which your .mdb file reside. If this ignore you will get Error: File already in use
Settings for IE:
access Data Source across domain - Prompt/Enable.
ActiveX Control/Script running - Prompt/Enable.

Monday, December 22, 2008

Income Tax Calculator India - FireFox Add-ons

Launch FireFox Add-ons. on 21 Dec 2008.

Now Individual having Salary Income/Interest/Other Income can Calculate Income Tax Liabilities in India.

There are Deduction of mediclaim (80D) and Other 80C (1,00,000 limit) available.

Educational cess and Surcharge also considered.

Suggestions are most welcome.

Saturday, December 13, 2008

Extension Developer zip fail to create xpi

When You try to build xpi with Extension builder (Firefox 3.0 above) it gives error to create xpi file like zip failed.
Solution:
Please put xpi filename with extension
for example "helloworld.xpi" instead of "helloworld"

Monday, November 3, 2008

DriveGuard.exe Virus removal

Symptoms:
DriveGuard is Microsoft tool for removal drive protection but if you not installed it and it shows in TaskManager as DriveGuard.exe it should be malware.

How to Remove:
1. Open Task Manager and End process DriveGuard.exe
2. Run regedit and search for "DriveGuard.exe"
3. Delete all entries with "DriveGuard.exe" (be careful while edit registry)
4. Also delete folder C:\Program Files\WinDriveGuard
5. Reboot the machine and check entry in task manager with DriveGurad.exe. It should not appear there.

firefox.exe malware removal

Symptoms:
If you find firefox.exe process in task manager with around 3100k size than it is malware.
If you run Ccleaner than it gives message of opened firefox although firefox is not running.

To remove from the system(Windows).
1. boot system in safe mode.
2. run regedit
3. search for the "Stubpath" enetry
4. Mostly It shows "SecSecurity.exe"
5. Delete all "Stubpath" entries from registry ( Be Careful while edit Registry)
6. also remove SecSecurity.exe from Windows\System32
7. Boot in Normal mode
8. check in task manager not entry of firefox.exe around 3100k ( real Firefox entry is more in size)