dynamically creating a number of thumbnails, which is working fine. However,
they are supposed to call a function loadRightFrame when clicked, and I seem
to be running into syntax problems. This code:
pagecontent+='< img width="70" height="70" border="0" src="' + thumbArray[i]
+ '" onClick="loadRi ghtFrame(\"' + photoArray[i] + '\")">'
resolves to this:
pagecontent+='< img width="70" height="70" border="0"
src="pictures/unt/kl1.jpg" onClick="loadRi ghtFrame("pictu res/unt/gr1.jpg")">
I obviously cannot use double quotes OR single quotes when passing
parameters to the loadRightFrame function. Escaping the quotes is not
working either. Any ideas?
Greets,
A
they are supposed to call a function loadRightFrame when clicked, and I seem
to be running into syntax problems. This code:
pagecontent+='< img width="70" height="70" border="0" src="' + thumbArray[i]
+ '" onClick="loadRi ghtFrame(\"' + photoArray[i] + '\")">'
resolves to this:
pagecontent+='< img width="70" height="70" border="0"
src="pictures/unt/kl1.jpg" onClick="loadRi ghtFrame("pictu res/unt/gr1.jpg")">
I obviously cannot use double quotes OR single quotes when passing
parameters to the loadRightFrame function. Escaping the quotes is not
working either. Any ideas?
Greets,
A
Comment