Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    popup window con stringa

    Ciao a tutti, sto cercando di fare il popup con il numero di badge selezionato dal Select option, fa come la ricevuta.

    Ho provato questo
    codice:
    popUpWin = open('stampa.asp?num_badge=<%=Request.Form("cp")%>'
    Ma non risulta per niente il numero del badge selezionato dal selection....

    Poi vorrei sapere se per caso che il dipendente ha già posseduto il badge, vorrei evitare che appaia il popup di ricevuta.....

    codice:
     if (confirm("Sei sicuro di assegnare?")) {
          document.insert.submit(); 
        popUpWindow(); 
    	}
    e quello del redirect se username esistente

    codice:
    ' *** Redirect if username exists
    MM_flag="MM_insert"
    If (CStr(Request(MM_flag)) <> "") Then
      MM_dupKeyRedirect="esistente.asp"
      MM_rsKeyConnection=MM_autentica_STRING
      MM_dupKeyUsernameValue = CStr(Request.Form("matricola"))
      MM_dupKeySQL="SELECT Matricola FROM dbo.assegnatario WHERE Matricola='" & MM_dupKeyUsernameValue & "'"
      MM_adodbRecordset="ADODB.Recordset"
      set MM_rsKey=Server.CreateObject(MM_adodbRecordset)
      MM_rsKey.ActiveConnection=MM_rsKeyConnection
      MM_rsKey.Source=MM_dupKeySQL
      MM_rsKey.CursorType=0
      MM_rsKey.CursorLocation=2
      MM_rsKey.LockType=3
      MM_rsKey.Open
      If Not MM_rsKey.EOF Or Not MM_rsKey.BOF Then 
        ' the username was found - can not add the requested username
        MM_qsChar = "?"
        If (InStr(1,MM_dupKeyRedirect,"?") >= 1) Then MM_qsChar = "&"
        MM_dupKeyRedirect = MM_dupKeyRedirect & MM_qsChar & "matricola=" & MM_dupKeyUsernameValue
        Response.Redirect(MM_dupKeyRedirect)
      End If
      MM_rsKey.Close
    End If
    e grazie
    ..:: GSFLASH ::..
    HTTP://WWW.GSFLASH.IT
    MCTS - ACP - OCP - ECDL
    Ubuntu 7.10/OpenSuse 10.3/Vista Premium/MacOSX Leopard
    My authentic japanese name is 薗田Sonoda (garden field) 大河 Taiga (big river)

  2. #2
    nessuno mi aiuta?
    ..:: GSFLASH ::..
    HTTP://WWW.GSFLASH.IT
    MCTS - ACP - OCP - ECDL
    Ubuntu 7.10/OpenSuse 10.3/Vista Premium/MacOSX Leopard
    My authentic japanese name is 薗田Sonoda (garden field) 大河 Taiga (big river)

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.