View Full Version : coords cross-browser problem

09-13-2008, 09:13 PM
Hi all,

I have been searching all over the net to try to find a solution to this problem but I am still stuck with it.

I have this two lines of code:

document.getElementById("pict_sel").coords = xmlDoc.getElementsByTagName("pict_sel_coords")[0].childNodes[0].nodeValue;
document.getElementById("pict_sel").onclick = new Function("SelectPict('gal','pict_id','lang');");

All works fine under IE and Firefox but the first line (the setting of the coords) fails on Safari and Google Chrome.

Any ideas as to what I am doing wrong?
Your help will be greatly appreciated.