I'm getting a javascript error on every page load using IE 6 and 7. This isn't my install only -- I get it on wpframework.com too. Do you have a fix?
js error: expected identifier, string, or number
(4 posts) (3 voices)-
Posted 9 months ago #
-
I get this same error. I had to comment out a line in functions.php so that screen.js is not loaded. Screen.js makes the dropdown menus work. I'm not using them so this works for me but it would be good to have an actual fix and sadly I'm not proficient enough with javascript to figure out the actual error.
Here's the code I changed in functions.php:
function framework_media() {
wp_enqueue_script( 'hoverIntent' );
wp_enqueue_script( 'supersubs', JS . '/supersubs.js', array( 'jquery' ) );
wp_enqueue_script( 'bgiframe', JS . '/jquery.bgiframe.min.js', array( 'jquery' ) );
wp_enqueue_script( 'superfish', JS . '/superfish.js', array( 'jquery' ) );
//wp_enqueue_script( 'screen_js', JS . '/screen.js', array( 'jquery' ) ); LLL: removed dropdown function b/c of IE7 error
}Posted 9 months ago # -
Hmm.. Since I'm developing on a mac, I haven't been able to test on IE. I'll install VM Ware today and see if I can fix this issue. Thanks for pointing this out guys, I'll let you know when I find a fix.
Posted 9 months ago # -
Alright, so I'm viewing http://wpframework.com on Windows XP IE6 and I'm not getting any error. Have you guys changed any settings or something?
Edit:
My mistake, an error did exists in screen.js. There was an extra comma for the last parameter which triggered the error. The latest trunk fixes this issue, and it'll be included in the next WP Framework update (0.2.4.10).Posted 9 months ago #
Reply
You must log in to post.
resolved