Categories

Generate mySQL dump for mySQL 4.x and below

Share

If you have developed a website in mySQL 5.x and your client somehow manages to purchase a hosting which supports mySQL 4.x (don’t know how this could happen but it happened to me once) then you can do the following to generate SQL script in the right version by using

mySQLDump Go to the [...]

Disable Enter key on form

Share

If you need to disable JavaScript on your form then apply the following code in the <head> tag.

<!– <script language=”javascript” type=”text/javascript”> function checkEnterkey(evt) { var evt = (evt) ? evt : ((event) ? event : null); if (evt.keyCode == 13) { return false; } } document.onkeypress = checkEnterkey; </script> –>

Tweet

Firefox not detecting form elements populated through AJAX

Share

While working on a PHP script I encountered a problem which was working fine on IE but not on Firefox.

I was trying to display a list of records through AJAX and user had to select any one to proceed further. To make sure that the user actually selected and then proceeded I [...]