Jump to content


Dinho Z.'s Content

There have been 187 items by Dinho Z. (Search limited from 05/06/2023)



Ordernar por                Order  

#382194 Script P/ Checkbox

Posted by Dinho Z. on 10/06/2004, 08:09 in ASP

O update no banco você usaria comando SQL para isto (UPDATE...SET), como se fosse inserir (INSERT INTO...VALUES) ou selecionar (SELECT...FROM)...

Para pegar o valor, você usa o Request também...

O value não pode ser dinâmico, neste exemplo que eu te passei...



#381850 Script De Links

Posted by Dinho Z. on 09/06/2004, 15:20 in Javascript / DOM / AJAX / ECMAScript

Veja se isto te ajuda...

<script>
	lista = new Array();
	lista[0] = 'pagina1';
	lista[1] = 'pagina2';
	lista[2] = 'pagina3';
  
	for(x = 0;x < lista.length;x++){
  y = x + 1;
  endereco = lista[x].link('pagina' + y + '.htm');
  document.write(endereco + '<br>');
	}
</script>



#387336 Saber Se Dá Pra Fazer Flash Aleatorio E

Posted by Dinho Z. on 18/06/2004, 08:46 in Javascript / DOM / AJAX / ECMAScript

Poderia ter feito uma busca...

http://forum.wmonlin...showtopic=75796



#384728 Rodar Php No Iis

Posted by Dinho Z. on 14/06/2004, 08:21 in IIS & PWS

Sim, é possível rodar não só o PHP, mas também outras linguagens como JSP, Zope, Perl, etc... no IIS ou até mesmo no PWS...

Clique aqui e baixe o PHP Installer ou o PHP Zipado...



#382439 Resolução Tela!

Posted by Dinho Z. on 10/06/2004, 14:45 in Javascript / DOM / AJAX / ECMAScript

Se você estiver usando em algumas tag's a propriedade position: relative, procure usar position: absolute... Isto ajuda bastante...

Meu site ficou bom em todos os navegadores...

Há sim pequenas diferenças, mas eu consegui contorná-las, é questão de tentar alternativas na hora de fazer códigos em JS e em CSS e ver se ficou legal...



#391062 Relação Entre 2 Bds

Posted by Dinho Z. on 24/06/2004, 15:33 in ASP

Você vai ter que criar duas conexões de banco de dados, uma para cada banco...

Aí dá um SELECT em um e um INSERT INTO no outro...

Mas usar um BD só e duas tabelas seria o ideal...



#381365 Refresh, Stop, Next, Etc...

Posted by Dinho Z. on 08/06/2004, 16:52 in HTML, CSS e Metodologias

Agora, "parar" fica difícil.. Pense, como q o usuário vai parar de carregar a página se ela nem carregou, logo, nem apareceu o botão ainda.. :blink: ..

Fica meio difícil (impossível) essa.. hehe ;)

Veja o que o Chinello respondeu... não precisava nem perguntar de novo...



#544036 Reconhecer Se Tem Ou Nao Flash

Posted by Dinho Z. on 27/02/2005, 15:07 in HTML, CSS e Metodologias

É um tópico velho, mas ainda não foi respondido, e eu procurando por um outro tópico, topei com ele e vou responder...

Segue anexo um arquivo zipado com uma página em HTML e um .js, que verifica se tem o flash instalado, aí é só usar um pouco de lógica para ao invés de abrir o flash, ele abra um gif ou um jpg...

Attached Files




#387607 Puxar Dados De Tabelas Diferentes

Posted by Dinho Z. on 18/06/2004, 14:56 in Sintaxe SQL

Você está com o msn online ???

Eu te adicionei no meu msn... dá uma olhada...

Aí eu tento te ajudar online...



#384733 Puxar Dados De Tabelas Diferentes

Posted by Dinho Z. on 14/06/2004, 08:34 in Sintaxe SQL

Sim... isto é SQL, não Cold Fusion...

SELECT * FROM REGISTRO INNER JOIN BLOG ON REGISTRO.reg_id = BLOG.reg_id
Aí é só chamar o campo NOME que está dentro da tabela REGISTRO...



#386655 Puxar Dados De Tabelas Diferentes

Posted by Dinho Z. on 17/06/2004, 08:04 in Sintaxe SQL

Veja como está o link comentar em seu blog...

http://blog.matheusreis.com.br/coment.cfm?post=34

Este post=34 é o ID do seu post... ele tem que estar na variável...

No caso, se você fosse usar o mesmo esquema de links para chamar o seu BD, ficaria assim:

SELECT * FROM comentario INNER JOIN blog ON comentario.post_id = blog.post_id WHERE comentario.post_id= #url.post#



#386935 Puxar Dados De Tabelas Diferentes

Posted by Dinho Z. on 17/06/2004, 14:59 in Sintaxe SQL

Se der certo, coloque aqui...

Estou começando a mexer com o Cold Fusion agora, não manjo muito, mas o seu problema era de Lógica, não de Cold, por isso consegui te ajudar...

Aonde você hospeda sua página ???



#386776 Puxar Dados De Tabelas Diferentes

Posted by Dinho Z. on 17/06/2004, 11:14 in Sintaxe SQL

Como você faz para aparecer no link o post=34 ???

Da mesma maneira vc faz para inserir dentro do SQL...



#387311 Puxar Dados De Tabelas Diferentes

Posted by Dinho Z. on 18/06/2004, 08:18 in Sintaxe SQL

Inclui algumas coisas... Veja se funciona...

<CFPARAM name="Inicio" default="1">
<CFPARAM name="Exibir" default="5">

<cfquery name="rs" datasource="matheusreis">
SELECT * FROM REGISTRO INNER JOIN BLOG ON REGISTRO.reg_id = BLOG.reg_id ORDER BY post_id DESC
</cfquery>
<CFSET Final=Inicio + Exibir>
<CFIF Inicio + Exibir GT rs.RecordCount>
    <CFSET Final=995>
<CFELSE>
    <CFSET Final=Exibir>
</CFIF>

<html>
<head>
<title>M A T H E U S R E I S:blog --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
@import url("blog.css");
-->
</style>
<style type="text/css">
<!--
a:link {

font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
text-decoration: none;
}
a:hover {


font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #999999;
text-decoration: underline;
}
a:visited {

font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
text-decoration: none;
}
-->
</style>
<style>
body{
overflow-x:hidden;
}
</style>
</head>

<body leftmargin="10" topmargin="10" marginwidth="0" marginheight="0">
<cfoutput query="rs" maxrows="5"> 
<cfquery name="n_coment" datasource="matheusreis">
	SELECT COUNT(*) MAXIMO FROM comentario INNER JOIN blog ON comentario.post_id = blog.post_id WHERE comentario.post_id=#rs.post_id#
</cfquery>
 <table width="590" border="1" cellspacing="0" cellpadding="0">
   <tr> 
     <td height="18" colspan="4" class="btoff"><font size="2"><strong>#rs.titulo#</strong></font></td>
   </tr>
   <tr> 
     <td height="7"></td>
     <td width="2" height="7" valign="top" background="pontos_horiz.gif"><img src="trans.gif" width="2" height="2"></td>
     <td height="7"></td>
     <td height="7"></td>
   </tr>
   <tr> 
     <td width="84" height="18" valign="top"> <div align="left"><a href="mail.cfm?userid=#rs.reg_id#"><img src="avatar/#rs.avatar#" width="70" height="70" border="0" align="top"></a><br>
       </div></td>
     <td width="2" height="18" valign="top" background="pontos_horiz.gif"><img src="trans.gif" width="2" height="2"></td>
     <td width="8" valign="top" class="tblmeio">&nbsp;</td>
     <td width="516" valign="top" class="tblmeio">#replace(rs.post,Chr(13),"<br>","all")#<br>
    #n_coment.MAXIMO# Comentário(s)
   </td>
   </tr>
   <tr> 
     <td height="3" colspan="3" align="left" valign="middle" background="pontos_horiz.gif"><img src="trans.gif" width="8" height="2"></td>
     <td height="3" colspan="3" align="left" valign="middle" background="pontos_horiz.gif" class="tblmeio"><img src="trans.gif" width="8" height="2"></td>
   </tr>
   <tr> 
     <td height="19" align="left" valign="middle"> <div align="center"><a href="mail.cfm?userid=#rs.reg_id#"><strong>#rs.usuario#</strong></a></div></td>
     <td width="2" height="19" valign="top" background="pontos_horiz.gif"><img src="trans.gif" width="2" height="3"></td>
     <td width="8" valign="top" class="tblmeio">&nbsp;</td>
     <td height="19" colspan="3" align="left" valign="middle" class="tblmeio"> 
       <div align="right"></div>
       <table width="53%" height="19" border="1" align="center" cellpadding="0" cellspacing="2">
         <tr> 
           <td width="50%" class="tbldir"><div align="center"><strong><a href="coment.cfm?post=#rs.post_id#" target="load">COMENTAR</a></font></strong></strong></div>
             <strong></div></strong></td>
           <td width="50%" class="tbldir"><div align="center"><strong><a href="comentario.cfm?post=#rs.post_id#" target="load">COMENT&Aacute;RIOS</a> 
               </strong></div></td>
         </tr>
       </table></tr>
   <tr> 
     <td height="3" colspan="3" align="left" valign="middle" background="pontos_horiz.gif"><img src="trans.gif" width="8" height="2"></td>
     <td height="3" colspan="3" align="left" valign="middle" background="pontos_horiz.gif" class="tblmeio"><img src="trans.gif" width="8" height="2"></td>
   </tr>
 </table>
 <br>
</cfoutput> 
<table width="590" border="0" cellspacing="0" cellpadding="0">
 <tr>
   <td width="590" align="center" valign="middle"> 
   <cfoutput>  
       <table width="52%" border="0" cellspacing="4" cellpadding="0">
         <tr> 
           <td width="50%" align="center" valign="middle" class="tbldir"> 
             <CFIF Inicio NEQ 1>
         <CFIF Inicio GTE Exibir>
              <CFSET Anterior=Exibir>
              <CFSET AnteriorRegistro=Inicio - Exibir>
         <CFELSE>
              <CFSET Anterior=Inicio - 1>
              <CFSET AnteriorRegistro=1>
         </CFIF>
               <div align="center"><a href="exibepost.cfm?Inicio=#AnteriorRegistro#">#Anterior# 
                 Anteriores</a> </div>
             </CFIF>
</td>
           <td width="50%" align="center" valign="middle" class="tbldir"> 
             <CFIF Final LT rs.RecordCount>
         <CFIF Inicio + Exibir * 2 GTE rs.RecordCount>
              <CFSET Proxima=rs.RecordCount - Inicio - Exibir + 1>
         <CFELSE>
              <CFSET Proxima=Exibir>
         </CFIF>
               <div align="center"><a href="exibepost.cfm?Inicio=#Evaluate("Inicio + Exibir")#">Próximos 
                 #Proxima#</a> </div>
             </cfif>
</td>
       </tr>
     </table></cfoutput>
   </td>
 </tr>
</table>

</body>
</html>



#385665 Puxar Dados De Tabelas Diferentes

Posted by Dinho Z. on 15/06/2004, 14:58 in Sintaxe SQL

Tente isto...
SELECT * FROM comentario INNER JOIN blog ON comentario.post_id = blog.post_id WHERE comentario.post_id='VALOR_ID'

E no lugar de VALOR_ID vai o valor ou código do ID usando uma variável...



#386039 Puxar Dados De Tabelas Diferentes

Posted by Dinho Z. on 16/06/2004, 08:12 in Sintaxe SQL

A variável teria o valor do post que você quer contar... aí ele pegaria só os valores do post especificado...

Ou você não sabe pegar o valor do post e por em uma variável ???



#387524 Puxar Dados De Tabelas Diferentes

Posted by Dinho Z. on 18/06/2004, 13:57 in Sintaxe SQL

Você está confundindo as coisas...

O SQL não tem nada a ver com o CF... Se deu erro no SQL, não é que o CF não suporta... Deve ser outra coisa...

Tente assim:

SELECT COUNT(*) AS MAXIMO FROM comentario INNER JOIN blog ON comentario.post_id = blog.post_id WHERE comentario.post_id=#rs.post_id#



#386989 Puxar Dados De Tabelas Diferentes

Posted by Dinho Z. on 17/06/2004, 16:19 in Sintaxe SQL

Faz o seguinte...

Me passa o código do seu RS para ver o que eu posso fazer... Aqui no trampo tem uns caras que manjam de CF...



#427843 Proteção De Pagina

Posted by Dinho Z. on 18/08/2004, 15:57 in HTML, CSS e Metodologias

O código do Cristiano não funcionou no Mozilla Firefox...

Fiz isto aqui e funcionou também no Mozilla...

<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onclick="return true" onmousedown="return false">



#441784 Programa Para Converter Entidades Xhtml

Posted by Dinho Z. on 10/09/2004, 08:23 in HTML, CSS e Metodologias

No DreamWeaver, quando você está no modo Design, o que você digita com acento ele já transforma automático...



#390915 Problemas Com Permissão Do Iis

Posted by Dinho Z. on 24/06/2004, 11:41 in ASP

Faça o seguinte... Você deve estar usando o sistemas de arquivos NTFS em vez do FAT 32...

Na pasta que está o site, clique com o botão direito do mouse, vá na opção de Compartilhamento e mude as Permissões, como foi dito...



#437518 Problemas Com Insert

Posted by Dinho Z. on 02/09/2004, 15:41 in ASP

Tenta colocar um CInt(cod_usu) dentro do código do Insert...



#433868 Problemas Com Hyperlink

Posted by Dinho Z. on 27/08/2004, 15:24 in HTML, CSS e Metodologias

Valeu pelo PHP...

Acabei resolvendo com o ASP mesmo. Já que meus parcos conhecimentos em HTML não estavam ajudando, resolvemos apelar para uma função em ASP que baixasse o arquivo na 'marra'! :)

Valeu pela atenção, gente! ;)

Faz favor Peppermel...

Coloca o seu código ASP aqui pra mim... vai ser de grande ajuda...

Obrigado...



#387517 Problemas Com Funcao!

Posted by Dinho Z. on 18/06/2004, 13:54 in Javascript / DOM / AJAX / ECMAScript

Caro Troyan...

Pelo o que eu percebi, a Rossana Carimo deve ser portuguesa...

Por isso, bolseiro, e não bolsista...

Se eu estiver errado, me corrija...



#385094 Problema Serio Com Submit De Formularios...

Posted by Dinho Z. on 14/06/2004, 17:40 in HTML, CSS e Metodologias

Tente colocar na tag form a propriedade target="_blank", por exemplo:

<form method="POST" name="form1" target="_blank">




IPB Skin By Virteq