Ir para conteúdo
Fórum Script Brasil

Eder_Portela

Membros
  • Total de itens

    2
  • Registro em

  • Última visita

Sobre Eder_Portela

  • Data de Nascimento 01/11/1983

Perfil

  • Gender
    Male
  • Location
    Brasilia

Eder_Portela's Achievements

0

Reputação

  1. Testei e além de aparecer desconfigurado, não aconteceu nada. Será que não tem como rodar no IE, pois nas lojas esse é o navegador padrão. Obrigado pela atenção.
  2. Olá pessoal, estou com uma dúvida tremenda com relação a um script. Quando clico em "enviar" ele mostra no rodapé da página "erro na página", porém o código que usei como base funciona normalmente. Gostaria que vocês me ajudassem a descobrir o problema, pois preciso muito disso funcionando aqui na empresa. Ah, aproveitando a oportunidade, gostaria de que fosse implementado uma opção que me permitisse o envio dos dados por e-mail(pode ser usando o outlook express). Obrigado a todos e segue o código: <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=windows-1252"> <META name="GENERATOR" content="Microsoft FrontPage 4.0"> <META name="ProgId" content="FrontPage.Editor.Document"> <TITLE>Atendimento CallCenter</TITLE> <STYLE type="text/css"><!-- table, body { font-size: 14px; margin-left: 1px; margin-top: 1px } input, select { font-family: Arial Narrow; font-size: 14x; font-weight: bold } --> </STYLE> &lt;script language="JavaScript"> <!-- function CadCSV() { var fso, f, r, strVariable, site ,nome, filial, telefone, celular, necessidade, qual, filial, paga, pagamento, produtos, referencia; var ForAppending = 8; var strVariable = "Voltar"; var BackForm = "Nova Tentativa"; var site = "Teste de envio de relatório para CallCenter"; strVariable = strVariable.link("scripts3.htm"); BackForm = BackForm.link("java script:window.history.back()"); site = site.link("http://www.drogafuji.com.br"); nome = document.all.nome.value; endereco = document.all.endereco.value; referencia = document.all.referencia.value; filial = document.all.filial.value; telefone = document.all.telefone.value; celular = document.all.celular.value; filial = document.all.filial.value; necessidade = document.all.necessidade.value; qual = document.all.qual.value; paga = document.all.paga.value; pagamento = document.all.pagamento.value; produtos = document.all.produtos.value; referencia = document.all.referencia.value; fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.OpenTextFile("c:\\UserCad.csv", ForAppending, true); f.WriteLine("|Nome:" + nome + "|;" + "|Endereço:" + endereco + "|;" + "|Referência:" + referencia + "|;" + "|Telefone:" + telefone + "|;" + "|Celular:" + celular + "|;" + "|Necessidade:" + necessidade + "|;" + "|Qual:" + qual + "|;" + "|Paga:" + paga + "|;" + "|Pagamento:" + pagamento + "|;" + "|Produtos:" + produto + "|;" +); f.Close(); if (f) { document.write("<title>Resultado do cadastro de "+ nome + "</title>"); document.write("<font size=3><b>" + nome + "</b>, seu cadastro foi realizado com sucesso!"); document.write("<BR>Confira os dados que serão enviados ao CallCenter :<br><br>"); document.write("</font><br>Filial: <font color=darkblue>" + filial + "</font><br>Referência: <font color=darkblue>" + referencia + "</font><br>telefone: <font color=darkblue>" + telefone + "</font><br>Celular: <font color=darkblue>" + celular + "</font><br>Necissita buscar em alguma filial ?: <font color=darkblue>" + necessidade + "</font><br>Qual ?: <font color=darkblue>" + qual + "</font><br>Paga ?: <font color=darkblue>" + paga + "</font><br>Forma de Pagamento: <font color=darkblue>" + pagamento + "</font><br>Produtos: <font color=darkblue>" + produto +"</font><br>"); document.write("<br><br>Copie e guarde esses dados.<br>" + strVariable); document.write("<br><br>Bem-vindo a " + site + "<br><br>"); } else { document.write("<title>Erro do cadastro!</title>"); document.write("Desculpe, devido a um erro não conseguimos realizar seu cadastro, tente novamente mais tarde.<br>" + BackForm); } return®; } --> </script> </HEAD> <BODY> <TABLE border="0" cellpadding="0" cellspacing="1" width="300" align="left"> <TBODY> <TR><TD valign="top" align="left"> <FORM action="java script:CadCSV();" language="JavaScript" method="post"> <FIELDSET style="width:300px; border:1px solid darkblue; height:170px"> <LEGEND>Dados Pessoais</LEGEND> Nome:<BR> <INPUT type="text" name="nome" size="55" id="nome"><BR> Endereço:<BR> <INPUT type="text" name="endereco" size="55" id="endereco"><BR> Ponto de Referência:<BR> <INPUT type="text" name="referencia" size="55" id="referencia"><BR> Telefone:<BR> <INPUT type="text" name="telefone" size="25" maxlength="25" id="telefone"><BR> Celular:<BR> <INPUT type="text" name="celular" size="25" maxlength="25" id="celular"><BR> Necessita buscar em alguma filial?<BR> <SELECT name="necessidade" size="1" id="necessidade"> <OPTION value=></OPTION> <OPTION value="Sim">Sim</OPTION> <OPTION value="não">Não</OPTION> </SELECT><BR> Qual?<BR> <SELECT name="filial" size="1" id="filial"> <OPTION selected></OPTION> <OPTION value="Filial 01">Filial 01</OPTION> <OPTION value="Filial 02">Filial 02</OPTION> <OPTION value="Filial 03">Filial 03</OPTION> <OPTION value="Filial 04">Filial 04</OPTION> <OPTION value="Filial 05">Filial 05</OPTION> <OPTION value="Filial 06">Filial 06</OPTION> <OPTION value="Filial 07">Filial 07</OPTION> <OPTION value="Filial 08">Filial 08</OPTION> <OPTION value="Filial 09">Filial 09</OPTION> <OPTION value="Filial 10">Filial 10</OPTION> <OPTION value="Filial 11">Filial 11</OPTION> <OPTION value="Filial 12">Filial 12</OPTION> <OPTION value="Filial 13">Filial 13</OPTION> <OPTION value="Filial 14">Filial 14</OPTION> <OPTION value="Filial 15">Filial 15</OPTION> <OPTION value="Filial 16(Deposito)">Filial 16(Depósito)</OPTION> <OPTION value="Filial 17">Filial 17</OPTION> <OPTION value="Filial 18">Filial 18</OPTION> <OPTION value="Filial 19">Filial 19</OPTION> <OPTION value="Filial 20">Filial 20</OPTION> <OPTION value="Filial 21">Filial 21</OPTION> <OPTION value="Filial 22">Filial 22</OPTION> <OPTION value="Filial 23">Filial 23</OPTION> <OPTION value="Filial 24">Filial 24</OPTION> <OPTION value="Filial 25">Filial 25</OPTION> <OPTION value="Filial 26">Filial 26</OPTION> <OPTION value="Filial 27">Filial 27</OPTION> <OPTION value="Filial 28">Filial 28</OPTION> <OPTION value="Filial 29">Filial 29</OPTION> <OPTION value="Filial 30">Filial 30</OPTION> </SELECT><BR> Esta solicitação já está paga ?<BR> <SELECT name="paga" size="1" id="paga"> <OPTION selected></OPTION> <OPTION value="Sim">Sim</OPTION> <OPTION value="Não">Não</OPTION> </SELECT><BR> Forma de Pagamento:<BR> <SELECT name="pagamento" size="1" id="pagamento"> <OPTION selected></OPTION> <OPTION value="01">01 - Dinheiro</OPTION> <OPTION value="02">02 - Cheque</OPTION> <OPTION value="03">03 - Visa</OPTION> <OPTION value="04">04 - Master</OPTION> <OPTION value="05">05 - Fujicard</OPTION> <OPTION value="06">06</OPTION> <OPTION value="07">07</OPTION> <OPTION value="08">08</OPTION> <OPTION value="09">09</OPTION> <OPTION value="10">10</OPTION> <OPTION value="11">11</OPTION> <OPTION value="12">12</OPTION> <OPTION value="13">13</OPTION> <OPTION value="14">14</OPTION> <OPTION value="15">15</OPTION> </SELECT><BR> Produtos:<BR> <INPUT type="text" name="produtos" size="55" id="produtos"><BR> </FIELDSET></TD> </TR> <TR><TD valign="bottom" align="left"><INPUT type="submit" value="Enviar" name="send"><INPUT type="reset" value="Recomeçar" name="resetar"></TD> </TR> </TBODY> </TABLE> </FORM> </BODY> </HTML> Obrigado a todos pela atenção e aguardo um retorno.
×
×
  • Criar Novo...