- Fórum WMO
- → Viewing Profile: Tópicos: fernandoitu
Community Stats
- Group Usuários
- Active Posts 19
- Profile Views 1002
- Member Title Novato no fórum
- Age 49 years old
- Birthday June 8, 1974
-
Sexo
Não informado
Contact Information
- Windows Live morpheuhp@hotmail.com
0
Neutral
User Tools
Friends
fernandoitu hasn't added any friends yet.
Latest Visitors
-
Guest
04/11/2007, 04:48
Topics I've Started
Impressao Em Paisagem
11/08/2005, 10:35
Tenho uma pagina somente para impressão gostaria de saber se existe alguma maneira de ele alterar au tomaticamente independente da configuração atual da impressora em modo paisagem.
Imprimindo O Backslash \\\"
02/08/2005, 16:36
Preciso imprimir a aspas duplas sem a barra alguém sabe como??
Carregando Combo Com Mysql
02/08/2005, 15:01
Depois de muito apanhar pois só uso php, consegui encontrar um código que faz um combo editável o problema agora é que preciso pegar os valores de uma tabela do Mysql... alguém pode me ajudar????
Campo texto:
<input name="local" type="text" id="local" class='textbox' title="Opening" backspace='false' onkeyup="autocomplete(this,names)" size="60">
Script Java:
<script>
names = new Array('cleber'); Aqui deveria entrar os resultados já que tenho 15000 itens
fruits = new Array('Alvorada','Araxá','Beirol');
function autocomplete(n,ac_array){
if (n.value == "") return 0;
if (event.keyCode == 8 && n.backspace){
n.value = n.value.substr(0,n.value.length-1);
n.backspace = false;
}
var r = n.createTextRange();
tmp= n.value;
if (tmp == "")return 0;
for (z=0;z<ac_array.length;z++){
tmp2 = ac_array[z];
count = 0;
for (i = 0;i<tmp.length;i++){
if (tmp2.charAt(i) == tmp.charAt(i)){
count++
}
}
if (count == tmp.length){
diff = tmp2.length - tmp.length;
if (diff <= 0) break;
kap = "";
for (i=0;i<tmp2.length;i++){
if (i >= tmp.length) kap += tmp2.charAt(i);
}
n.backspace = true;
r.text += kap;
r.findText(kap,diff*-2);
r.select();
return 0;
}
}
n.backspace = false;
return 0;
}
</script>
Campo texto:
<input name="local" type="text" id="local" class='textbox' title="Opening" backspace='false' onkeyup="autocomplete(this,names)" size="60">
Script Java:
<script>
names = new Array('cleber'); Aqui deveria entrar os resultados já que tenho 15000 itens
fruits = new Array('Alvorada','Araxá','Beirol');
function autocomplete(n,ac_array){
if (n.value == "") return 0;
if (event.keyCode == 8 && n.backspace){
n.value = n.value.substr(0,n.value.length-1);
n.backspace = false;
}
var r = n.createTextRange();
tmp= n.value;
if (tmp == "")return 0;
for (z=0;z<ac_array.length;z++){
tmp2 = ac_array[z];
count = 0;
for (i = 0;i<tmp.length;i++){
if (tmp2.charAt(i) == tmp.charAt(i)){
count++
}
}
if (count == tmp.length){
diff = tmp2.length - tmp.length;
if (diff <= 0) break;
kap = "";
for (i=0;i<tmp2.length;i++){
if (i >= tmp.length) kap += tmp2.charAt(i);
}
n.backspace = true;
r.text += kap;
r.findText(kap,diff*-2);
r.select();
return 0;
}
}
n.backspace = false;
return 0;
}
</script>
Combo/listbox Editável
02/08/2005, 10:21
Gostaria de saber se existe alguma opção de deixar o combo ou lixbox editável, tipo quando a pessoa começar a digitar ele vá rolando as opções em baixo?? Estou programando em PHP postei a pergunta lá e me disseram que existe alguma coisa em java... se alguém puder me judar.....
include ("conexaosql.php");
$resdep=mysql_query("select * from dietas");
echo "<select name=\"combo\">";
while($linhadep=mysql_fetch_array($resdep))
{
$id=$linhadep["id"];
$descr=$linhadep["descricao"];
echo "<option value=$id>$descr</option>";
}
echo "</select>";
include ("conexaosql.php");
$resdep=mysql_query("select * from dietas");
echo "<select name=\"combo\">";
while($linhadep=mysql_fetch_array($resdep))
{
$id=$linhadep["id"];
$descr=$linhadep["descricao"];
echo "<option value=$id>$descr</option>";
}
echo "</select>";
Combo/listbox Editável
02/08/2005, 10:06
Gostaria de saber se existe alguma opção de deixar o combo ou lixbox editável, tipo quando a pessoa começar a digitar ele vá rolando as opções em baixo??
include ("conexaosql.php");
$resdep=mysql_query("select * from dietas");
echo "<select name=\"combo\">";
while($linhadep=mysql_fetch_array($resdep))
{
$id=$linhadep["id"];
$descr=$linhadep["descricao"];
echo "<option value=$id>$descr</option>";
}
echo "</select>";
include ("conexaosql.php");
$resdep=mysql_query("select * from dietas");
echo "<select name=\"combo\">";
while($linhadep=mysql_fetch_array($resdep))
{
$id=$linhadep["id"];
$descr=$linhadep["descricao"];
echo "<option value=$id>$descr</option>";
}
echo "</select>";
- Fórum WMO
- → Viewing Profile: Tópicos: fernandoitu
- Privacy Policy
- Regras ·