Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$8
WP jQuery enqueue strangeness with Gravy framework
James Beardmore | 04/23/10 at 7:44pm
Edit
(2) Possible Answers Submitted...
Note: James Beardmore felt their question was unanswered, so we granted them a refund.
Note: James Beardmore requested a refund. They offered no explanation.
If no one challenges a refund request, then they are automatically granted and proccessed after 48 hours. Admins of this site only review refund requests if someone challenges the request. If you are curious about how we handled previous refund requests, you may read over all refund requests and their challenges.
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
04/23/10
8:06pmMerne Asplund says:This may not help your size issue, but it will ensure you dont have a bunch of jquery versions on the loose.
Use wp_head() as a reference point. This goes in your theme.
<?php wp_head(); ?>
<?php wp_deregister_script("jquery"); ?>
<?php wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js' ); ?>
of course you can change the jquery repository if you wish. -

Last edited:
04/23/10
8:06pmMilan Petrovic says:Problem is most likely due to compatibility mode of jQuery. I will check this theme to see what is actually loading, maybe that is the problem, and I will get back to you.
- 04/23/10 8:10pm
Milan Petrovic says:Well, Gravy theme loads proper jQuery bundled with WordPress. This should work with any other jQuery script as long as the script is compatible with loaded jQuery (1.3.2 in WP 2.9, and 1.4 in WP 3.0). I never load external jQuery, only the one bundled with WP and I always have a lot of jQuery code, and everything works fine.
- 04/23/10 8:17pm
James Beardmore says:Here is a new wordpress install with the theme pretty much unchanged. If its any use to anyone. http://dev.pointydesign.com/oo0410
You can see that the superfish menu animations work fine but the slidedeck on this page http://dev.pointydesign.com/oo0410/?page_id=3 doesnt work unless I hardcode a link to the google version of jquery.
I know its something to do with the theme, its a great framework if only I could work this out! - 04/23/10 8:21pm
James Beardmore says:Sorry I just missed your reply. Take a look at the site above and you can see that even though jQuery is in the header and working fine for superfish the slidedeck, a jquery plugin I added, is not working. If I add a hardcoded link to jquery it works...
- 04/23/10 8:21pm
Milan Petrovic says:Well, I opened slidedeck.jquery.js JavaScript with Firebug in Firefox and it was filled with non printable characters that can't be parsed properly, and that's why it fails. Try to use non compressed version of that file. Maybe jQuery 1.4 can work with that, but jQuery 1.3 surely can't. It's best to compress file again using some proper compressor like: http://javascriptcompressor.com/
- 04/23/10 8:24pm
James Beardmore says:I have just added the google API link to jQuery in the head and you will see that slidedeck now works fine. However yes I was surprised by the characters in slidedeck.
- 04/23/10 8:30pm
Milan Petrovic says:SlideDeck is definitively the problem due to unusual characters in compressed version. My advice is to re-compress it properly and use jQuery bundled with WordPress, because as it looks right now SuperFish is not working on your website, because jQuery from GoogleCode doesn't have compatibility mode set.
- 04/23/10 8:35pm
James Beardmore says:I disagree. That is the state that slidedeck somes when downloaded and works perfectly offline and on many other sites in that state, it was also working perfectly just when I added the hardcoded jQuery link. I agree it needs different compression but its not causing the problem. Also, this happens with any jQuery I try to add into this theme. With any other WP theme I don't have this problem, even when enqueueing scripts.
Superfish doesnt work if I add the hardcoded jquery link, if I remove it you will see that slidedeck now doesnt work but superfish does. - 04/23/10 8:38pm
Milan Petrovic says:There is nothing wrong with the theme. Problem is this file. Firebug reports errors in it, and not in jQuery or SuperFish. Compressed files shouldn't look like that. Superfish will not work with jQuery from Google no matter what else you do.
- 04/23/10 8:43pm
James Beardmore says:I'm going to remove slidedeck and replace it with another jQuery plugin tomorrow and you will see exactly the same thing happening, I have it happening on 3 sites right now with different jquery plugins. Some are totally uncompressed, others are minified etc. I'm not going to put them on here for reasons of confidentiality with clients.
- 04/23/10 8:10pm
This question has expired.
Current status of this question: Refunded
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
