Visualizzazione dei risultati da 1 a 6 su 6

Discussione: Submit

  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2001
    Messaggi
    193

    Submit

    Ciao a tutti ho un piccolo problema che spero mi possiate risolvere, faccio la submit di una form ma la finestra che viene visualizzata ha il resizable=no come posso fare per cambiare questa impostazione devo per forza aprire una nuova finestra

    Ciao Martina

  2. #2
    arcoseno
    Guest
    č un problema da postare in javascript. pero'prima che un moderatore sposti questo 3d posta il codice che hai.

  3. #3
    Utente di HTML.it L'avatar di floyd
    Registrato dal
    Apr 2001
    Messaggi
    3,837
    prima del submit prova a fare
    self.resizeTo(700, 400)

  4. #4
    Utente di HTML.it
    Registrato dal
    Jul 2001
    Messaggi
    193

    submit

    secondo te c'č un modo per per abilitare o disabilitare da codice il resizable della finestra?

    Ciao Martina

  5. #5
    arcoseno
    Guest
    si, se posti il codice lo vediamo.

  6. #6
    Utente di HTML.it
    Registrato dal
    Jul 2001
    Messaggi
    193

    submit

    Ecco la pagina asp tieni presente che la finestra dove viene visualizzato il codice č con il resizable=no:
    <%@ Language=VBScript %>
    <%
    Option Explicit

    Dim Dbconn, lres, Direzione, Utility, Filtro

    Response.Expires = -1

    if Session("validuser")=false then
    Response.Redirect "login.asp"
    end if

    Set Dbconn=Server.CreateObject("sipecobj.CDATABASE")
    Dbconn.ConnectionString = Application("strconn")

    lres = Dbconn.Connect
    Set Direzione=Server.CreateObject("sipecobj.CLST_DIREZ IONI_2003")
    Set Direzione.DBConnection=Dbconn.ConnectObject

    Set Utility = Server.CreateObject("sipecobj.CUTILITY")
    %>
    <html>
    <head>
    <title>SIPeC - Filtro Report</title>
    <style>
    body {
    scrollbar-face-color: #acbacc;
    scrollbar-arrow-color: #FFFFFF;
    scrollbar-base-color: #acbacc;
    scrollbar-track-color: #FFFFFF;
    }
    </style>
    </head>
    <script language="javascript">
    var i
    function DettaglioProdottiGestionali()
    {
    if (elenco.obt[3].checked==true)
    {
    elenco.obt[4].disabled=false;
    }else
    {
    elenco.obt[4].checked=false;
    elenco.obt[4].disabled=true;
    elenco.obt[5].checked=false;
    elenco.obt[5].disabled=true;
    }
    }

    function DettaglioProdottiGestionaliPianific()
    {
    if (elenco.obt[4].checked==true)
    {
    elenco.obt[5].disabled=false;
    }else
    {
    elenco.obt[5].checked=false;
    elenco.obt[5].disabled=true;
    }
    }
    function FT1()
    {
    elementi=document.elenco.elements;
    for (i=0; i<elementi.length; i++)
    {
    if (elementi[i].type=='checkbox')
    {

    if (elenco.FT.checked==true)
    {
    elementi[i].disabled=true;
    elenco.FT.disabled=false;
    }else
    elementi[i].disabled=false;
    }
    }
    }
    function annulla(){
    window.close();
    }
    function SelezionaTutti()
    {
    elementi=document.elenco.elements;
    for (i=0; i<elementi.length; i++)
    {
    if ((elementi[i].type=='checkbox') && (elementi[i].checked==false) && (elementi[i].name!="Totobt") && (elenco.Totobt.status==true))
    {
    elementi[i].checked=true;
    }
    else if ((elenco.Totobt.status==false) && (elementi[i].type=='checkbox'))
    {
    if (elementi[i].name!="Totobt")
    elementi[i].checked=false;
    }
    }
    return;
    }
    function conferma(){
    /*var result = new Array();
    var selezionato=false;
    var selezionatoAnno=false;
    elementi=document.elenco.elements;
    for (i=0; i<elementi.length; i++)
    if ((elementi[i].type=='checkbox') && (elementi[i].name=="obt"))
    if (elementi[i].checked==true)
    selezionato=true;
    if (selezionato==false)
    {
    alert("Selezionare almeno un oggetto");
    return;
    }
    for (i=0; i<elementi.length; i++)
    if ((elementi[i].type=='checkbox') && (elementi[i].name=="anno"))
    if (elementi[i].checked==true)
    selezionatoAnno=true;
    if (selezionatoAnno==false)
    {
    alert("Selezionare almeno un anno");
    return;
    }

    if(elenco.obt[0].checked)
    {
    result[0]="S";
    }
    else
    {
    result[0]="N";

    }
    if(elenco.obt[1].checked)
    {
    result[1]="S";
    }
    else
    {
    result[1]="N";
    }
    if(elenco.obt[2].checked)
    {
    result[2]="S";
    }
    else
    {
    result[2]="N";
    }
    if(elenco.obt[3].checked)
    {
    result[3]="S";
    }
    else
    {
    result[3]="N";
    }
    if(elenco.obt[4].checked)
    {
    result[4]="S";
    }
    else
    {
    result[4]="N";
    }
    if(elenco.obt[5].checked)
    {
    result[5]="S";
    }
    else
    {
    result[5]="N";
    }
    if(elenco.obt[6].checked)
    {
    result[6]="S";
    }
    else
    {
    result[6]="N";
    }

    if(elenco.TipoOGR.value=1)
    {
    result[7]="AS";
    }
    else
    {
    result[7]="B";
    }
    window.returnValue = result;
    window.close();*/
    if (screen.width==1024)
    self.resizeTo(1024, 768);
    if (screen.width==800)
    self.resizeTo(800, 600);

    elenco.action="Report_OGR_2003_Elenco_Scelta.asp";
    elenco.submit();
    }

    </script>
    <BODY leftmargin="0" topmargin="0" bgcolor="FFFFFF" style="overflow-x=no" scroll="yes">
    <form name="elenco" id="elenco" method="post" action="">

    <table width="435" bordercolor="#000000" cellpadding="0" cellspacing="0" background="images/azzurrino.gif" border="0" name="Dettaglio" id="Dettaglio">
    <tr>
    <td height="15" width="10"></td>
    <td height="15" width="425" colspan="4"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Dettaglio Report da visualizzare:</font></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td height="10"><input type="checkbox" name="obt" value="DG"></td>
    <td height="10"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Direzioni coinvolte</font></td>
    <td height="10"><input type="checkbox" name="Totobt" value="T" onclick="SelezionaTutti()"></td>
    <td height="10" width="150"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Selez./Deselez. tutti</font></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td height="10"><input type="checkbox" name="obt" value="S"></td>
    <td height="10" colspan="3"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Specifici correlati</font></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td height="10"><input type="checkbox" name="obt" value="G"></td>
    <td height="10" colspan="3"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Gestionali correlati</font></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td height="10"><input type="checkbox" name="obt" value="PR" onclick="DettaglioProdottiGestionali()"></td>
    <td height="10" colspan="3"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Prodotti</font></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td height="10"><input type="checkbox" name="obt" value="GP" disabled onclick="DettaglioProdottiGestionaliPianific()"></td>
    <td height="10" colspan="3"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Gestionali correlati ai Prodotti</font></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td height="10"><input type="checkbox" name="obt" value="PIA" disabled></td>
    <td height="10" colspan="3"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Con Pianificazione</font></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td height="10"><input type="checkbox" name="obt" value="ALL"></td>
    <td height="10" colspan="3"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Con Documenti allegati</font></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td height="10"><input type="checkbox" name="obt" value="AV"></td>
    <td height="10" colspan="3"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Con Avanzamento</font></td>
    </tr>

    <%'if session("idgruppo")=0 then%>
    <!--tr>
    <td height="10"></td>
    <td height="10"><input type="checkbox" id="FT" name="FT" value="FT" onclick="FT1()"></td>
    <td height="10" colspan="3"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Note a cura di FT per Obiettivi di Governo</font></td>
    </tr-->
    <%'end if%>
    </table>
    <table width="435" bordercolor="#000000" cellpadding="0" cellspacing="0" background="images/azzurrino.gif">
    <tr>
    <td>

    </td>
    </tr>
    <tr>
    <td height="15" width="10"></td>
    <td height="15" width="425" colspan="2"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">Tipo OGR:</font></td>
    </tr>
    <tr>
    <td height="10" width="10"></td>
    <td height="10" width="25"><INPUT id="TipoOGR" type="radio" name="TipoOGR" value="A" checked></td>
    <td height="10" width="400"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">AS</font></td>
    </tr>
    <tr>
    <td height="10"></td>
    <td height="10"><INPUT id="TipoOGR" type="radio" name="TipoOGR" value="B" ></td>
    <td height="10"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="336699">B</font></td>
    </tr>
    <tr>
    <td>

    </td>
    </tr>
    </table>
    <table width="435" bordercolor="#000000" cellpadding="0" cellspacing="0" background="images/azzurrino.gif" border="0">
    <tr>
    <td width="3%"></td>
    <td width="35%" align=right><font face="verdana" size="2" color="#336699">Direzione</font></td>
    <td width="52%" colspan=2 align=left>
    <select name="direzione" style="font-size: 10; color: #336699; font-family: verdana, helvetica, sans-serif" onchange="javascript:ModificaDirezione()">
    <%lRes=Direzione.OpenList("ORDER BY CODDIREZIONE")
    if lRes = 0 then%>
    <option value="99">Tutte le Direzioni</option>
    <%
    Do While not lRes<>0%>
    <option value="<%=Direzione.IDDIREZIONE%>"><%=Direzione.CO DDIREZIONE & " - " & Direzione.DESSHORT%>
    </option>
    <%lRes=Direzione.GetNext()
    loop
    Direzione.CloseList()
    end if%>
    </select>
    </td>
    </tr>
    <tr>
    <td>

    </td>
    </tr>
    </table>
    <table width="435" border="0" cellpadding="0" cellspacing="0">
    <tr bgcolor="#336699">
    <td bgcolor="#336699" height="1"></td>
    </tr>
    </table>
    <table width="435" cellpadding="0" cellspacing="0" background="images/azzurrino.gif">
    <tr>
    <td height="10" width="1"></td>
    <td height="10" width="10"></td>
    <td height="10" colspan="4">
    <center>
    [img]images/conferma.gif[/img]
    [img]images/azzurrino.gif[/img]
    [img]images/annulla2.gif[/img]
    </center>
    </td>
    <td height="10" width="8"></td>
    </tr>
    </table>
    </form>
    </BODY>
    </html>
    <%
    Set Dbconn=nothing
    Set Direzione=nothing
    %>

    Ciao Martina

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.