Why href="#XXX" doesn´t work on firefox?
First at all, sorry for repost about this topic but the topic that i saw doesn´t solve my problem. I have this code:
<tr> <td align="left"> <a class="soporte" href="#faq_<%=id_grupo2%>_<%=orden2%>" style="font-family:cursive; FONT-WEIGHT:normal;"> <strong><%=pregunta2%></strong></a> </td> </tr> <% } }%> <tr> <td align="center" class="FilaTransparenteSoporte"> </td></tr> <tr class="<%=claseFila%>"> <td align="left" class="<%=claseFila%>"> <a id="faq_<%=id_grupo%>_<%=orden%>" name="faq_<%=id_grupo%>_<%=orden%> </a><strong><%=pregunta%></strong> </td> </tr>
My problem is that the <a class="soporte" href="#faq_<%=id_grupo2%>_<%=orden2%>...</a>" doesn't do anything. It´s works in all browsers less firefox. Could anybody help me?
PD: Thanks for everything and sorry about my english...
Modified
Chosen solution
Hi everybody!!
I finally solve the problem. I dont know what was the real problem but Im going to explain how I solve it. That code was in a iframe that is located in a parent jsp and it is empty until I call a javascript function which calls a jsp in the server and this fill the iframe.
Cor-el The text in the id and in the href are exactly the same.
Well, if I open that iframe in a new tab the href works but not in the parent frame. My solution was to delete the iframe and write the code directly in the parent jsp. I don´t know if you understand because it´s difficult to explain and more in English for me...
PD: Thanks everybody for your help and thanks guigs2 for the information!
Skaityti atsakymą kartu su kontekstu 👍 4All Replies (12)
What are you trying to do with that code?
Im trying to move to other place on the same page
I dont know how to write the code on this thing... but i think the image will helps to see what it is doing xD
elfujiyama69,
Okay, forgive me for not understanding. Are you having problems with HTML and don't know what code to use or are you having problems with Firefox's Developer Tools?
Exactly what are you trying to achieve with the code? Are you building a site?
Hi Moses,
First at all thanks for your help! Im building a web application. The first <a href> tag its supossed to move to the other <a> tag below. Its works in chrome and IE but I dont get it on firefox.
Ah, okay! I understand you, now.
I don't know much about programming so I'm not the best person to help you on this issue, but I'll get someone else to help you out with this.
I've also escalated this thread to the SUMO Help Desk who are full-time Mozilla employees.
Modified
Thanks for your time Moses!
You seem to be using Unicode quotes instead of the normal quotes ("), so check your code.
Hi cor-el,
Thanks for your time. No, I´m using normal quotes
What is the resulting code send by the server after it has been processed?
I looked in the mdn website and found some references to the asp/jsp method you are using and looks at some templates:
- http://ejohn.org/blog/javascript-micro-templating/ seems to match best, you seem to be missing a "/"
- Check out the rest here https://developer.mozilla.org/en-US/d.../JavaScript_templates
stackoverflow.com will have some better insight on ASP.net methods:
If the issue continues, please file a bug with [dev.webcompat.com] :-)
Chosen Solution
Hi everybody!!
I finally solve the problem. I dont know what was the real problem but Im going to explain how I solve it. That code was in a iframe that is located in a parent jsp and it is empty until I call a javascript function which calls a jsp in the server and this fill the iframe.
Cor-el The text in the id and in the href are exactly the same.
Well, if I open that iframe in a new tab the href works but not in the parent frame. My solution was to delete the iframe and write the code directly in the parent jsp. I don´t know if you understand because it´s difficult to explain and more in English for me...
PD: Thanks everybody for your help and thanks guigs2 for the information!