FVxSF Posted June 6, 2008 Share Posted June 6, 2008 Ok, here's the problem. I have a <select> with an onChange event that calls a PreviewImage(); function in the Head of the XHTML page. This works fine with Firefox as we all know but for some reason or another I keep getting an "Object Expected" error. So I moved the function to the <body> and it works. I'm not great with JS but I can work my way around it. Is there any specific reason this doesn't work in the <head>? Thanks Link to comment https://forums.phpfreaks.com/topic/108998-onchange-works-in-ie-but-not-really/ Share on other sites More sharing options...
FVxSF Posted June 6, 2008 Author Share Posted June 6, 2008 I'm not sure why this is but I removed my functions from the <script> section that was with TinyMCE and stuck them in their own <script> and seems to be working fine now. Link to comment https://forums.phpfreaks.com/topic/108998-onchange-works-in-ie-but-not-really/#findComment-559208 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.