Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-28-2011, 05:56 AM   PM User | #1
griffinjt
New to the CF scene

 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
griffinjt is an unknown quantity at this point
jCaption and IE Hyperlink Bug - will pay for the solution!!!

Hello,

I am very frustrated with this bug and I am willing to pay for the correct solution. It involves jQuery, the jCaption plugin and IE.

Basically what happens is that when jCaption is being used on an image in IE, the image hyperlink does not work correctly. The hyperlink only works for the caption portion of the image. I need it to work for the entire image.

This is urgent, and I willing to pay up to $50 for the solution via PayPal.

You can view an example here: http://shooters.tgmtestserver.com/talent/

Hover over the image in IE and try to click on the image. The hyperlink does not work for the image, only the caption. This needs to be fixed.

Thomas
griffinjt is offline   Reply With Quote
Old 02-28-2011, 08:01 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
In your html file, change
Code:
<script type="text/javascript">
$('img.captify').jcaption({
	wrapperElement: 'span',
	wrapperClass: 'caption',
	captionElement: 'span',
	imageAttr: 'alt',
	requireText: true,
	copyStyle: false,
	removeStyle: true,
	removeAlign: true,
	copyAlignmentToClass: false,
	copyFloatToClass: true,
	autoWidth: true,
	animate: true,
	show: {opacity: 'show'},
	showDuration: 400,
	hide: {opacity: 'hide'},
	hideDuration: 400	
});
</script>
In custom.css
Code:
/* :..[ Image Captions ]..: */
span.caption { margin: 0; padding: 0; position: relative; }
span.caption span { position: absolute; margin: 0; padding: 10px 0 10px 10px; font-size: 22px; bottom: 0; left: 0; background: #fff; color: #111; opacity: .75; filter: alpha(opacity=75); width: 99%; cursor:pointer;}
span.caption img { margin: 0; padding: 0; }
and replace your jcaption.js with the attached one (rename .txt to .js)
Edit:
Basically, your jcaption script makes your markup invalid, since you can't nest a block level element like <div> or <p> inside an inline element like <a>. I've changed all "caption elements" to span and changed css and js accordingly.


Good luck!
Attached Files
File Type: txt jcaption.txt (3.1 KB, 44 views)
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

Last edited by abduraooft; 02-28-2011 at 08:06 AM..
abduraooft is offline   Reply With Quote
Old 03-01-2011, 03:45 AM   PM User | #3
griffinjt
New to the CF scene

 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
griffinjt is an unknown quantity at this point
This solution worked like a charm! Thank you so much.
griffinjt is offline   Reply With Quote
Reply

Bookmarks

Tags
jcaption bug ie

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:41 PM.


Advertisement
Log in to turn off these ads.