Forum Moderators: coopster

Message Too Old, No Replies

How to do search with rounded circle?

         

toplisek

9:59 am on Jan 3, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have seen URL like: [snapnames.com...]
How to do search time delay results like this search?
Is this some specific language?

Readie

3:00 pm on Jan 3, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's using an AJAX request to bring the results after the page has loaded. The little circle thing is just an image displayed whilest the JavaScript is waiting on a return.

Basically, using some form of JavaScript, AJAX can send off a call to another file (PHP / Perl / whatever), and return a value to the script as a JavaScript variable. You can then use JavaScript to manipulate the value (if required) before using it however you wish (innerHTML here).

It's extremely simple to do this if you're in the habit of using jQuery on your sites (jQuery .load() / .ajax() - I love it) - not sure about doing it with traditional JavaScript - I've never had the pleasure of AJAX requests outside of jQuery :).

Matthew1980

3:30 pm on Jan 3, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



^^^

Ajax and jQuery are superb, they are on my list to try and fathom the year, people I know (better programmers than me :)) have redesigned entire systems because of the flexibility of this stuff. For example; you don't need to use form tags, as this is done asynchronously which essentially means that you can do page requests from divs, without needing to do a page refresh, the data is direct, it's quite seamless, so flexible, and makes for tidier code.

Only down side is that it is fundamentally JS, so your clients browsers WILL need it enabled for it to run...

Search ajax/php/jQuery tutorials on google, that's where I intend to start from, then just build from that.

Have fun anyway.

Cheers,
MRb