Sharethis button does not work on pages loaded via ajax
After adding the new content to the dom, call stButtons.locateElements(); // or if you want to be a bit defensive about whether the lib has been // loaded or not: if...
View ArticleJquery append to top
jquery append to front/top of list some content in the div and need to append some data at the top of the previous content inside that div by moving the remaining content down after a jquery function...
View ArticleMake Bootstrap Popover Appear/Disappear on Hover instead of Click
You can handle the show and hide events for the popover: Put this script on bottom of the page towards close body tag. $(document).ready(function() { $("[rel=drevil]").popover({ placement : 'bottom',...
View ArticleAccessing elements of ajax html response with jquery
Access elements of a html response of an ajax request. $.ajaxSetup( { success: function(html) { alert($('#span', html).html()); } }
View Article_gaq is not defined error
If you’re using Universal Analytics (analytics.js) then switch this: _gaq.push(['_trackEvent', 'Downloaded Video', 'Yes']); to this: ga('send', 'event', 'Downloaded Video', 'Yes');
View Articlejquery rotation not working in ie
Some code which is suppose to rotate a div and make it move up. Its working in all browsers apart from IE his is actually quite a common problem (particularly for developers, as IE defaults to...
View Articlegmap3 map zoom cluster click
To zoom into a cluster, you double click, else single click It’s much better to add the event to the cluster itself. { action: 'addMarkers', radius:40, maxZoom:10, markers: content.Destination,...
View ArticleJQueryUI Slider – Tooltip for the Current Position
Please take note this tutorial is intended for intermediate levels of experience. Having said that, It’s still relatively easy to follow, so long as you are fairly familiar with CSS and jQuery. Let’s...
View ArticleTwitter Bootstrap Modal stop Youtube video
Explain how you can get boostrap model video to stop playing because when close the model, still hear it in the background. There is a nice proper way of doing this. Could get the model iframe src...
View ArticleMasonry js first time overlaps
When page load first time masonry overlaps images, and after refresh it work fine. Images were overlapping at the first loading time. Overcome this by first loading the images. If the images are loaded...
View Article