Welcome to WebmasterWorld Guest from 18.206.168.65

Forum Moderators: open

Message Too Old, No Replies

Javascript Store Locator Script

     
8:48 pm on Jun 11, 2004 (gmt 0)

New User

10+ Year Member

joined:July 29, 2003
posts:34
votes: 0


-------
Jun 11, 2004

Is it possible to produce a store locator script that:

(1) is written cpmpletely in Javascript

(2) uses a simple ".csv" text file for the database

If so, please refer me to a link or contact me by email.

Ambassador
-------

8:54 pm on June 11, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


No, it is not possible... unless you can assign the data to variables in the script.
Why does it have to be in JavaScript?
9:21 pm on June 11, 2004 (gmt 0)

New User

10+ Year Member

joined:July 29, 2003
posts:34
votes: 0


-------
Jun 11, 2004

Variable written into the Javascript would be okay. Regarding "why Javascript," it is well known to be an easier language to learn than; for example, PHP or PERL.

It would be okay if it were written in VBSCRIPT as long as it can run within an HTML page hosted on LunarPages' Linux hosting service. If a separate database file is necessary it MUST use

"a simple .csv text file for the database" as stated earlier.

Ambassador
-------

9:38 pm on June 11, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


It is also well know not to work universally, since some users may have JS turned off in their browser (or, simply because many people write really poor scripts that malfunction).

VBScript only works in IE, so that's one step worse...

10:34 pm on June 11, 2004 (gmt 0)

New User

10+ Year Member

joined:July 29, 2003
posts:34
votes: 0


-------
Jun 11, 2004

Good points. Then PHP would be okay if it is ultra easy to install and works with a simple ".csv" database file.

Do you have an open source PHP "locator" script in mind that uses a simple ".csv" database file?

Ambassador
-------

4:46 am on June 12, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 14, 2004
posts:1181
votes: 0


Actually, I found PHP to be simpler than JavaScript. After all, PHP doesn't involve itself with the document object model, prototype based inheritance, or event propagation models. PHP is really more like an old procedural language.