My facebook style tutorials are very popular among you people and Almost 5000 downloads have been counted for facebook wall script application. Thank you all who like and appreciate my work.
Last few days I was searching about checking domain names availablity using Ajax and PHP. I found some solution and I thought to create a post on my blog so that any one can get this simple script easily. I used jQuery and CSS3 to put some attractive look in this. Share it if you like this tutorial. Thanks a lot !
Popular Tutorials on 99Points
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
$(document).ready(function() { $('#Submit').click( function() { if($('#Search').val() == "") {alert('please enter your domain');return false;} results.style.display = 'none'; $('#results').html(''); loading.style.display = 'inline'; $.post('process.php?domain=' + escape($('#Search').val()),{ }, function(response){ results.style.display = 'block'; $('#results').html(unescape(response)); loading.style.display = 'none'; }); return false; }); |
Results are being fetched from which APi? can you please point that piece of code connecting to that API, from which results are being fetched?
They is in the process.php file.
No it needs to be:
if (preg_match(“/”. $who[1] . “/”, $buffer, $buffer))
Replace:
if(eregi($who[1], $buffer))
With:
if (preg_match(“/”. $who[1] . “/”, $buffer, $buffer))
Thank you very much. Very nice and useful script. It work fine on my server.