JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old March 18th, 2003, 10:54 PM
Archie Archie is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 1 Archie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
required: Javascript to search and display XML data sheet based on input criteria

Hi, I'm new here and fairly new to Javascript.

I am building a CD based html utility for distribution to our company's salesmen to search the specifications of our products.

What I want to do is have the user input the client's requirements on about 10 data points then do a search and create a list of suitable products that match all the criteria.

I have already achieved a draft version of this using html and javascript with an input form, multi-dimensioned arrays storing each product's specs, a search and compare routine and a list box to output the possible candidate products.

Trouble is, it is not very elegant and getting the data from our company's spreadsheets into the arrays is a pain.

I have a vbasic macro that I can use to easily build an xml file from the existing excel data format so I want to use an xml sheet for my data storage instead of the javascript arrays, then just use javascript to search and display the data into a table. (I later plan to be able to click on the table to view details of a listed product, but that is for later)

Right now, I need a javascript routine that is going to search through any one of about ten items from xml elements, select the product, copy it into a table then repeat until each product is analyzed.
-------------------------------------------------------
Example
<?xml version="1.0" encoding="ISO-8859-1"?>
<test>
<machines>
<machine>machine A</machine>
<cavity>4 </cavity>
<liters>2 </liters>
<thread>45 </thread>
<edim>43 </edim>
<srdim>45 </srdim>
<height>350 </height>
<bddim>180 </bddim>
<maxweight>240 </maxweight>
<minweight>45 </minweight>
<index>1 </index>
</machines>
</test>
Based on this I want to be able to search for all machines having an "srdim" value >= to the user's input AND a "minweight" value <= to the user's input then display the "machine" and "cavity"elements in a table.
-------------------------------------------------------

I don't want anything too exotic because it is to be used by computer novices. Also my company is international so OS's and languages may vary, hence the reason for choosing html / javascript. However we CAN assume they will all be using IE5 or above.

I will post a sample of what I am doing on the internet this evening, our company firewall prevents me uploading right now.

EDIT: here is the link URL

Thanks in advance

Last edited by Archie : March 20th, 2003 at 03:51 AM.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > required: Javascript to search and display XML data sheet based on input criteria


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway