CodeCanyon

Jquery Webkit Problem

328 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • Albania
  • Referred between 1 and 9 users
Katro says

Hey guys i have been asking on the forums of themeforest what is the problem going on with the caption plugin i`m using on my portfolio, but it seems like no one could find the problem :S

THe problem is this: I have a small jquery script that when i go with the mouse over my thumbnail images on my gallery the caption will slide from the bottom, it works fine when i try it locally, i mean by opening the html, and it works fine with IE and Mozilla and Chrome Locally, when i upload it on the server, it does not work on Chrome, what i have noticed is that, when i first open the page the url is like this http://mybrainart.com/#all , the caption does not work, if you click the logo which takes you again to the same page, the url changes to http://mybrainart.com/index.html#all and the plugin works fine, the same if you refresh the page, it works, but if you try to refresh it again it does not work again, is kinda weird and i cannot find a solution, i could just take this thing off my site but im just getting obsessed with this, i wanna know whats the problem, if you jquery ninjas knows how to deal with this please tell me! here is the link to try it by your own http://www.mybrainart.com

Posted 2 years ago Permalink
1384 posts
  • Has been a member for 2-3 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a File in an Envato Bundle
  • Community Moderator
  • Author had a Free File of the Month
  • Exclusive Author
  • Beta Tester
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Australia
  • Referred between 200 and 499 users
dtbaker says

jQuery isn’t loading fast enough the first go for captify.js to use it, when you refresh it loads from cache and works fine. Try a newer version of jquery.js OR move captify.js script entry down the page a litte bit. Yes odd issue.

Posted 2 years ago Permalink
dtbaker is an Envato staff member
144 posts
  • Has been a member for 1-2 years
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • India
5thSenseLabs says

I think your problem is in image loading, try to put your code in $(function(){ }) rather than $(document).ready();

Posted 2 years ago Permalink
328 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • Albania
  • Referred between 1 and 9 users
Katro says

Still it doe not work guys! im getting crazy! im getting on the conclusion that im gonna stop searching for a solution :/

Posted 2 years ago Permalink
17 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • United States
makfak says

It looks like captify isn’t namespaces correctly. Look at the last line on your tinyTips.js plugin and you’ll see…

})(jQuery);

This is the proper way to namespace a jQuery plugin. Captify fails to namespace at all…

});

Edit the last line of the captify.js and, my hunch is, you’ll be all set.

If that doesn’t work… you might want to move your captify call, which is currently in a doc.ready…

$(document).ready(function(){
     $('.captify').captify({});
});

... into a window.load so that it doesn’t fire until after all the image have loaded.

$(window).load(function(){
     $('.captify').captify({});
});

Best of luck.

Posted 2 years ago Permalink
328 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • Albania
  • Referred between 1 and 9 users
Katro says
It looks like captify isn’t namespaces correctly. Look at the last line on your tinyTips.js plugin and you’ll see…
})(jQuery);

This is the proper way to namespace a jQuery plugin. Captify fails to namespace at all…

});

Edit the last line of the captify.js and, my hunch is, you’ll be all set.

If that doesn’t work… you might want to move your captify call, which is currently in a doc.ready…

$(document).ready(function(){
     $('.captify').captify({});
});

... into a window.load so that it doesn’t fire until after all the image have loaded.

$(window).load(function(){
     $('.captify').captify({});
});
Best of luck.

Mate really thanks, but it still does not work :S it seems to me like impossible, i try it both but it does not work! :S

Posted 2 years ago Permalink
by
by
by
by
by