Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Learn More

Firefox 4 does not pass url parameters to the javascript function

  • 2 respostas
  • 9 têm este problema
  • 4 visualizações
  • Última resposta por Boshco

more options

Our website navigation is controlled by a javascript function that receives a url parameter. The url parameter tells the javascript function which page to display and the coordinates it needs to slide the body background image into place.

The index.html page contains 3 divs (aka: pages). The proper "page" will slide into place when the link is clicked.

The links are structrued as follows:

<a href="index.html">page link 1</a>

<a href="index.html?whichPage=1">page link 2</a>

<a href="index.html?whichPage=2">page link 3</a>

This function works in every browser except Firefox 4 (including Firefox 3.6.xx, IE 6 through 8, Chrome 11.0.696.68 and Safari 5.0.5).

The error console does not throw any errors, the page validates using W3C validator.

Our website navigation is controlled by a javascript function that receives a url parameter. The url parameter tells the javascript function which page to display and the coordinates it needs to slide the body background image into place. The index.html page contains 3 divs (aka: pages). The proper "page" will slide into place when the link is clicked. The links are structrued as follows: <a href="index.html">page link 1</a> <a href="index.html?whichPage=1">page link 2</a> <a href="index.html?whichPage=2">page link 3</a> This function works in every browser except Firefox 4 (including Firefox 3.6.xx, IE 6 through 8, Chrome 11.0.696.68 and Safari 5.0.5). The error console does not throw any errors, the page validates using W3C validator.

Modificado por Boshco a

Todas as respostas (2)

more options

A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25

more options

Thanks cor-el -- I'll definitely do that.