I am starting a data recovery business. Now, the key to data recovery is accuracy and speed. The challenge is, being accurate translates (at least by hand) to being slow, and being speedy translates to being less accurate. This risks a person’s data, which i simply can’t afford to do!
SO: to solve the problem, i am making a suite of JavaScript’ed HTML forms to make the complex calculations more accurately for me. Between the soon-to-be suite of JavaScripts, and a good hex editor with disk-open, i can have both the speed AND the accuracy!
Next up: the problem. I am getting an “Object expected” error at line 92.
LINE 92:
[code=php]<input type=button onclick=”dothemath()” value=”Calculate”>
This is the button to do the calculation. The other form elements are right alongside this button, in a table.
DotheMath():
[code=php]
function DotheMath()
{
//input
with (document.disk)
{
BPB_RootEntCnt = .BPB_RootEntCnt;
BPB_BytsPerSec = .BPB_BytsPerSec;
BPB_FATSz16 = .BPB_FATSz16;
BPB_FATSz32 = .BPB_FATSz32;
BPB_ResvdSecCnt = .BPB_ResvdSecCnt;
BPB_NumFATs = .BPB_NumFats;
}
//process
RootDirSectors = ((BPB_RootEntCnt * 32) + (BPB_BytsPerSec – 1)) / BPB_BytsPerSec;
if (BPB_FATSz16 != 0)
FATSz = BPB_FATSz16;
else
FATSz = BPB_FATSz32;
FirstDataSector = BPB_ResvdSecCnt + (BPB_NumFATs * FATSz) + RootDirSectors;
//output
document.disk.output.value = FirstDataSector;
}
I’ll just put my function there, just in case it’s the problem. So, can anyone tell me what’s the problem with line 92? (if you need more info i can provide it, just ask!)
Thanks!
Any and [b]ALL