![]() |
CSS interfering with jQuery?
I've been racking my brain on this issue for two days now, and completely recoded my page twice thinking that I forgot or missed something.
So, here's the issue- I'm using this jQuery plugin - http://www.ssdtutorials.com/tutorial...ery-print.html I've coded the content page in a separate html page, with it's own css, and it works fine. Once I dump that html and css into the template, the print function does not want to work. When I click on one of the images, it just has the loading icon in the tab. Basically it's a page with a few coupons on it, and I need to be able to have the user click on one image and have it sent to their printer. Here's my CSS and HTML: Template CSS that's screwing it up Code:
body { Content CSS that works fine Code:
#wrapper { Code:
<script src="script/jquery-1.6.2.min.js"></script> Code:
<div id="buddypass1"><a href="#" class="clickprint" rel="buddypass1"><img src="vip/buddypass01.jpg" width="315" height="166" hspace="0" vspace="1" border="0" class="left" /></a></div> Does anyone have a clue on what's going on? I need to get this project finished asap. :( |
can you upload a live version?
|
Quote:
Aren't you using a JavaScript debugger? Some browsers have it built-in or you may have to install an extension. |
ya use firebug if on firefox, or inspect element on chrome
|
Post a live link and we'll fix it :winkwink:
Without posting it, I could guess that this could fix it: Go to core and find this line: $.extend(pluginOptions, options); Then add this right after: this.die(); :upsidedow |
Are you using the default finished .js files from that link? If so, try changing class="clickprint" to class="print"
|
Quote:
If you didn't get me, hit me up on Skype - awmlace Quote:
Here's the error - Quote:
Code:
return (media.toLowerCase() == "" || media.toLowerCase() == "print") Google'd this - http://stackoverflow.com/questions/1...on-not-working Quote:
Quote:
Code:
$(function() { |
Quote:
|
Do you have to declare media="print" and media="screen" separately in CSS for it to work? Just guessing here.. :upsidedow
|
Quote:
|
Quote:
|
Jesus christ. Figured it out.
Every included CSS has to have the media="" attribute. That's what was breaking it. :Hollering |
Quote:
Glad you got it working :winkwink: |
Quote:
I had one stylesheet that wasn't using that attribute and it screwed it all up. |
Should have left the cats in, that also fixes it ;)
|
All times are GMT -7. The time now is 06:15 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123