File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes is javascripts fast enough for what I want to use it for Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "is javascripts fast enough for what I want to use it for" Watch "is javascripts fast enough for what I want to use it for" New topic
Author

is javascripts fast enough for what I want to use it for

Wilson Mui
Ranch Hand

Joined: Apr 09, 2003
Posts: 140
I am trying to build a small page that will basically do the following task. It will have all 50 states on top, whenever I click on a state it will bring up all the "starbucks" (just for example) in that state, on a left-column navigation bar (about 1/4 of the page), and then on the right will be the address and some additional information of the "starbucks" that I chose.
Now I chose starbucks, because they have a lot of stores. So lets pretend I have as many stores, or maybe around 2/3 as many stores. All I want to store is the name, address, hours, and manager. But there will be about 1000+ stores. If I stored all that information on a javascript would that run relatively well, or very poor.
It is all just text after all. I am not sure if the script is loaded into the JVM, or how javascripts are handled.
If somebody has a better idea of how to store all this information and use it faster than my implementation, I'm all ears. But everything I do has to be client-side. The page I am designing is sitting on somebody's computer in an intranet. No web-server capabilities.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
It should not be that slow, but there will be a noticable performance drop when it is trying to load all of the information.
Are you going to be using multidemensional arrays to do this?

Eric
Wilson Mui
Ranch Hand

Joined: Apr 09, 2003
Posts: 140
I think arrays of Store objects. I am not sure how javascript is handling the Objects in the backend. But Array of objects is no breeze in the pants either. Do you think there is a better way to store this?
I asked about XML the other day, but I am not sure I want to introduce another file into the mix. It may be confusing for somebody who is not experienced to update the information. I know, I know XML was designed for improved data storage, but transparency is very important also.
 
IntelliJ Java IDE
 
subject: is javascripts fast enough for what I want to use it for
 
Threads others viewed
Help with an SQL Statement
How do I slim down a class full of get...() and set...()
forward to another page using buttons
Lists inside SQLite
SCJD help
IntelliJ Java IDE