Mission Impossible??

This is a discussion on "Mission Impossible??" within the JavaScript Forum section. This forum, and the thread "Mission Impossible?? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 22nd, 2006, 11:04
New Member
Join Date: Nov 2006
Location: CT
Age: 53
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Mission Impossible??

Hi All:
A total Javascript newbie, here...looking for some help with a small project. Here's the scoop: The scenario is centered around what's called a "Virtual Airline"...member-pilots log into MS Flight Simulator, we're linked to our own website, we can fly together, etc. What I'm trying to do is create an aircraft-loading calculator for htm/html that allows the pilot to select his payload from an Inventory (warehouse) listing. A particular inventory line might show there are 49 cases of Jack Daniels in the warehouse, and he wants to select 4 of them for this trip...he would enter a 4 somewhere on that line; the calculator would: (A) Show the weight for 4 cases of Jack Daniels (preset weight values, of course) and (B) Keep a running total of accumulated weight as he goes down through the inventory selecting other items for his payload, and (C) Deduct his 4 cases from the 49 cases in the warehouse. (The idea is that he ends up with a final-weight number, and the warehouse invemtory gets adjusted)

Can this be done? I'll be perfectly honest...I've hacked at a few different Javascript calculators, and...Ummm...well, it didn't work out too good.

This can be done by using a separate calculator...find the line, find the weight for 1 case, plug it into the calculator times how many cases he wants, etc...but it would be much slicker if he can just plug a number into a desired item-line.

Appreciate any help with this...thanks for your time.
Garry (garry@lewisaire.com)
Reply With Quote

  #2 (permalink)  
Old Nov 22nd, 2006, 16:12
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Mission Impossible??

Have you thought about laying your inventory out as a table with the necessary cells for the in-stock, allocated(taken), item weight and total weight values?

An onchange event in the allocated(taken) cells could trigger a JavaScript function that made the necessary calculations.
Reply With Quote
  #3 (permalink)  
Old Nov 22nd, 2006, 19:56
New Member
Join Date: Nov 2006
Location: CT
Age: 53
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Mission Impossible??

Hi Geoff...thanks for the reply:

Well, no; I hadn't thought of doing that, but it makes sense. The programming for what you're suggesting might be a bit over my head, though, and I'm being generous with the term "might be". And there's no question at all that I could never write the Javascript function.

I can create exactly what I'm looking for in Excel, if that would help. In fact, I could put the spreadsheet on the website and have the web page call it up, but the problem there is that it requires the user to have Excel on their own PC, and not everyone does.

Thanks for the suggestion...I'll go see what kind of mess I can make fiddling around with Front Page tables :-)

Garry
Reply With Quote
  #4 (permalink)  
Old Nov 22nd, 2006, 22:06
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Mission Impossible??

As you will find if you search these forums, those of us who regularly give advice think FrontPage is the absolute pits.

You would be far better off in the long run learning to hand code.

I don't know of it's current availability, but I once came across an embedded program that let you display an Excel spreadsheet on a web site and maintain much of its functionality. However, I suspect that the code overhead and download time are high.

The function(s) you would require is not that complex. If you are familiar with Excel, then work out what you would need to do and then have a look at JavaScript and see how that same functionality could be implemented.
Reply With Quote
  #5 (permalink)  
Old Nov 22nd, 2006, 22:58
New Member
Join Date: Nov 2006
Location: CT
Age: 53
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Mission Impossible??

Thanks, Geoff:

Yep, I do know that real programmers cringe at the name...Front Page. However, I'm not a real programmer, and FP does allow folks like me to create a working website without having to go back to college. I guess the upshot is the learning curve...this isn't a livelihood, it's a hobby; I need something I can pick up and use right now, not something I'd have to learn as one would learn a new career. (sigh)

Anyway, your comment:
>>If you are familiar with Excel, then work out what you would need to do and then have a look at JavaScript and see how that same functionality could be implemented.<<

I'm okay with Excel (again, a hacker, not a pro), but "have a look at JavaScript and see how that same functionality could be implemented" would be a show-stopper for me; it's over my head, plain and simple. I've created a spreadsheet sample that does exactly what I need...and I've browsed several different Javascript files to see if I can get a grip on how to incorporate it...and the lights are off, nobody's home.

Thanks for your time, Geoff, but it's beginning to look like I'm in over my head with this little project.

Best regards,
Garry
Reply With Quote
Reply

Tags
inventory select program

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this impossible? bob_visualefx Hosting & Domains 3 May 26th, 2006 19:57
Asking for the impossible... Phoenix Web Page Design 1 Feb 12th, 2006 15:34


All times are GMT. The time now is 22:09.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43