Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Problems using CSS


Message #1 by "J Donahue" <jdonahue@f...> on Thu, 18 Apr 2002 20:20:19
I have included some Microsoft defined items for CSS style sheets within 
a VB program.  The code segment is as follows in the <head>:
<script>
window.onload=fnInit;
function fnInit(){
oDiv.style.left=document.body.clientWidth/2 - oDiv.offsetWidth/2;
oDiv.style.top=oMark.offsetHeight + oMark.offsetTop + 10;
document.recalc();
}
</script>
I get an error upon executing that says 'object oDiv is not defined'.  
Anyone know why I'd get that error?  Am I not importing something 
properly?  My only imports are as follows:
<%@Import Namespace="System.Data.OleDb" %>
<%@Import Namespace="System.Data" %>
It runs fine on my computer, but not on my co-workers.  He's the one 
actually getting the error.  THANKS!!!

  Return to Index