|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Metric converter
Hello members,i have been given a project to develop a metric converter to certisfy certain conditions using my knowledge of JavaScript/Dreamweaver but being a newbie in this area i dont know if a mistake was made.I thought JavaScript/Dreamweaver was for web designing so is the project valid and could you please give me some guide lines on how to go ahead with it.Thanks
|
|
#2
|
||||
|
||||
|
The project would indeed be valid since Dreamweaver also handles the development of Javascript, PHP, CSS, (x)HTML even Flash Actionscript files. But it doesn't actually write the script for you, it just autoprompts as a reminder.
Javascript handles mathematic functions, as does PHP, so they make perfect calculators (especially since the use of if..else functions is apparent in these projects). If you're looking for conversion, I would first begin by applying a calculator type interface with an HTML form with some fields for inputting values to be converted and a field where the output would be displayed, probably also a drop-down menu for each value (probably only two) which allows the user to select the type of metric measurement to convert from and to. All of these types of measurements would be assigned to arrays. I would then create some simple mathematic functions to perform the calculations for me. Maybe an alert to say that the value given for conversion is invalid, if you're looking to show off. Hope this helps, don't hesitate to ask if you run into any issues while coding the script. Last edited by Squibbit : October 11th, 2008 at 02:31 PM. |
|
#3
|
|||
|
|||
|
Quote:
Thank you very much for your reply it has been really helpful,as of now as far as dreamweaver is concerned we have covered JavaScript, CSS, DHTML,HTML even Flash Actionscript files and others am yet to teach myself but since you said javascript handles mathematic functions then i think i will try to put my best at writing the code and i hope javascript doesnt have to work hand in hand with PHP because i don't know PHP as of now.I will keep updating you on my progress. |
|
#4
|
|||
|
|||
|
Guide Me
Hello here is what am supposed to convert could you please advise me on how to go about the coding am not yet very good with Javascript.Check below.
Develop a metric converter which will satisfy the following requirements. 1. There should be a separate web page that displays the metric conversion chart. The chart should include the multiplying factors for the conversion. Length conversion: Should include the multiplying factors for following Inches millimeters Feet Meters Yards - Meters Miles Kilometers Area conversion Should include the multiplying factors for following Square inches Square millimeters Square feet Square meters Square yards Square meters Acres Hectares Square miles Square kilometers Volume conversion Should include the multiplying factors for following fluid ounces milliliters gallons liters cubic feet - cubic meters cubic yards - cubic meters Mass conversion Should include the multiplying factors for following Ounces grams Pounds kilograms short tons (2000 lb) - mega grams (or "metric ton") Temperature conversion Fahrenheit Celsius Celsius Fahrenheit 2. There should be separate web pages for the various conversions, you need to include the conversions of a. Area b. Length c. Volume d. Mass e. Temperature f. Currency |
|
#5
|
||||
|
||||
|
I haven't been around a while, not really sure how far you've gotten on this, but as far as the first step goes, I'd assume you will need to work out the multiplication factors between all of those metric conversions and display them in a chart.
From there on in, the formula in JavaScript should be simple. Define a few variables for each measurement and then calculate the difference. |
|
#6
|
|||
|
|||
|
As internet business is growing day by day, web design is buzzing high. As far as getting started and getting more clients is concerned, the best way I have learned is through word of mouth, and also through online. First of all you should settle on a name for your business and design/build a simple portfolio site to showcase your work. More you expose your good work more there are chances to get clients. Starting a web design business comprises a lot of things, so before getting started make sure you are all equipped to get into it.
|
![]() |
| Viewing: Tutorialized Forums > Web Design & Development > Dreamweaver > Metric converter |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|