<meta property="fc:frame" content="vNext" /> <meta property="fc:frame:image" content="https://blog.flashsoft.eu/images/og/default-og-blog-opt.webp" /> <meta property="fc:frame:post_url" content="https://blog.flashsoft.eu/fc-frame-handler" /> <meta property="fc:frame:button:0:post_redirect" content="Visit Page" /> <meta property="fc:frame:button:0:action" content="link" /> <meta property="fc:frame:button:0:target" content="https://blog.flashsoft.eu/tag/web-dev/page/3" /> <meta property="fc:frame:button:1" content="About Author" /> <meta property="fc:frame:button:2" content="About Blog" /> <meta property="fc:frame:button:3" content="Support Blog" />

Tag Web Development

The new native-lazy load Vue Component

So since April 2020 we have a browser native support to do lazy loading of images which is great, so i decided to write a quick Vue component that uses that functionality.

One problem with the lazy native loading is that it won't display any loading indicator when the image loads.

At the moment only Firefox and Chromium(also Android) based browsers are supporting this feature but it behaves very differently, in Chromium-based browsers it loads far from the end of the viewpoint (a very eager l...

View full article

Simplest way to reduce the page number links in Laravel

Recently and currently(Laravel 5.6) Laravel is using Bootstrap-4 and they've updated all their views accordingly, and when you want to use Laravel's pagination feature you may have a bit of a problem in the mobile world as there are too many page links to be shown in an esthetic way on a mobile screen.

So you can do a lot of things to resolve this problem but the simplest way available is to change the view which defines the links listening.
First, we need to publish that view, this will force L...

View full article

Fast way to set up a form with PHPMailer and Ajax

PHPMailer is a popular library for sending emails as the project of the title suggests. In GitHub, the readme file has a nice example of a basic setup, but today I'll give you a similar simple example using jQuery, Swal( Sweet alert ).

So first this is the PHP script that should respond to an ajax request (for example a file named smail.php):

<?php error_reporting(0); // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function use PHPM...
View full article

PHP Class for modifying old HTML static copies / mirrors

Ok you made a static mirror(maybe with HTTrack, maybe with something else) and you still want to host it somewhere, but you also want to make a change to all the static pages without modifying each and every one of the files. In that case, you need to load that file using a script that reads the file at the time of loading then makes the changes you want and after that displays it. Sound simple enough so I made a PHP class that does just that and I even wrote 2 flavors of the script to work on ...

View full article