Commit f434daa0c5beb7cd58dde073635469e24d4ccdec
1 parent
950b11fa
Exists in
master
and in
7 other branches
correção na apresentação dos resultados
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
ferramentas/buscarapida/index.htm
... | ... | @@ -4,8 +4,8 @@ |
4 | 4 | <link rel="stylesheet" type="text/css" href="../../css/ferramentas.css"> |
5 | 5 | <title></title> |
6 | 6 | </head> |
7 | - <body > | |
8 | - <div style="border-left: 1px solid rgb(235, 235, 235); overflow: auto; position: absolute; top: 5px; left: 5px; width: 280px; height: 265px; background-color: rgb(250, 250, 250);" id="resultado" >Aguarde...</div> | |
7 | + <body class="yui-skin-sam;" style="overflow:auto;"> | |
8 | +<div style="top:5px;left:1px;display:block;width:90%;" id="resultado" >Aguarde...</div> | |
9 | 9 | <script type="text/javascript"> |
10 | 10 | //endereço do web service que será consultado |
11 | 11 | servico = "http://mapas.mma.gov.br/webservices/geonames.php" | ... | ... |
ferramentas/buscarapida/index.js
... | ... | @@ -34,7 +34,7 @@ function busca() |
34 | 34 | { |
35 | 35 | for (i=0;i<retorno.data.geonames.length; i++) |
36 | 36 | { |
37 | - if (i == 0){var ins = "<table style=height:500; >";} | |
37 | + if (i == 0){var ins = "<table >";} | |
38 | 38 | ins += "<tr><td style='width:30%;text-align:left;background-color:rgb(220,220,220)' colspan=2 ><b>"+retorno.data.geonames[i].tema+"</b></td></tr>"; |
39 | 39 | var layer = retorno.data.geonames[i].layer |
40 | 40 | for (j=0;j<retorno.data.geonames[i].lugares.length; j++) |
... | ... | @@ -51,6 +51,7 @@ function busca() |
51 | 51 | ins += "</table>" |
52 | 52 | } |
53 | 53 | $i("resultado").innerHTML = ins |
54 | + aguarde("none") | |
54 | 55 | //var palavra = window.parent.document.getElementById("valorBuscaRapida").value |
55 | 56 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=procurartemas&procurar="+palavra+"&g_sid="+g_sid; |
56 | 57 | var cp = new cpaint(); |
... | ... | @@ -59,6 +60,7 @@ function busca() |
59 | 60 | cp.call(p,"procurartemas",resultadoTemas); |
60 | 61 | |
61 | 62 | } |
63 | + aguarde("block") | |
62 | 64 | $i("resultado").innerHTML = "Aguarde..." |
63 | 65 | var palavra = window.parent.document.getElementById("valorBuscaRapida").value |
64 | 66 | palavra = removeAcentos(palavra); | ... | ... |