Forum Moderators: open

Message Too Old, No Replies

Javascript Store Locator Script

         

ambassador

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

10+ Year Member



-------
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
-------

DrDoc

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

WebmasterWorld Senior Member 10+ Year Member



No, it is not possible... unless you can assign the data to variables in the script.
Why does it have to be in JavaScript?

ambassador

9:21 pm on Jun 11, 2004 (gmt 0)

10+ Year Member



-------
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
-------

DrDoc

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

WebmasterWorld Senior Member 10+ Year Member



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...

ambassador

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

10+ Year Member



-------
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
-------

Rambo Tribble

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

WebmasterWorld Senior Member 10+ Year Member



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.