Difference between Synchronous and Asynchronous Ajax request

Synchronous ( async: false ) – Script stops and waits for the server to send back a reply before continuing. There are some situations where Synchronous Ajax is mandatory. In standard Web applications, the interaction between the customer and the server is synchronous. This means that one has to happen after the other. Synchronous part:… Continue reading Difference between Synchronous and Asynchronous Ajax request

Published
Categorized as Magento

:: Before,:: after properties not supporting in input type in Mozilla firefox.

:before and :after should only work on the element which can act as a container of content. <input> cannot contain any content so it should not support those pseudo-elements. Chrome supports it because it does not follow the spec (or bug?). Reference : https://stackoverflow.com/questions/37653706/before-with-input-in-firefox

Published
Categorized as Magento

How to add Goole Maps To our page?

Easiest Method to add google Maps using embed coded I frame Generator. Using this embebed url , select our location and genarate embebed code. Eg: Embedded Location of Jobin&Jismi. https://maps.google.com/maps?width=600&height=400&hl=en&q=jobin%20and%20jismi&t=&z=14&ie=UTF8&iwloc=B&output=embedhttps://mcpenation.com

Published
Categorized as Magento

How to Set Background Position

After adding a background image and stopping it from repeating, we are able to further control how it looks within the background of the tag by improving its position. We’ll use the background-position property to do this. The selector takes in two values. The first one is for the horizontal position, or x-direction (how far… Continue reading How to Set Background Position

Published
Categorized as Magento

How to add custom font in Magento 2

Add font files to your local theme directory. For example, app/design/frontend/<your_vendor_name>/<your_theme_name>/web/fonts. To add external fonts, configure the font app/design/frontend/<your_vendor_name>/<your_theme_name>/web/css/source/_typography. The mixin generates the CSS, which includes the font. The following example shows how to generate CSS for the Open Sans font in the Blank theme: @font-face {font-family: ‘Open Sans’;src: url(‘../fonts/opensans/light/opensans-300.eot’);src: url(‘../fonts/opensans/light/opensans-300.eot?#iefix’) format(’embedded-opentype’), url(‘../fonts/opensans/light/opensans-300.woff2’) format(‘woff2’), url(‘../fonts/opensans/light/opensans-300.woff’)… Continue reading How to add custom font in Magento 2

Published
Categorized as Magento