Search and Top Navigation
#14897 closed bug (notabug)
Opened January 08, 2016 09:45AM UTC
Closed January 13, 2016 03:48PM UTC
Last modified January 13, 2016 05:49PM UTC
Problem using <script> as a first child after first div with id="acordion"
| Reported by: | MeMofoGit | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | none |
| Component: | ui.accordion | Version: | 1.11.3 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
Hi i have a problem using accordion. It seems like accordion applies the properties to the first child of the first div with the id of accordion, in this case im using <script> as a first child and it doesnt work. it would be nice if the ui could check this kind of tags for use the next tag in this cases. I know i could put a document.write("div id='acordeon'"); and make it work but it would be nice if you could check this :)
sorry my english :(
#!text/html
<div id="acordeon">
<script>
for(i=1; i<aProvincias.length; i++) {
document.write('<h3>'+array[i]+'</h3>');
document.write('<div>');
document.write('<p><img src="Escudos/'+i+'.jpg"></p>');
document.write('</div>');
}
</script>
</div>
Attachments (0)
Change History (2)
Changed January 13, 2016 03:48PM UTC by comment:1
| resolution: | → notabug |
|---|---|
| status: | new → closed |
Changed January 13, 2016 05:49PM UTC by comment:2
| description: | Hi i have a problem using accordion. It seems like accordion applies the properties to the first child of the first div with the id of accordion, in this case im using <script> as a first child and it doesnt work. it would be nice if the ui could check this kind of tags for use the next tag in this cases. I know i could put a document.write("div id='acordeon'"); and make it work but it would be nice if you could check this :) \ \ sorry my english :( \ \ <div id="acordeon"> \ <script> \ for(i=1; i<aProvincias.length; i++) { \ document.write('<h3>'+array[i]+'</h3>'); \ document.write('<div>'); \ document.write('<p><img src="Escudos/'+i+'.jpg"></p>'); \ document.write('</div>'); \ } \ </script> \ </div> → Hi i have a problem using accordion. It seems like accordion applies the properties to the first child of the first div with the id of accordion, in this case im using <script> as a first child and it doesnt work. it would be nice if the ui could check this kind of tags for use the next tag in this cases. I know i could put a document.write("div id='acordeon'"); and make it work but it would be nice if you could check this :) \ \ sorry my english :( \ \ {{{#!text/html \ <div id="acordeon"> \ <script> \ for(i=1; i<aProvincias.length; i++) { \ document.write('<h3>'+array[i]+'</h3>'); \ document.write('<div>'); \ document.write('<p><img src="Escudos/'+i+'.jpg"></p>'); \ document.write('</div>'); \ } \ </script> \ </div> \ }}} |
|---|
Please see the documentation for the header option.