Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Class not registered

Status
Not open for further replies.

TWillard

Programmer
Apr 26, 2001
263
US
I am getting the following error. Can anyone shed some light on what this means? Can anyone point me in the right direction to solve this problem.

Thanks,

Line: 31
Char: 3
Error: Class not registered
Code: 0
URL:
NOTE: This page is accessed by several users and it is working fine except for one PC. The actual error comes from an onClick event, which calls a function that contains a window.open an eval call and passing variable values from the opening document to the popup window.
 
TWillard,

show the code. ======================================

if (!succeed) try();
-jeff
 

ONCLICK CALL - FROM PAGE 1
--------------------------
<a href=&quot;#&quot; onClick=&quot;address('FORM_A','strBillTo','strBillToName','BILL_TO');&quot;

JAVACRIPT FUNCTIONS - FROM PAGE 1
---------------------------------
function address(frm,id,name,type){
var CustomerNo
var message

//get customer no
CustomerNo = eval(&quot;document.&quot;+frm+&quot;.strCustomerNo.value&quot;);

//declare opener id field
eval(&quot;window.addr_id=document.&quot;+frm+&quot;.&quot;+id);

//declare opener name field
eval(&quot;window.addr_name=document.&quot;+frm+&quot;.&quot;+name);

//declare opener customer_no field, used in bill_to only
eval(&quot;window.customer_no=document.&quot;+frm+&quot;.strCustomerNo&quot;);
var url = &quot;address.asp?TYPE=&quot; + type;

//open window
launchCenter(url, 'address', '200', '500');
}

////////////
/// stadard customizable window.open function
///////////
function launchCenter(url, name, height, width) {
var str = &quot;height=&quot; + height + &quot;,innerHeight=&quot; + height;
str += &quot;,width=&quot; + width + &quot;,innerWidth=&quot; + width;
str += &quot;,status=yes&quot;;

if (window.screen) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;

var xc = (aw - width) / 2;
var yc = (ah - height) / 2;

str += &quot;,left=&quot; + xc + &quot;,screenX=&quot; + xc;
str += &quot;,top=&quot; + yc + &quot;,screenY=&quot; + yc;
}
window.open(url, name, str);
}


JAVACRIPT FUNCTIONS - FROM PAGE 2
CALLED FROM <body onload=&quot;setup()&quot;>
---------------------------------
function setup(){

this.addr_id = opener.addr_id;
this.addr_name = opener.addr_name;
this.customer_no = opener.customer_no;
}
 
I performed an uninstall/reinstall of IE 6.0 and it solved my problem. I am still curious as to why this happened? Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top