What's New

Real time display input value in div with jQuery

I used this simple trick to display the name of a person after he sends the form data via Ajax and I needed a different response(not from Ajax), so, I set the response message to display:none via css and get the name or other informations in real time… when the form is submitted… the div becomes visible and shows the result… like Thank you {Name} for sending us etc. …

You can see a live demo here.

Download(Forced) PDF file with PHP HEADER

CSS & HTML click on links and text select bug

If you ever got in trouble with this problem… like… you can’t click on links because something else is covering them(invisible div or something like that)… you just need to add this simple CSS trick to the div via a class or id…

Send data to PHP via AJAX and get response

This is the simple script that I use every time I build one page sites… I use this code to update, delete, modify, add data to Mysql or other DB’s…

This code also get the class or id of the clicked link and can display a result there or in another div… this script can also be modified to play other important parts in the web app…

Hope it helps.

Resolve Google Page Speed “Leverage Browser Caching” Problem

PHP – set hour to Eastern European Time(Bucharest)

This is the test script, you normally just need the first line of code.

jQuery (Ajax) Contact form with all elements

This is my default CONTACT form built with jQuery and CSS.
The form uses a jQuery call to a PHP script that inserts data into a Mysql DB and sends two emails of confirmation, all this under the hood… meanwhile, there is a CSS only animation that displays a message that the data is been sent to the server and shows a positive message if that data was sent without errors and an error message if there was an error.