![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2004
Posts: 16,116
|
![]() 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 { background:url(vip/orange-bg2.jpg) top repeat-x #fa4c19; } #Site { margin: auto; width: 1000px; background-color: #FFFFFF; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #333333; border-left-color: #333333; } #featured { margin: auto; width: 988px; height:auto; padding:30px 10px 30px 10px; text-align:left; font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#666; } .Content { margin: auto; width: 965px; background-image: url(../images/extreme_16.jpg); background-repeat: no-repeat; padding: 0px 0px 0px 0px; } body, td, th { font-family: Arial, Helvetica, sans-serif; color: #000000; font-size: 13px; } #Site h1 { margin: 0px; font-family: "Arial Black", Arial, "Sans serif"; font-size: 20px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 12px; } .FeaturedArea { padding-right: 12px; padding-left: 12px; background-image: url(../images/extreme_08.jpg); position: relative; padding-bottom: 20px; } .Navigation { background-image: url(../images/extreme_03.jpg); background-repeat: repeat-y; height: 40px; overflow: hidden; } .Navigation ul { margin: 0px; padding: 0px; } .Navigation li { display: inline; float: left; } .Navigation li a { font-family: Arial; font-weight: bold; color: #FFFFFF; display: block; padding: 12px; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid; border-right-color: #000000; border-left-color: #333333; text-decoration: none; } Content CSS that works fine Code:
#wrapper { margin:0 auto; width:970px; } #submain { margin:0 auto; width:970px; } #coupon1 { float:left; width:459px; height:184px; overflow:hidden; padding:0px 12px; } #coupon2 { float:left; padding:0px 5px; } #coupon3 { float:left; width:459px; height:184px; overflow:hidden; padding:0px 12px; } #coupon4 { float:left; padding:0px 5px; } #coupcon { text-align: center; width:970px; } .left { float: left; } .right { float: right; } Code:
<script src="script/jquery-1.6.2.min.js"></script> <script src="script/jquery.PrintArea.js_4.js"></script> <script src="script/core.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. ![]()
__________________
Your Paysite Partner Strength In Numbers! StickyDollars | RadicalCash | KennysPennies | HomegrownCash |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: US
Posts: 5,326
|
Quote:
Aren't you using a JavaScript debugger? Some browsers have it built-in or you may have to install an extension.
__________________
. . Arguing with a troll is a lot like wrestling in the mud with a pig, after a couple of hours you realize the pig likes it. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,223
|
Post a live link and we'll fix it
![]() 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(); ![]()
__________________
![]() I've referred over $1.7mil in spending this past year, you should join in. ![]() ![]() I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,223
|
Are you using the default finished .js files from that link? If so, try changing class="clickprint" to class="print"
__________________
![]() I've referred over $1.7mil in spending this past year, you should join in. ![]() ![]() I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | ||||
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2004
Posts: 16,116
|
Just sent you an ICQ. I'd rather not have this on the board.
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() { $('.print').click(function() { var container = $(this).attr('rel'); $('#' + container).printArea(); return false; }); $('.clickprint').click(function() { var container = $(this).attr('rel'); $('#' + container).printArea(); return false; }); });
__________________
Your Paysite Partner Strength In Numbers! StickyDollars | RadicalCash | KennysPennies | HomegrownCash |
||||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2004
Posts: 16,116
|
Quote:
![]()
__________________
Your Paysite Partner Strength In Numbers! StickyDollars | RadicalCash | KennysPennies | HomegrownCash |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,223
|
Do you have to declare media="print" and media="screen" separately in CSS for it to work? Just guessing here..
![]()
__________________
![]() I've referred over $1.7mil in spending this past year, you should join in. ![]() ![]() I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,223
|
![]()
__________________
![]() I've referred over $1.7mil in spending this past year, you should join in. ![]() ![]() I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2004
Posts: 16,116
|
I did not thinking that I was only printing images, so css for printing wouldn't be necessary, but I just added it anyway, and nothing changed.
__________________
Your Paysite Partner Strength In Numbers! StickyDollars | RadicalCash | KennysPennies | HomegrownCash |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2004
Posts: 16,116
|
Jesus christ. Figured it out.
Every included CSS has to have the media="" attribute. That's what was breaking it. ![]()
__________________
Your Paysite Partner Strength In Numbers! StickyDollars | RadicalCash | KennysPennies | HomegrownCash |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,223
|
Quote:
![]() Glad you got it working ![]()
__________________
![]() I've referred over $1.7mil in spending this past year, you should join in. ![]() ![]() I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2004
Posts: 16,116
|
Quote:
![]() I had one stylesheet that wasn't using that attribute and it screwed it all up.
__________________
Your Paysite Partner Strength In Numbers! StickyDollars | RadicalCash | KennysPennies | HomegrownCash |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Industry Role:
Join Date: May 2005
Location: UK
Posts: 1,201
|
Should have left the cats in, that also fixes it ;)
|
![]() |
![]() ![]() ![]() ![]() ![]() |