Santana Oliveira Posted February 4, 2014 at 09:44 PM Report #543974 Posted February 4, 2014 at 09:44 PM Olá Estou com um problema no firefox, só no firefox... Faço: <a name='top'></a> location.href="#top"; Funciona em todos os browsers excepto no firefox... Alguém tem uma ideia de como fazer neste browser?
Rechousa Posted February 4, 2014 at 09:46 PM Report #543975 Posted February 4, 2014 at 09:46 PM Olá, Top não é uma palavra reservada? Experimenta mudar para outra coisa. Espero ter ajudado, Pedro Martins Sharing is Knowledge! http://www.linkedin.com/in/rechousa
Santana Oliveira Posted February 4, 2014 at 09:51 PM Author Report #543977 Posted February 4, 2014 at 09:51 PM Olá, Top não é uma palavra reservada? Experimenta mudar para outra coisa. Espero ter ajudado, Não, o problema continua no navegador firefox...
I-NOZex Posted February 4, 2014 at 09:55 PM Report #543979 Posted February 4, 2014 at 09:55 PM mete aspas duplas " em vez de plicas ' se nao funcionar, em vez do atributo name usa o id 😉 B2R » Beat2Revolution v3.0b | Regista e divulga-nos beat2revolution.net
Santana Oliveira Posted February 4, 2014 at 10:03 PM Author Report #543982 Posted February 4, 2014 at 10:03 PM mete aspas duplas " em vez de plicas ' se nao funcionar, em vez do atributo name usa o id 😉 Nenhuma deu 😞 ... Tem que haver uma alternativa qualquer para o firefox
nelsonr Posted February 4, 2014 at 10:20 PM Report #543988 Posted February 4, 2014 at 10:20 PM Isto funciona no firefox <a name='top'>link no topo</a> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <a name='middle'>link no meio</a> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <a href="#" onclick="location.href='#top';return(false);">top</a> <a href="#" onclick="location.href='#middle';return(false);">meio</a>
Santana Oliveira Posted February 4, 2014 at 10:40 PM Author Report #543995 Posted February 4, 2014 at 10:40 PM Isto funciona no firefox <a name='top'>link no topo</a> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <a name='middle'>link no meio</a> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <a href="#" onclick="location.href='#top';return(false);">top</a> <a href="#" onclick="location.href='#middle';return(false);">meio</a> Realmente deu numa página à parte mas quando vou por isso na minha iframe não faz nada...
Santana Oliveira Posted February 4, 2014 at 11:58 PM Author Report #544004 Posted February 4, 2014 at 11:58 PM Eu tenho na minha pagina: <script language="Javascript"> <!-- function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentwindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height= the_height; } //--> </script> <iframe width="90%" id="the_iframe" name="frame" onload="calcHeight();" src="pagina.php" scrolling="NO" frameborder="0" ></iframe> e depois dentro de pagina.php tenho o : <a name='top'>link no topo</a> <a href="#" onclick="location.href='#top';return(false);">top</a> Ele não faz nada no firefox , alguém sabe o que estou a fazer de mal?
I-NOZex Posted February 5, 2014 at 11:35 AM Report #544037 Posted February 5, 2014 at 11:35 AM Nenhuma deu 😞 ... Tem que haver uma alternativa qualquer para o firefox isto TEM de funcionar! http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_loc_href_set2 com ID e aspas duplas! B2R » Beat2Revolution v3.0b | Regista e divulga-nos beat2revolution.net
Santana Oliveira Posted February 5, 2014 at 12:52 PM Author Report #544055 Posted February 5, 2014 at 12:52 PM isto TEM de funcionar! http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_loc_href_set2 com ID e aspas duplas! ok já sei qual é o problema e a solução seria ir para o topo mas na pagina que contem a iframe (fora da iframe) será que dá?
I-NOZex Posted February 5, 2014 at 01:11 PM Report #544058 Posted February 5, 2014 at 01:11 PM testa! B2R » Beat2Revolution v3.0b | Regista e divulga-nos beat2revolution.net
Santana Oliveira Posted February 5, 2014 at 02:31 PM Author Report #544068 Posted February 5, 2014 at 02:31 PM testa! O problema é como fazer! 😕
Santana Oliveira Posted February 5, 2014 at 08:51 PM Author Report #544115 Posted February 5, 2014 at 08:51 PM O problema é como fazer! 😕 ja fiz, obrigado a quem respondeu
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