HighDots Forums  

"ErRoR oN pAgE"

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss "ErRoR oN pAgE" in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
makan_amini
 
Posts: n/a

Default "ErRoR oN pAgE" - 06-23-2004 , 10:48 AM






Hi

I have created a website and after much hard work, it looks good.

But I still have one big problem. When I check the site in Internet Explorer
(6), I get an "error on page" message. Details:

Line: 36
Char: 7
Error: "Menuitem1" is undenifined.
Code: 0


And this is how my html code looks like, (Line 30-50):

theobj.thediv.style.visibility="visible";
}

function closesubnav(event){
if ((event.clientY <48)||(event.clientY > 107)){
for (var i=1; i<= numofitems; i++){
var shutdiv =eval('menuitem'+i+'.thediv');
shutdiv.style.visibility='hidden';
}
}
}
// -->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);

Thanks!


Reply With Quote
  #2  
Old   
Kindler Chase
 
Posts: n/a

Default Re: "ErRoR oN pAgE" - 06-23-2004 , 10:52 AM






makan_amini wrote:
Quote:
Hi

I have created a website and after much hard work, it looks good.

But I still have one big problem. When I check the site in Internet
Explorer (6), I get an "error on page" message. Details:
YoU nEeD tO pOsT tHe UrL oF tHe PaGe.

--
kindler chase
http://www.ncubed.com
Home of SuperInvoice: The Online Invoicing Application.
Organize your billing process and impress your clients.

news://news.ncubed.com/support
n3 Support Group




Reply With Quote
  #3  
Old   
makan_amini
 
Posts: n/a

Default Re: "ErRoR oN pAgE" - 06-23-2004 , 11:14 AM



OK thanks. But that was to expensive....You don't know how to solve the problem?

Reply With Quote
  #4  
Old   
Kindler Chase
 
Posts: n/a

Default Re: "ErRoR oN pAgE" - 06-23-2004 , 12:35 PM



makan_amini wrote:
Quote:
OK thanks. But that was to expensive....You don't know how to solve
the problem?
You need to post the url of the page to debug the problem. The code snippet
you provided is only a cog in the mechanics.

--
kindler chase
http://www.ncubed.com
Grooving with SuperInvoice

news://news.ncubed.com/support
n3 Support Group




Reply With Quote
  #5  
Old   
makan_amini
 
Posts: n/a

Default Re: "ErRoR oN pAgE" - 06-23-2004 , 01:03 PM



Aha ok. Here is the URL:

http://www.hdator.com

I hope that helps!

Reply With Quote
  #6  
Old   
makan_amini
 
Posts: n/a

Default Re: "ErRoR oN pAgE" - 06-23-2004 , 04:44 PM



http://www.hdator.com I think I posted the wrong link before..

Reply With Quote
  #7  
Old   
makan_amini
 
Posts: n/a

Default Re: "ErRoR oN pAgE" - 06-24-2004 , 10:16 AM



Nobody that can halp me?

Reply With Quote
  #8  
Old   
Gary White
 
Posts: n/a

Default Re: "ErRoR oN pAgE" - 06-24-2004 , 10:39 AM



On Thu, 24 Jun 2004 14:16:52 +0000 (UTC), "makan_amini"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
Nobody that can halp me?

Your style sheet, your Flash movie, and most of the images are linked to
files on your hard drive instead of on the server. For example:

<link rel="stylesheet"
href="file:///C|/Backup/Root/23.6/emx_nav_left.css" type="text/css">



Gary


Reply With Quote
  #9  
Old   
makan_amini
 
Posts: n/a

Default Re: "ErRoR oN pAgE" - 06-24-2004 , 12:03 PM



OK thank you for the warning. Does it looks good now?

Reply With Quote
  #10  
Old   
Gary White
 
Posts: n/a

Default Re: "ErRoR oN pAgE" - 06-24-2004 , 12:23 PM



On Thu, 24 Jun 2004 16:03:32 +0000 (UTC), "makan_amini"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
OK thank you for the warning. Does it looks good now?

It's better. You have the following script at the bottom of the page:

<script type="text/javascript">
<!--
var menuitem1 = new menu(7,1,"hidden");
var menuitem2 = new menu(7,2,"hidden");
var menuitem3 = new menu(7,3,"hidden");
var menuitem4 = new menu(7,4,"hidden");
var menuitem5 = new menu(7,5,"hidden");
var menuitem6 = new menu(7,6,"hidden");
var menuitem7 = new menu(7,7,"hidden");
// -->
</script>

That script creates the menu objects, but the objects are referred to
earlier in the source code and called by the onMouseMove event, so if a
user moves the mouse before the page completely loads, you'll get
JavaScript errors. I would suggest you move that script up into the
document's <head> area.

Other than that, you have a great many things set to be 1024 pixels
wide. For example:

#pagecell1{
position:absolute;
top: 112px;
left: 2%;
right: 2%;
width:1024px;
background-color: #ffffff;
}

Consider that, even if a user has a 1024 pixel wide screen and their
browser is maximized, they will have the window borders and scroll bars
making the effective width of the browser's viewport more like 990-1000
pixels wide. If they also have a sidebar showing bookmarks or something,
the window may be more like 750 pixels wide. Your page is virtually
guaranteed to have a horizontal scroll bar for just about every user.


Gary


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.