nao aceita validacao
Ola pessoal,
estou desenvolvendo um sistema em php que ha umas coisas em javascript.
e esta dando erro quando tento validar um campo atravez de onclick, aquele famoso dilema de que os campos nao podem ficar em branco e com valor Selecione ele funciona numa boa so que quando faco inclusao de um outro arquivo cabecalho.php ele nao le o if na funcao onde se encontra tal condicao e sem esse arquivo ligado a pagina funciona normalmente.
que que pode ser:
me arquivo cabecalho.php
<?php //include("Config/SgiConnect.php"); / conexao com o bd/ ?>
<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="[http://www.w3.org/1999/xhtml">](http://www.w3.org/1999/xhtml)
<head>
<?php header("Content-Type: text/html; charset=ISO-8859-1",true) ?>
<meta http-equiv="content-type" content="text/html; charset=text/html; charset=UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="br" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-language" content="pt-br" />
<meta name="robots" content="index,follow" />
<meta name="description" content="HotSite semana cientifica, orientado a objeto escrito em php" />
<meta name="author" content="Carlos Alberto Santos Matias" />
<meta name="copyright" content="Copyright © 2008-2009" />
<link rel="SHORTCUT ICON" href="img/logoFaseh.png" type="image/x-icon" /><!-- -->
<!--
*******
*******
*******
Carlos Alberto Santos Matias
Contato
(31) 8852-8127
cs-matias@hotmail.com
PHP
*******
*******
*******
-->
<!-- -->
<title>.:: FASEH Faculdade da Saúde e Ecologia Humana - Semana Científica ::.</title>
<link rel="stylesheet" type="text/css" href="Css/Style.css" />
<script type="text/javascript" src="Js/Scripts.js"></script>
</head>
<body><!-- imgCabec -->
<table align="center" cellpadding="0" cellspacing="0" style="margin-top:-15px;background:url(img/img_faseh_topo1.png);">
<tr>
<td style="width:779px;height:180px;">
</td>
</tr>
</table><!-- Fim imgCabec -->
<!-- conteudo -->
<table align="center" cellpadding="0" cellspacing="0" style="background-color:#fff;margin-top:7px;">
<tr>
<td valign="top" style="width:779px;height:351px;">
<div id="menuCabec" style="margin-top:-8px;">
<table align="center" cellpadding="0" cellspacing="2">
<tr>
<td>
<div id="home" class="divBotMenu" onclick="window.location='index.php';">
<center class="textomenu">Página Inicial</center>
</div>
</td>
<td>
<div id="progra" class="divBotMenu" onclick="window.location='programacao.php';">
<center class="textomenu">Programação</center>
</div>
</td>
<td>
<div id="inscri" class="divBotMenu" onclick="window.location='inscricao.php';">
<center class="textomenu">Inscrições</center>
</div>
</td>
<td>
<div id="organi" class="divBotMenu" onclick="window.location='organizacao.php';">
<center class="textomenu">Organização</center>
</div>
</td>
<td>
<div id="traba" class="divBotMenu" onclick="window.location='eventos.php';">
<center class="textomenu">Eventos</center>
</div>
</td>
<td>
<div id="faleC" class="divBotMenu" onclick="window.location='anais.php';">
<center class="textomenu">
Anais
</center>
</div>
</td>
</tr>
</table>
</div>
<div id='dicCorpo'>
que que pode ser hem?
o arquivo js que esta anexo ao cabecalho contem o seguinte conteudo:
function returnChar(StrId1, StrId2){
par1 = $Peg(StrId1).value.length;
$Peg(StrId2).innerHTML = par1+1;
par2 = $Peg(StrId2).innerHTML;
return par2;
}
function maxLength(obj, limit)
{
if (obj.value.length >= limit)
{
obj.value = obj.value.substring(0, limit-1);
}
}
nada a ver neh mas vai saber se tem
Discussão (5)
Carregando comentários...