Ir para conteúdo
Fórum Script Brasil

fercosmig

Moderadores
  • Total de itens

    4.048
  • Registro em

  • Última visita

Posts postados por fercosmig

  1. http://www.geocities.com/SiliconValley/Cam.../delphinet.html

    fiz uma pesquisa ae

    trecho:

    Esta página chama o executável no servidor, passando para ele o código como parâmetro. O executável passa a rodar no servidor, e abre um banco de dados qualquer, localiza dos dados referentes ao código, monta uma página HTML na hora incluindo estes dados, e a devolve para o cliente web (o browser do usuário), que feliz da vida consulta seu extrato. Ou o próprio usuário poderia invocar o executável diretamente através de seu browser, informando algo assim no endereço URI:

    arquivo executavel não roda no browser.. pode funcionar no servidor e retornar um html...

    isto é CGI, atualmente:

    ISAPI = Internet Server Application Programming Interface (Microsoft)

    NSAP = Netscape Application Programming Interface (Netscape)

    dá uma lida no link ae

    abraços

  2. <script language=Javascript>

    <!--

    var copytoclip=1

    function HighlightAll(theField) {

    var tempval=eval("document."+theField)

    tempval.focus()

    tempval.select()

    if (document.all&&copytoclip==1){

      therange=tempval.createTextRange()

      therange.execCommand("Copy")

      window.status="Copia para a área de transferência!"

      setTimeout("window.status=''",2400);

      }

    }

    -->

    </script>

    <form name="form5">

    <textarea name="select" rows="6" cols="65"></TEXTAREA>

    </form>

    <a href="javascript:HighlightAll('form5.select')">Copiar</a>

    testado, ok

    abraços

  3. <form name="form1" method="post" action="" onSubmit="return validation();submete();" >

    NOME: <input type="text" maxlength="50" name="nome" size="12" />

    CPF: <input type="text"name="cpf" size="12" maxlength="11" />

    <input type="submit" value="Inserir">

    </form>

    não tenho certeza não, mas acho que é assim

  4. cara.. eu só consegui fazer funcionar assim... mas se forem muitas opções fica um código enorme.

    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script language="JavaScript">
    function desabilita() {
    if (document.formulario.inibe.checked) {
    document.getElementById('time1').disabled = false;
    document.getElementById('time2').disabled = false;
    document.getElementById('time3').disabled = false;
    document.getElementById('time4').disabled = false;
    document.getElementById('time5').disabled = false;
    document.getElementById('time6').disabled = false;
    document.getElementById('time7').disabled = false;
    document.formulario.botao.disabled = false;
    } else {
    document.getElementById('time1').disabled = true;
    document.getElementById('time2').disabled = true;
    document.getElementById('time3').disabled = true;
    document.getElementById('time4').disabled = true;
    document.getElementById('time5').disabled = true;
    document.getElementById('time6').disabled = true;
    document.getElementById('time7').disabled = true;
    document.formulario.botao.disabled = true;
    }
    }
    </script>
    </head>
    <body>
    <form name="formulario">
    Qual é o time do seu coração? <br /><br />
    <input type="radio" name="resp" id="time1" disabled="true" value="Corinthians" /> Corinthians <br />
    <input type="radio" name="resp" id="time2" disabled="true" value="Palmeiras" /> Palmeiras <br />
    <input type="radio" name="resp" id="time3" disabled="true" value="Fluminense" /> Fluminense <br />
    <input type="radio" name="resp" id="time4" disabled="true" value="Botafogo" /> Botafogo <br />
    <input type="radio" name="resp" id="time5" disabled="true" value="Grêmio" /> Grêmio <br />
    <input type="radio" name="resp" id="time6" disabled="true" value="Internacional" /> Internacional <br />
    <input type="radio" name="resp" id="time7" disabled="true" value="Cruzeiro" /> Cruzeiro <br /><br />
    <input type="checkbox" name="inibe" onclick="desabilita();" /> Declaro nunca ter sido torcedor do São Paulo<br /><br />
    <input type="button" name="botao" value="OK" onclick="alert('Muito bem!')" disabled="true" />
    </form>
    </body>
    </html>

  5. um exemplo que se não me engano peguei aqui no forum. funcionando ok.

    <html>

    <head>

    <title>Untitled</title>

    <script language=javascript>

    //MÁSCARA DE VALORES

    function txtBoxFormat(objeto, sMask, evtKeyPress) {

    var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla;

    if(document.all) { // Internet Explorer

    nTecla = evtKeyPress.keyCode; }

    else if(document.layers) { // Nestcape

    nTecla = evtKeyPress.which;

    }

    sValue = objeto.value;

    // Limpa todos os caracteres de formatação que

    // já estiverem no campo.

    sValue = sValue.toString().replace( "-", "" );

    sValue = sValue.toString().replace( "-", "" );

    sValue = sValue.toString().replace( ".", "" );

    sValue = sValue.toString().replace( ".", "" );

    sValue = sValue.toString().replace( "/", "" );

    sValue = sValue.toString().replace( "/", "" );

    sValue = sValue.toString().replace( ":", "" );

    sValue = sValue.toString().replace( ":", "" );

    sValue = sValue.toString().replace( "(", "" );

    sValue = sValue.toString().replace( "(", "" );

    sValue = sValue.toString().replace( ")", "" );

    sValue = sValue.toString().replace( ")", "" );

    sValue = sValue.toString().replace( " ", "" );

    sValue = sValue.toString().replace( " ", "" );

    fldLen = sValue.length;

    mskLen = sMask.length;

    i = 0;

    nCount = 0;

    sCod = "";

    mskLen = fldLen;

    while (i <= mskLen) {

    bolMask = ((sMask.charAt(i) == "-") || (sMask.charAt(i) == ".") || (sMask.charAt(i) == "/") || (sMask.charAt(i) == ":"))

    bolMask = bolMask || ((sMask.charAt(i) == "(") || (sMask.charAt(i) == ")") || (sMask.charAt(i) == " "))

    if (bolMask) {

    sCod += sMask.charAt(i);

    mskLen++; }

    else {

    sCod += sValue.charAt(nCount);

    nCount++;

    }

    i++;

    }

    objeto.value = sCod;

    if (nTecla != 8) { // backspace

    if (sMask.charAt(i-1) == "9") { // apenas números...

    return ((nTecla > 47) && (nTecla < 58)); } // números de 0 a 9

    else { // qualquer caracter...

    return true;

    } }

    else {

    return true;

    }

    }

    </script>

    </head>

    <body>

    Data: <input type="text" size="20" maxlength="10" onkeypress="return txtBoxFormat(this, '99/99/9999', event);"><br>

    CPF: <input type="text" size="20" maxlength="14" onkeypress="return txtBoxFormat(this, '999.999.999-99', event);">

    </body>

    </html>

    abraços

×
×
  • Criar Novo...