keepz Posted May 12, 2008 at 01:49 PM Report Share #184663 Posted May 12, 2008 at 01:49 PM Boa tarde Eu queria com um select, ao carregar num option me abrisse uma outra pagina mesmo asseguir a esse select, mas nao qeria q me fizesse refresh á pagiona por o valor dessa option vai-me ser preciso. Obrigado pela colaboraçao. Link to comment Share on other sites More sharing options...
magician Posted May 12, 2008 at 01:51 PM Report Share #184664 Posted May 12, 2008 at 01:51 PM Podias ser um pouquinho mais especifico ? É que nem percebi se o que queres em é Java ou em JavaScript. I haven’t lost my mind; it’s backed up on DVD somewhere! Link to comment Share on other sites More sharing options...
keepz Posted May 12, 2008 at 02:12 PM Author Report Share #184668 Posted May 12, 2008 at 02:12 PM penso que tem qe ser feito em javascript, é a unica maneira q conheço, mas nao sei se em ava tambem da. <script> function changeLocation(menuObj) { var i = menuObj.selectedIndex; if(i > 0) { window.location = menuObj.options[i].value; } } </script> eu tenho isto so q esta funçao faz me refresh á pagina toda, e eu qero q fiqe o valor selecionado da option mas qero q apareça uma pagina numa div ou numa iframe com outro select. nao sei se me fiz entender Link to comment Share on other sites More sharing options...
DanielAmorim Posted May 12, 2008 at 02:21 PM Report Share #184671 Posted May 12, 2008 at 02:21 PM A dúvida esta mesmo no local errado! Bem... pelo que conseguir entender o que tu queres é fazer pedidos assíncronos ao servidor Web e fazer uma actualização parcial da página. Para isso podes usar AJAX ou utilizar uma técnica com IFrames. Daniel Amorim VP for xRTML http://www.xrtml.org http://www.realtime.co Link to comment Share on other sites More sharing options...
keepz Posted May 12, 2008 at 02:26 PM Author Report Share #184674 Posted May 12, 2008 at 02:26 PM eu noa sei trabalhar com AJAX, e sei q com javascript dá para fazer, eu ja tentei por target para a iframe mas nao consigo, faz-me sempre refresh á pagina, o mais provavle é eu meter um botao e o action do form vai ter á iframe. Link to comment Share on other sites More sharing options...
keepz Posted May 12, 2008 at 02:38 PM Author Report Share #184679 Posted May 12, 2008 at 02:38 PM se puderem fechar este topico ou transferilo para a zona de javascript é q me enganei memso e nao tinha reparado :x Link to comment Share on other sites More sharing options...
keepz Posted May 12, 2008 at 03:27 PM Author Report Share #184688 Posted May 12, 2008 at 03:27 PM já resolvi o problema com um window.top.iframe.location 😄 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now