Solved

Simple Web Based Directory based on area

Posted on 2011-02-20
2
172 Views
Last Modified: 2012-05-11
I am looking for a Simple Web Based Directory based on area, then select a listing type and then display businesses with contact information.

select a city from a displayed dynamic list, example sunnyvale
select a category from a displayed dymanic list, example lawyers
then it would just list the layers in sunnyvale....

The lists can be in text file.

Please let me know if anyone has ideas...
0
Comment
Question by:tech-
2 Comments
 
LVL 11

Accepted Solution

by:
VanHackman earned 500 total points
Comment Utility
Are you looking for examples about how to develop something like this or just a website similar to the one that you provided?

If you are looking for examples about how to develop a site similar here are the things that you will need to know.

You will need to know how to populate elements based on the option selected in some select, this something that in general is known like "dinamic lists", see the following example:

http://www.9lessons.info/2010/08/dynamic-dependent-select-box-using.html

There you could see how to populate a list based on the option selected in a differen list.

Well the login that you will need to use for developing a site like that is exactly the same...

In the example, you already have the part of how to know when a specific option is selected in the select box, and how to query the DB according to the value of that select.

The single difference will be that, instead of populating another select like in the example, you will need to populate a whole sectin of your site, say a "div".

So, it's very simple:

1 - Create the DB part.
2 - Create a Php script that given an specific variable, returns the table for the related elements.
3 - Use the example above to dynamicaly query the script from point number 2 and load the resulting table in a specific div.

For the point number 3, all that you will need to know is:

http://api.jquery.com/load/

Hope this help,
VanHackman!
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
This application has kind of "been done" already.  http://www.yellowpages.com/

The general design that people use to access this sort of information is to make a plain-text search.  The linked select lists went out of style with web 1.0.
http://lmgtfy.com?q=Lawyers+in+Sunnyvale
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now