HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

error on page when logon website
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> Javascript
View previous topic :: View next topic  
Author Message
pim1986



Joined: 01 Mar 2006
Posts: 2

Posted: Wed Mar 01, 2006 7:45 am     error on page when logon website  

Hello i'm very new here so i hope that someone can help me,

I am working on website that i have'nt build myself. So there starts the problem. When i open the website and going to the page that i need to view there is no problem. But when i need to log in to the registered area i am getting an 'error on page'. I know very little about JavaScript more about HTML. Hope someone can help me!!

Here you can view the source: (it says the error is on line 40 and that's exactly where the </head> ends.)



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/bg_content.gif);
background-attachment: scroll;
background-repeat: no-repeat;
background-color: FFF2BD;
}
-->
</style>
<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);
//-->
</script>
</head>

<body bgcolor="#FFF2BD" onLoad="MM_showHideLayers('Ingelogd','','show')" >
<div id="Ingelogd" style="position:absolute; width:265px; height:25px; z-index:4; left: 240px; top: 47px; visibility: visible;">
<table border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td class="body"><strong>U bent ingelogd als Klimop</strong> | <a href=logoff.asp>Logout</a></td>
</tr>
</table>
</div>
<div id="foto1" style="position:absolute; z-index:2; left: 519px; top: 12px; visibility: visible;"><img src="images/image_top_2.gif" width="76" height="76"> </div>
<div id="fotos2" style="position:absolute; z-index:3; left: 640px; top: 0px; visibility: visible;"><img src="images/image_top_1.gif" width="125" height="102">
</div>

<div id="logo" style="position:absolute; z-index:1; left: 0px; top: 12px; visibility: visible">
<a href="index.asp"><img src="images/logo.gif" alt="Homepage" width="126" height="67" border="0"></a>
</div>

<table border="0" cellspacing="0" cellpadding="0" width="100%" height="67">
<tr>
<td width="765"><img src="images/spacer.gif" width="1" height="1"></td>
<td bgcolor="#FF9900"><img src="images/spacer.gif" width="1" height="1"></td>
</tr>
</table>

<table border="0" cellspacing="0" cellpadding="0" height="37">
<tr>
<td height="37"><img src="images/spacer.gif" width="1" height="1"></td>
</tr>
</table>

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75" valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
<td width="475" align="left" valign="top" class="body"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><ecm_dcontent>
<span class="kop">Welkom op de homepage van het ledengedeelte</span>
</ecm_dcontent>
</td>
</tr>
</table>
<p>&nbsp;<ecm_collection>
<!--Ektron CMS Collection --><!--/Ektron CMS Collection -->
</ecm_collection></p></td>
<td width="20"><img src="images/spacer.gif" width="20" height="1"></td>
<td valign="top" width="210" class="sub">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="36" valign="top"><a href="clienten.asp"><img src="images/nav_clienten.gif" width="200" height="16" border="0"></a> </td>
</tr>
<tr>
<td height="36" valign="top" class="body"><a href="leden.asp"><img src="images/nav_leden.gif" width="200" height="16" border="0"></a><br>
<ecm_collection>
<!--Ektron CMS Collection --><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><img name="Bullet" src="images/nav_bullet_off.gif" width="11" height="11" align="absmiddle">&nbsp;<a href="/leden.asp?id=22">Vacatures</a></td></tr><tr><td><img name="Bullet" src="images/nav_bullet_off.gif" width="11" height="11" align="absmiddle">&nbsp;<a href="/leden_form.asp?ekfrm=47">Informatieformulier starters</a></td></tr></table><!--/Ektron CMS Collection -->
</ecm_collection>
</td>
</tr>
<tr>
<td>
<img src="images/nav_bullet_off.gif" width="11" height="11" align="absmiddle"> <a href="beheer/logon_admin.asp"><b>Afgeschermd gedeelte</b></a>
</td>
</tr>
<tr>
<td>
<ecm_collection>
<!--Ektron CMS Collection --><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><img name="Bullet" src="images/nav_bullet_off.gif" width="11" height="11" align="absmiddle">&nbsp;<a href="/leden_leden_secure.asp?id=101">Documenten downloads</a></td></tr></table><!--/Ektron CMS Collection -->
</ecm_collection>
</td>
</tr>
<tr>
<td>
<img src="images/nav_bullet_off.gif" width="11" height="11" align="absmiddle"> <a href="leden_nieuws_secure.asp">Ledennieuws</a><br><br>
</td>
</tr>
<tr>
<td height="36" valign="top"><a href="thuiszorgorg.asp"><img src="images/nav_thuiszorgorg.gif" width="200" height="16" border="0"></a></td>
</tr>
<tr>
<td height="36" valign="top"><a href="samenwpartners.asp"><img src="images/nav_samenwpartners.gif" width="200" height="16" border="0"></a></td>
</tr>
<tr>
<td height="36" valign="top"><a href="voorzieningen.asp"><img src="images/nav_woonzorgvoorz.gif" width="200" height="16" border="0"></a></td>
</tr>
<tr>
<td height="36" valign="top"><a href="nieuws.asp"><img src="images/nav_nieuws.gif" width="200" height="16" border="0"></a></td>
</tr>
</table>

</td>
</tr>
</table>
<!--begin witruimte onderaanpagina-->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/spacer.gif" width="1" height="40"></td>
</tr>
</table>
<!--einde witruimte onderaanpagina-->

</body>
</html>


Corey Bryant



Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

Posted: Wed Mar 01, 2006 8:21 am      

What are you using to protect the page?

_________________
Corey
Loud Commerce | Loud Worx | Toll Free Solutions
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

Posted: Wed Mar 01, 2006 9:07 am      

Change

Code:
<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);
//-->
</script>


to

Code:
<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);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
pim1986



Joined: 01 Mar 2006
Posts: 2

Posted: Thu Mar 02, 2006 12:24 am      

well i have changed the code as you said. AND IT WORKED!!!
i'm not sure wat you did but it worked!!

The website is working with a cms system. And on that page (that was'nt working) you can logon and edit the news items.

Thanks!!
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> Javascript
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group