Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Morpheus#2005

Combo Dinamico Sem Refresh

Recommended Posts

Pessoal vi algumas referencias de combos dinamicos e tal, alguem sabe como eu posso aproveitar esse meu projeto, senao eu vou ter q fazer tudo de novo.

 

O que eu preciso é que esse mesmo combo nao faça o submit na pagina como esta agora, não sei qual o paramêtro para essa funcionalidade...

 

 

 

<div>		  <table width="95%" border="1" align="center" bordercolor="#CCCCCC">			<tr class="buttons">			  <td colspan="3" scope="col"> </td>			</tr>			<tr class="buttons">			  <td scope="col"><div align="center">Motivo </div></td>			  <td colspan="2"><div align="center">Sub Motivo </div></td>			</tr>			<tr>			  <td><div align="center">				  <select name="Sel_Motivo" id="Sel_Motivo" onchange="document.General.submit()">					<%While (NOT Motivo_Sel.EOF)%><option value="<%=(Motivo_Sel.Fields.Item("MOTIVO").Value)%>" <%If (Not isNull((Motivo_Sel.Fields.Item("MOTIVO").Value))) Then If (CStr(Motivo_Sel.Fields.Item("MOTIVO").Value) = CStr((Motivo_Sel.Fields.Item("MOTIVO").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(Motivo_Sel.Fields.Item("MOTIVO").Value)%></option>					<%  Motivo_Sel.MoveNext()WendIf (Motivo_Sel.CursorType > 0) Then  Motivo_Sel.MoveFirstElse  Motivo_Sel.RequeryEnd If%>				  </select>			  </div></td>			  <td colspan="2"><div align="center">				  <select name="Sel_SubMotivo" id="Sel_SubMotivo" onchange="document.General.submit()">					<%While (NOT SubMotivo_Sel.EOF)%><option value="<%=(SubMotivo_Sel.Fields.Item("SUBMOTIVO").Value)%>" <%If (Not isNull((Assunto_Sel.Fields.Item("SUBMOTIVO").Value))) Then If (CStr(SubMotivo_Sel.Fields.Item("SUBMOTIVO").Value) = CStr((Assunto_Sel.Fields.Item("SUBMOTIVO").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(SubMotivo_Sel.Fields.Item("SUBMOTIVO").Value)%></option>					<%  SubMotivo_Sel.MoveNext()WendIf (SubMotivo_Sel.CursorType > 0) Then  SubMotivo_Sel.MoveFirstElse  SubMotivo_Sel.RequeryEnd If%>				  </select>			  </div></td>			</tr>			<tr class="buttons">			  <td><div align="center">assunto</div></td>			  <td colspan="2"><div align="center">causa</div></td>			</tr>			<tr>			  <td><div align="center">				  [b]<select name="Sel_Assunto" id="Sel_Assunto" onchange="document.General.submit()">[/b]				    <%While (NOT Assunto_Sel.EOF)%><option value="<%=(Assunto_Sel.Fields.Item("ASSUNTO").Value)%>" <%If (Not isNull((CAUSA_SEL.Fields.Item("ASSUNTO").Value))) Then If (CStr(Assunto_Sel.Fields.Item("ASSUNTO").Value) = CStr((CAUSA_SEL.Fields.Item("ASSUNTO").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(Assunto_Sel.Fields.Item("ASSUNTO").Value)%></option>					<%  Assunto_Sel.MoveNext()WendIf (Assunto_Sel.CursorType > 0) Then  Assunto_Sel.MoveFirstElse  Assunto_Sel.RequeryEnd If%>				  </select>			  </div></td>			  <td colspan="2"><div align="center">				  <select name="Sel_Causa" id="Sel_Causa">					<%While (NOT CAUSA_SEL.EOF)%>					<option value="<%=(CAUSA_SEL.Fields.Item("CAUSA").Value)%>"><%=(CAUSA_SEL.Fields.Item("CAUSA").Value)%></option>					<%  CAUSA_SEL.MoveNext()WendIf (CAUSA_SEL.CursorType > 0) Then  CAUSA_SEL.MoveFirstElse  CAUSA_SEL.RequeryEnd If%>				  </select>			  </div></td>			</tr>			<tr class="buttons">			  <td><div align="center">Gerência</div></td>			  <td colspan="2"><div align="center">Diretoria</div></td>			</tr>			<tr class="buttons">			  <td><div align="center"></div></td>			  <td colspan="2"><div align="center"></div></td>			</tr>			<tr class="buttons">			  <td><div align="center">produto</div></td>			  <td colspan="2"><div align="center">SEGMENTO</div></td>			</tr>			<tr class="buttons">			  <td><div align="center">				  <select name="Sel_Produto" id="Sel_Produto">					<%While (NOT Busca_Produto.EOF)%>					<option value="<%=(Busca_Produto.Fields.Item("PRODUTOS").Value)%>"><%=(Busca_Produto.Fields.Item("PRODUTOS").Value)%></option>					<%  Busca_Produto.MoveNext()WendIf (Busca_Produto.CursorType > 0) Then  Busca_Produto.MoveFirstElse  Busca_Produto.RequeryEnd If%>				  </select>			  </div></td>			  <td colspan="2"><div align="center">				  <select name="Sel_Segmento" id="Sel_Segmento">					<option>Ouro</option>					<option>Prata</option>					<option>Diamante</option>					<option>Bronze</option>				  </select>			  </div></td>			</tr>			<tr class="buttons">			  <td><div align="center">Serviço</div></td>			  <td width="50%"><div align="center">Status do Problema </div></td>			</tr>			<tr>			  <th><p align="left">				  <input type="radio" name="Radio_OM_Serviço" value="Windows" />				Fixo <br />				<input type="radio" name="Radio_OM_Serviço" value="Linux" />				Movel<br />				<br />			  </p></th>			  <th><div align="left">				  <input type="radio" name="Radio_OM_StatusProblema" value="Windows" />				Resolvido <br />				<input type="radio" name="Radio_OM_StatusProblema" value="Linux" />				Não Resolvido </div></th>			</tr>		  </table>		</div>

Compartilhar este post


Link para o post
Compartilhar em outros sites

olá meu amigo não sei se seria isso que você precisa mais no site do imasters tem um totorial ensinando carregando o combo apartir de outro usando ajax. segue o link abaixo

 

http://www.imasters.com.br/artigo/4424/asp...tilizando_ajax/

 

espero ter ajudado,

 

até mais qualquer coisa posta ai.

 

att.

 

Clayton

Compartilhar este post


Link para o post
Compartilhar em outros sites

Para implementar combo com atualização assincrona você precisa utilizar AJAX na sua página, se o seu SCRIPT ASP já retorna os resultados corretamante você deve verificar com o pessoal da área de AJAX só a parte de comunicação assincrona.OK..!!?? T+...PS: Aqui no iMasters existem vários tutoriais e tópicos tratando de assuntos similares ao seu, da uma pesquisada.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Eu consegui resolver o problema USANDO O Request.QueryString....

 

Mas me deparei com outra parada...

 

Tipo :

 

 

Meu primeiro request fica assim :

 

http://xx.xx.xxx.xxx/teste.asp?carros=FORD

 

Perfeito esta me listando todos os carros,

 

Meu segundo request como eu faço ::..::

 

document.location.href='oo.asp?carro='+this.value+'&submotivo='+this.value

 

 

Tem algum comando que busca a URL anterior ?? porque this.value que dizer o valor do FORM que eu joguei na URL...

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.