if you generate dynamic content through JavaScript by
document.write('<html><head><h2>'+ varHeading +'</h2></head><body></body></html>');
this page will works fine but if you generate more dynamic content from this page onward it will not display anything without any error.
Solution:
every phase should end with document.close();
Tuesday, April 21, 2009
MYSql 5 GROUP BY query not support Field Name "div"
in MySql 5 query...
SELECT std,div,rollno,marks FROM result_data GROUP BY std,div
gives Error...
Error is due to field name div
Solution: Change Field Name div -> divi or other.
It works fine with MySql 4.
SELECT std,div,rollno,marks FROM result_data GROUP BY std,div
gives Error...
Error is due to field name div
Solution: Change Field Name div -> divi or other.
It works fine with MySql 4.
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;
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.
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
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.
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.
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"
Solution:
Please put xpi filename with extension
for example "helloworld.xpi" instead of "helloworld"
Subscribe to:
Posts (Atom)