I'm tearing my hair out trying to figure out what's causing a conflict in my code ... everything works perfectly in Firefox, but, as usual, IE is totally busted. I've been trying to spot it for weeks and I JUST. CAN'T. FIND. IT.
Can someone lend a helping hand? FYI, the complete page is here:
[15.03.1970 17:51:48] JavaScript - http://mysarasotashortsale.com/wp-content/themes/einat/js/image_hover.js
Linked script compilation
Syntax error at line 1 while loading: expected expression, got '<'
<script type="text/j
^
[29.01.1970 5:34:24] JavaScript - http://mysarasotashortsale.com/test/
Inline script thread
Uncaught exception: TypeError: '$(document).ready' is not a function
Error thrown at line 80, column 0 in http://mysarasotashortsale.com/wp-content/themes/einat/js/contact.js:
$(document).ready(function(){
[20.03.1970 7:05:15] JavaScript - http://mysarasotashortsale.com/test/
Inline script thread
Uncaught exception: TypeError: '$(document).ready' is not a function
Error thrown at line 2, column 1 in http://mysarasotashortsale.com/test/:
$(document).ready(function(){
[02.04.2012 17:09:00] JavaScript - http://mysarasotashortsale.com/test/
Inline script thread
Uncaught exception: ReferenceError: Undefined variable: ajaxurl
Error thrown at line 1, column 102 in <anonymous function>(b) in http://mysarasotashortsale.com/wp-includes/js/wp-lists.js?ver=20110521:
c={settings:{...
called from line 1, column 0 in http://mysarasotashortsale.com/wp-includes/js/wp-lists.js?ver=20110521:
(function(b){var a=...
use [code]YOUR CODE GOES HERE[/code] or burn in Hell
for the very first sight your page has more than one $(document).ready(); functions i don't think this is correct. the code itself swarms with various scripts inline and linked and i believe nobody here will puzzle it out.
use [code]YOUR CODE GOES HERE[/code] or burn in Hell
for the very first sight your page has more than one $(document).ready(); functions i don't think this is correct. the code itself swarms with various scripts inline and linked and i believe nobody here will puzzle it out.
incorrect. you can have as many document.ready blocks as you want. it was writtent with such usage in mind.
that being said, you've got yourself a library conflict. you've got jquery and scriptolicious on the same page but it doesnt appear you are implementing no conflict correctly.
jquery isnt loading properly becuase of the conflict so all your jquery code is getting broken ( you need to install firebug or similar and start using it to prevent yourself some hair loss from stress )
Thanks, Dan - I do have Firebug installed, but I've never quite figured it out. That said, it all works in Firefox
I'm looking at IE's developer tools and it's throwing these errors when I try to submit the form (I don't get any errors with Firebug):
SCRIPT16389: Failed
jquery.min.js?ver=3.3.1, line 56 character 155
SCRIPT16389: Failed
jquery.min.js?ver=3.3.1, line 56 character 155
SCRIPT16389: Failed
jquery.min.js?ver=3.3.1, line 79 character 316
SCRIPT16389: Failed
jquery.min.js?ver=3.3.1, line 56 character 155
SCRIPT16389: Failed
jquery.min.js?ver=3.3.1, line 56 character 155
wp-lis...0110521 (line 1)
"NetworkError: 404 Not Found - http://mysarasotashortsale.com/wp-content/themes/einat/images/bg-meta-700.png"
bg-meta-700.png
$ is not a function
[Break On This Error]
let me take that back - I don't see any errors that are new. This site is done through Wordpress and there have always been little conflicts.
Everything on the site was working until I added the basic form in the middle of the page, which uses WP's packaged jQuery just to slide the tab over; from there, the form doesn't submit (in fact, it does nothing but throw errors). It's quite frustrating.
Bookmarks