This is my code below...
<div class="AccordionPanelTab" onclick="MM_swapImage('document','','<?php echo $filepath; ?>{filedimg}',1);document.getElementById('docLink').href='<?php echo $filepath; ?>{filedpdf}';">{formid} {description}</div>
onclick, i was trying to call 2 functions.
the first one works fine but the second part to change url does not work in FireFox and Safari.
it only works with IE8 and Chrome..
do u have any idea why??
{filedpdf} and {filedimg} are for reading from xml.
i think /document.getElementById('docLink').href/ this is not compatible with all the browsers??
<div class="AccordionPanelTab" onclick="MM_swapImage('document','','<?php echo $filepath; ?>{filedimg}',1);document.getElementById('docLink').href='<?php echo $filepath; ?>{filedpdf}';">{formid} {description}</div>
onclick, i was trying to call 2 functions.
the first one works fine but the second part to change url does not work in FireFox and Safari.
it only works with IE8 and Chrome..
do u have any idea why??
{filedpdf} and {filedimg} are for reading from xml.
i think /document.getElementById('docLink').href/ this is not compatible with all the browsers??