Today this thing got me frustrated, let’s straight to the main problem, before I forget create js function to load from an URL contains json…
Continue reading Knockoutjs: populate json url data to select options
Comments closedIndonesian Magento Developer
Today this thing got me frustrated, let’s straight to the main problem, before I forget create js function to load from an URL contains json…
Continue reading Knockoutjs: populate json url data to select options
Comments closedi wrote some jquery script to perform infinite scroll WordPress posts on magento site, here you go <style> /*hide the toolbars */ .pager.pager-no-toolbar{ display:none; }…
Continue reading Magento : Infinite Scroll for WordPress Posts Integration on Magento
Leave a Commentif you a web developer, this is one the most common issue when you develop a website, yes… some css script not working properly on…
Continue reading CSS tricks for Cross Browser Issues
Leave a Commenthere some jquery tricks for select button: anyway, i just use following tricks coulpe minutes ago 😀 here we go! /* sort options by text…
Continue reading JQuery: Manipulate Select Button
Leave a Commentthis is useful trick, i found on stackoverflow monggo gan open js/mage/adminhtml/wysiwyg/tiny_mce/setup.js find this block : var settings = { mode : (mode != undefined…
Continue reading Magento : Add certain tags (iframe, script, etc) in CMS editor?
Leave a Commentuse this script to check is your server meet the requirement to run Magento enjoy gan !!! <?php extension_check(array( ‘curl’, ‘dom’, ‘gd’, ‘hash’, ‘iconv’, ‘mcrypt’,…
Continue reading PHP Script to Check Magento Server Requirement
1 Commentjust figure it out couple minutes ago, hope this is useful jQuery(‘body’).each(function(index) { jQuery(this).find(‘*’).each(function() { var cur_size =Â jQuery(this).css(‘font-size’); //alert(cur_size); cur_size = cur_size.replace(“px”,””); jQuery(this).css(‘font-size’, (cur_size…
Continue reading jQuery : Increase / Decrease All Element Font Size
Leave a Commentto detect when browser is scrollable, use below jQuery script: if (jQuery(document).height() > jQuery(window).height()) { //alert(‘scroll bar exist’); }else { //alert(‘scroll bar Not exist’);…
Continue reading jQuery: Detect if Browser Scrollable
Leave a Commentthis example css code, to perform animate like jQuery, but without any js code, but following code works on modern browser only <style> .theBox…
Continue reading CSS: Animate with CSS Only
Leave a Commentthis an old trick, but very useful for me, especially when dealing with html page only or simple php, here you go, put this code…
Continue reading HTML : Avoid Page Cache
1 Commenti will show you, example code, how to create map directions use Googgle Map, here is the code: <style> #map_canvas { width: 100%; height:…
Continue reading Javascript: Create Map Directions by Google Maps
Leave a Commentlet say..you want to modify/add style inside DIV tag contains “Jhon” string below example the code <div>John Resig</div> <div>George Martin</div> <div>Malcom John Sinclair</div> <div>J. Ohn</div>…
Continue reading jQuery: Search String Inside DIV tag
Leave a Commentit is very stupid way to create jquery tabs… the CSS code: .product-tabs li a{ float: left; display: block; padding: 20px 0px; width: 187px; text-align:…
Continue reading jQuery: Stupid Way to Create Tabs
Leave a Commentthis example of jQuery snippet for animated scroll-up <a href=”#”>Back to Top</a> <script> $(document).ready(function(){ $(‘#do-nothing’).click(function(e) { $(‘body,html’).animate({“scrollTop”:0},’slow’); }); }); </script>
Continue reading jQuery:Animated Scroll Back to Top
Leave a CommentThis snippet will prevent the default behaviour of a hyperlink <a href=”#”>Go </a> <script> $(document).ready(function(){ $(‘#do-nothing’).click(function(e) { e.preventDefault(); }); }); </script>
Continue reading jQuery: Prevent Href/Hyperlink
Leave a Commentthis is example how to add an external JS/CSS files to magento header into layout file : <default> <reference name=”head”> <block type=”core/text” name=”google.cdn.jquery”> <action method=”setText”>…
Continue reading Magento: Add External JS/CSS File to Header Tag
Leave a Comment