Arhiv za kategorijo ‘HTML, CSS, JS’

Alerting user about changes when leaving a form

Intro

Article title and it’s meaning is maybe a little dubious for some people, so let me explain. What I want to present to you today is a neat trick to stop users from leaving a web form without submitting data.
Some of you experienced similar trick if you are using gmail. This message appears when you try to leave a page when there is small loading note present on top of the screen, this note shows when you are preforming some action (for instance: deleting or moving a lot of emails). Although i don’t know how they coded this, the principle should be the same as it is explained in this article.

Preberi ostalo »

Problems with displaying CMYK images in Internet Explorer

Problem description

This is another special IE “feature” which I stumbled upon just recently. The problem was, that images were not displayed in older IE versions(including and below 8) and Firefox 2.X in all other browsers everything was perfect.
In browsers which are to old to support CMYK image type there was just small red X in IE and empty space in Firefox even after confirming that HTML code was valid and image tag was inserted correctly. After this basic tests, I had no clue what the hell was going on, so I had no choice but to google it and soon after few missed hits I managed to get a jackpot:)

Preberi ostalo »

Magento – Fatal error: Call to a member function setQuote() with Paypal payment method

Error description

There is probably more then one situation where this error can display and cause headache for developers, in our case this error appeared when shop users payed with paypal payment method and then at the last step, when customer had already entered his paypal data and when order is confirmed by paypal and a redirect back to store took user to a page displaying this fatal error.

Preberi ostalo »

Magento override model

V tem tutorialu bom na kratko opisal kako narediti rewrite model v svojem modulu in na katere stvari je potrebno biti pozoren. Magento omogoča, da core datoteke prekopiramo v local in tam dodamo/spremenimo po svoje, kar je zelo dobro saj ne spremenimo samih core datotek.
Preberi ostalo »

Robots.txt / Robots meta tag / .htaccess X-Robots-Tag

So let’s say you’re working on a project that’s hosted on a live http server and you don’t want any content to be indexed by search engines. The first and probably most obvious solution would be ‘just lock down everything with a password/.htpasswd file’. While this can be a quick solution, sometimes you just can’t use it (a lot of people working on the project, link to the project gets passed around a lot to other people who are involved in the production, your customer has a very bad memory and forgets all the passwords very quickly, etc…)
Preberi ostalo »

CSS pseudo classes

Pseudo elementa :after in :before, sta elementa na katere pozabi večina spletnih dizajnerjev/coderjev, kar je zelo žalostno saj so možnosti katere ponujata naravnost awesome!
Preberi ostalo »

{box-sizing: border-box}

Khm! Se vam je že zgodilo, da ste želeli da element zapolni vso širino, ki je na voljo (witdh:100%;)? Pri tem pa ste želeli, da bi vsebina tega elementa imela nekaj odmika od zunanjih robov (padding:10px;), če je odgovor pritrdilen, potem nisem edini ki mu izpadajo lasje.
Preberi ostalo »

LESS CSS

Less CSS je t.i. dinamični stilski jezik. Pravzaprav pa je “le”nadgradnja že vsem znaneg CSS jezika. Uporaba LESS je predvsem priročna pri večjih projektih kjer se veliko vrednosti podvaja čez celoten .css file.
Preberi ostalo »

Magento, cron in cache

Pogledali smo si že Cron opravila ter Magento – kako nastaviti CRON za vašo spletno trgovino danes pa bomo pogledali še kako cache vpliva na Cron.

Preberi ostalo »

Prenos denarja s PayPal business account na kreditno, debetno, predplačniško kartico in TRR

Transfer funds from your PayPal account to your Visa® branded credit, debit or prepaid card.

Neposreden prenos denarja s PayPal-a je omogočen le za lastnike VISA (Pay Before), debetne (Pay Now) in kreditne (Pay Later). V članku vam predstavljamo način prenosa denarja s PayPal računa na vaš TRR, ki pa je možen le v kolikor poznate nekoga, ki ima Visa kartico povezano s svojim PayPal računom in preko katerega lahko prenesete denar.

- V primeru, da posedujete VISA kartico je prenos denarja enostaven (withdraw).
- V primeru, da Visa kartice ne morete ali ne želite pridobiti in vseeno želite prenesti denar na vaš TRR, lahko denar prenesete na naslednji način.
Preberi ostalo »