HELP with radio buttons PLEASE!!!!!!

Author Message
jlavilla

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 12/20/2006
  • Status: offline
HELP with radio buttons PLEASE!!!!!! Wednesday, December 20, 2006 5:47 AM (permalink)
0
First the code,..
 
<%@ Language=VBScript @%>
<%
 Option Explicit
' Response.Buffer=1
  Response.Expires = -1
  Response.AddHeader "Pragma", "no-cache"
  Response.AddHeader "Cache-Control", "no-cache, must-revalidate"
Dim strPathSinImprimirGer
Dim strPathSinImprimirZon
Dim strPathImpresas
Dim strSinImprimirGer
Dim strSinImprimirZon
Dim strImpresas
Dim resultado

strPathImpresas="Q:\Rec\Cir\Impreso"
strPathSinImprimirGer="Q:\Rec\Cir\Ger"
strPathSinImprimirZon="Q:\Rec\Cir\Zon"
strImpresas=CargaCirculares(strPathImpresas)
strSinImprimirGer=CargaCirculares (strPathSinImprimirGer)
strSinImprimirZon=CargaCirculares (strPathSinImprimirZon)
Function CargaCirculares(strPath)
 Dim FSObject
 Dim FSOFolder
 Dim FSOFile
 Dim FSOItem
 Dim strCirculares
 
 Set FSObject=Server.CreateObject("Scripting.FileSystemObject")
 Set FSOFolder=FSObject.GetFolder(strPath)
 Set FSOFile=FSOFolder.Files
 strCirculares=""        
 For Each FSOItem In FSOFile
  strCirculares = strCirculares & Left(FSOItem.name,len(FSOItem.name)- 4) & ";"
 Next
    CargaCirculares = left(strCirculares,len(strCirculares)-1)
 Set FSObject = Nothing
 Set FSOFolder = Nothing
 Set FSOFile = Nothing
End Function
%>
<html>
 <head>
  <META name=VI60_defaultClientScript content=VBScript>
  <title>BNA - Circulares</title>
  <link rel="stylesheet" href="DLWEB.css">
</head>
 <body>
  <P style="FONT-WEIGHT: bold; COLOR: darkblue; LINE-HEIGHT: 0; FONT-FAMILY: serif; LETTER-SPACING: 0px">
   <IMG alt="" src="images\logoBNA.gif" align=left>&nbsp;&nbsp;&nbsp;&nbsp; Banco de la Nacion Argentina
  </P>
  <P style="FONT-WEIGHT: bold; COLOR: darkblue; LINE-HEIGHT: 0; FONT-STYLE: italic; FONT-FAMILY: serif; LETTER-SPACING: 0px">
   "Consulta e Impresion de Circulares"
  </P>
  <FONT style="COLOR: black; FONT-STYLE: normal; FONT-FAMILY: sans-serif" color=#00008b>
    <P style="FONT-WEIGHT: bold; COLOR: darkblue; LINE-HEIGHT: 0; FONT-STYLE: italic; FONT-FAMILY: serif; LETTER-SPACING: 0px">&nbsp;
    <FONT face=Arial>
    </FONT>
    </P>
   <HR>
<P style="FONT-WEIGHT: bold; COLOR: #467ab4; LINE-HEIGHT: 0; FONT-STYLE: italic; FONT-FAMILY: serif; LETTER-SPACING: 0px" align=center>&nbsp;&nbsp;&nbsp;
     <INPUT type=radio id=radSeleccion1 name=radSeleccion1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      Impresas&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <INPUT type=radio id=radSeleccion2 name=radSeleccion2 >&nbsp;Sin Imprimir </P>
    <HR id=HR1>
     <FONT face=Arial>
      <P style="FONT-WEIGHT: bold; COLOR: #467ab4; LINE-HEIGHT: 0; FONT-STYLE: italic; FONT-FAMILY: serif; LETTER-SPACING: 0px">
      <form id=form1 name=form1>
<P>&nbsp;</P>
<P>&nbsp;</P>
<TABLE cellSpacing=1 cellPadding=1 width="50%" bgColor=paleturquoise border=1 style="WIDTH: 50%" align=center>
 <TBODY>
<TR>
<TD>
<P style="FONT-WEIGHT: bold; FONT-SIZE: smaller; COLOR: royalblue" align=center>Circular</P>
</TD>
<TD style="FONT-WEIGHT: bold; FONT-SIZE: smaller">
<P style="COLOR: royalblue" align=center>&nbsp;Ver</P>
</TD>
</TR>
<%
 Dim S,X
 s=split(Resp,";")
 For Each X In S
%>
 <TR>
 <TD>
  <INPUT type=checkbox id=checkbox name=checkbox1> <%=X%>  <FONT face=Tahoma color=mediumblue size=2><STRONG></A>    </STRONG></FONT>
 </TD>
 <TD>
  <P align=center><INPUT style="FONT-SIZE: xx-small; WIDTH: 28px; HEIGHT: 18px" type=button size=9 value=Ver id=button1 name=button1 >
   </FONT>
   </FONT></P></TD></TR>
 <%
 Next
 %>
 </TBODY></TABLE></FONT></FONT></FORM>
 </body>
</html>

 
I´m from argentina and i need to excuse my poor english....
 
What i need is when i select one of the radio buttons the value of the variable Resp ( s=split(Resp,";")) is asigned with the content of one of the next vars declared on top
strImpresas=CargaCirculares(strPathImpresas)
strSinImprimirGer=CargaCirculares (strPathSinImprimirGer)
strSinImprimirZon=CargaCirculares (strPathSinImprimirZon)
 
cna anyone help me plz???
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9