Tutorials

Drupal Search Box

How to change the search box value?
By default, the search box value is NULL.

If we want to add a default value, below is the step or guidance:-
1. Open modules/search/search.module
2. Search for search_box function.
3. Update #default_value variable (line 1070).

Some theme, by default, they can set the value like zen theme.

Enjoy!

Getting started with Ajax

Ajax, so called a heaven for programmers and developers, since it doesn't requires the page to refresh to processing. Ajax was first introduced by Google back in 2005, and transformed into today's Google suggest, the best example and trademark of Google.

In this tutorial, I'll use back Google suggest to demonstrate getting started with Ajax, as I still feels it's the best example to demo Ajax. Let's get the party started!

Altogether, we'll need just 3 scripts to getting started with first Ajax, though it can be then optimized to be just 2 scripts, but I think 3 are better.

Syndicate content