SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    if ($zee == "Guru") { $zee--;}
    Join Date
    Nov 2005
    Location
    Karachi - Pakistan
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Issue of a NON-Database Website

    Hi Masters

    I have a tricky issue. That is, I m working for my client in USA. He has a website regarding Car Dealers in NewYork. THere is a page where all the car dealers are listed. HE DOES NOT USE ANY SCRIPTING LANGUAGE OR DATABASE He just use Frontpage. PURE HTML FILES. Now he wants that the Feature of Google map to be added to his list of Car Dealers.

    According to the scenario, it simply means that if he has 1000 Car dealers info, then i will have to make 1000 HTML pages for shoing the map through GOOGLE MAP API as the address would change for every dealer.

    Is there any way apart from the DATABASE that we make just one file and pass the address to that page "throug URL parememters like
    "www.some.com?address=this and that" and that page show the map ???

    please gudie

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)

    no db and GET vars

    You can pass GET vars to a page and use javascript. But this would mean the page had all the information in it. It could be a very large weight page. eg (in pseudo-code)
    Code:
    <script...
    //get GET value
    switch (val)
    case 1 show_dealer1_info;
    case 2 show_dealer2_info;
    case 3 show_dealer3_info;
    //ad nauseam
    <div id="dealer1" style=hidden
    blah.. blah ....
    <div id="dealer2" style=hidden
    blah.. blah ....
    <div id="dealer3" style=hidden
    blah.. blah ....
    //ad nauseam
    And this page would be a nightmare to maintain.

  3. #3
    SitePoint Enthusiast navtej's Avatar
    Join Date
    May 2006
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by zeeshanhashmi
    Hi Masters

    I have a tricky issue. That is, I m working for my client in USA. He has a website regarding Car Dealers in NewYork.
    Is there any way apart from the DATABASE that we make just one file and pass the address to that page "throug URL parememters like
    "www.some.com?address=this and that" and that page show the map ???

    please gudie
    Hi zee

    the answer apart from database is using webservices, the only thing you need to do is find a webservice which can do the trick for you, or made or ask to make one for you.

    thanks

    navtej

  4. #4
    if ($zee == "Guru") { $zee--;}
    Join Date
    Nov 2005
    Location
    Karachi - Pakistan
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey can any one give me a lil example of using GET varialbe with javascript ?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •