Calculate The Cost Deduct Saving And Plus Cost ?
Jan 27, 2011
I have write my code for calculate, discount, total plus other cost but it didnt work for me. I have stuck here for a week, I have done everything to make it right but it seems that doesnt listen to me, so correct my code.
First option; I have 4 choices of tours; people can choose 1 in 4.
Second options; I have 4 different choices of payments; people can choose 1 in 4 Need to alert them if they didnt choose each of the option.
Total cost of choice for tour deduct each option of payment for discount
Example;
<script type="text/javascript" language="javascript">
View 9 Replies
ADVERTISEMENT
Jan 26, 2011
I have tried to work on this code for the last 2 weeks, can not figure out what is wrong with my code,please have a look for me, it will greatly appreciated from me; here my details;I work on <script type="text/javascript" language="javascript"> from dreamweaver:)to set my code to calculate, different Fiji tour (4 options, choose 1 in options)Payment (4 options, choose 1 in options)The cost of tour - discount base on tour cost. (discount has 4 different calculate)Need to be alert if they not choose 1 in each type.Second cost if they choose to fly out , will cost plus $400 on top the above cost. This is an optional, so they don;t need to buy if they want.I have attached my code, please have a look,
View 19 Replies
View Related
Apr 28, 2011
I am having troubles with calculating costs on a form. When I press the cost button, it doesn't generate the calculations.
var fday = document.getElementById("reg_start_date").value;
var lday = document.getElementById("reg_end_date").value;
if (fday == "2011-09-05" && lday == "2011-09-06")
[code]....
View 1 Replies
View Related
Oct 17, 2011
how to achieve client-side calculation on my company booking form, using Javascript.The total amount for accommodation is calculated based on the room type (single or twin), zone chosen and meal plan (which then assigns a certain rate per week,so for example Single room, Zone 2, Self Catering would be �165 per week). There is a table of rates here : http:[utl].....The code would then use the arrival and departure date to calculate the number of weeks, add a booking fee of �50 and output the total amount.The form is located here: http:[url]....
View 1 Replies
View Related
Apr 16, 2011
Have to make a calculator to calculate wallpaper sizes and cost (college course so not for the 'real world' so doesnt need a great deal of functionality. Do i make a form in html and then name each cell? what then? Lost as hell here and been watching countless tutorials for js, need guidance i think now.
View 18 Replies
View Related
Jul 24, 2010
I'm trying to create a four-box form in which the user enters information into the first two boxes,and the program fills the second two boxes in.Basically,I need a form to calculate the square footage and cost of a vinyl banner.In the first text box the user would enter the banner's height.In the second box the user would enter the banner's width.
The third box would multiply the height by the width and display the total square footage of the banner.So far, I have this part down. The following is what I need help with: the fourth box.The fourth box needs to display the cost of the banner. I have a complicated pricing structure. For example:
If the total square feet for the banner is under 12 square feet, the cost is $60.00. If the square feet for the banner is between 13 and 25 square feet. The cost is $4.80/square foot and ect...I believe this would be done using some variation of an IF statement but I can't get it to work.Using this example, what would I add to the form to get this work? The following is the form I have so far which just consists of the calculation of the square feet which is all I've been able to get working.
Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>[code].....
View 3 Replies
View Related
May 4, 2011
I have a program in which a user must enter number of books and price and then calculate the total cost of the items, i have tried and tried to get it working to no effect can anyone see where i have went wrong.
View 2 Replies
View Related
Dec 6, 2010
I am having some difficulty in constructing a window.confirm() function that works with my code.So if the form data is valid, I need to use a window.confirm() dialog box to show the user's total cost based on the rental rate of equipment chosen and the reservation period. The user must accept the cost by pressing the confirm button, and if user cancels do not submit data.I have written this code but cannot figure out how to find the number of days from the 2 date fields and use that to calculate and display the total cost.
//confirm submit and display rental cost
var equip = document.forms[0].equipment.value
var pDate = document.forms[0].pickupDate.value[code].....
View 5 Replies
View Related
Oct 18, 2011
i have follow a tutorial from this site http:[url]....i would like to customize the script for shipping cost as in like: for the drop down , user can choose either 'west' or 'east' on the drop down, my problem now is i don't know how to modified JavaScript to calculate the shipping cost and i have done the calculation for product quantity in php.i would like to do it like using my $ct_qty(php) *shipping cost (javascript).if user select west:
1 quantity = $6
2 quantity = $8
3 quantity = $9...and so on...8 quantity above = F.O.C
and for east showing different price like:
1 quantity = $9
2 quantity = $13
3 quantity = $15...and so on...8 quantity above = F.O.C
View 4 Replies
View Related
Aug 25, 2010
I am making a mock website where the user make their own computer by selecting items from drop down menus. Then a value of the item comes up below. this works but i am having trouble adding the numbers up for the total cost.
Here is my code:
<html><head><title>build</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
</style></head>
<body>
<script type="text/javascript"> .....
View 1 Replies
View Related
Aug 19, 2009
Please take a look at the picture below:When you enter the value of Volume and Unit Cost... it should automatically add up into Net Cost and VAT (including float number).
View 1 Replies
View Related
Jul 31, 2009
I would like to build a cost estimator similar to [URL].. I have seen several example but none have exactly what CSSninja has.
View 1 Replies
View Related
Jul 26, 2011
I have used a Google search to find code that will muliply an entered quantity with a fixed price and provide a total and then code to add the various totals into a 'grand' total.
View 2 Replies
View Related
Feb 11, 2009
I am not a programmer so this may be simple but I am not sure what the proper code is. I am trying to place a script I have on my website for a simple product cost calculator.The fields are simple quantity, product, cost per product and total.What my issue is, is that I am trying to put a 59.00 fee as a variable that will be charged on any order, it is a service fee, I just can,t figure it out. I thought I could just change the 0 to 59.00 at the variable but it is not workingHere is the code:
function showDivs(divs)
{
//get number of div to show
[code]....
View 5 Replies
View Related
Feb 21, 2011
I have a simple form on my artwork website that allows a customer to enter a numer of prints and a number of colours and then calculates a price of the order (for their curiosity only - that is the end of the function).I have now changed the way I have priced my orders and want to make it so that, for instance, if a customer wants 2 prints it will be �150.00 (�75 per print) but 3 prints will be �195.00 (65 per print) and so on the more they order.What I want to do is to add a list of prints from 1 to 10 with a radio button next to each. the user can then select 5 prints.The way my form works right now (see code below) is that the customer enters a numeric value and then the javascript takes the value and multiples by a pre-set "PrintAmount" value.Because that value is constant - I can't make multiples of prints different values (or can I ?) Heres my javascript (form below):
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
<!--
[code]....
View 26 Replies
View Related
Mar 8, 2009
I need to get the width and length of a room and find out how much it would cost to carpet a room.
This is what I have. in a .js file I have
function disp_cost()
{
var room=document.getElementById("room").value;[code]....
View 6 Replies
View Related
Sep 27, 2011
CONDITIONS:If a person selects a Friday Class but not a Saturday Class the Total Cost Field will automatically enter $99.If a person selects a Saturday Class but not a Friday Class the Total Cost Field will automatically enter $99 as well.If a person selects both a Friday & Saturday Class the Total Cost field will automatically be $159.I found the following code and so far only have it changing when a Friday class is entered. I have no idea where to go from here
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
[code].....
View 10 Replies
View Related
Jun 14, 2011
I have a calculator and using JQuery Calculator plug-in which Tally's up groups of field values using key up. I have a summary page which presents the user with over all expenditure. What I need to do is subtract the expenditure from income, populate a total field onclick of an <li>.
View 4 Replies
View Related
Jun 12, 2006
I have a problem with cookies set via javascript. What I try to
achieve is, when a user comes on the intranet, he can click on a link (
a simple href) that will set the content to french or english. I want
to set a cookie to persist that choice each time the user comes back on
the intranet. This feature must be available everywhere on the
intranet and the link is placed in an inner asp script called Menu.asp
which is included each time a page loads.
Now, I know it's maybe not the best way to achieve this but I'm just
working from what has been made by others, I cannot change the way
things are made, too much work would be involved and they won't accept
to give time to do everything all over again.
The best approach I got was to set a querystring value and replace the
cookie value from vbscript code. The problem is, the intranet we have
use a lot of the querystrings for a lot of features and when I click
the English/French link, that info is lost. I've tried to set a
mechanism to keep all the querystring and only add a new value but I
got weird results...
So I've turned to Javascript and still got no luck... For some
reasons, the cookie gets deleted from the cookie file as soon as my
javascript modifies the cookie.
Here's an example:
View 1 Replies
View Related
May 9, 2007
I wrote a script to generate links to some pictures that I need to
regularly update our site with. Is there a way to write a script that
just saves the pics to a directory on my pc so I dont have to right
click on every link and do a save picture as...? I can't link
directly to the pics from our site because our site is https and the
site the pics are on are http so the user gets the security warning
box every time a pic loads. Code:
View 4 Replies
View Related
Jul 23, 2005
WANT: Client to save an image to disk pressing a "download" button.
The image name is dynamic, from JS code on another part of the
page
DID: Read somewhere I can use document.execCommand("SaveAs") to do it
This solves it for MSIE, at least. My code is below
PROBLEM: What actually happens with MSIE is:
1) A window pops up promting me to save as.
2) The filename is correct, but the saveas type shown in the box is limited to "html" and "txt"
3) The "image" that is saved is not an image, but an HTML file containing the link to the image!! This is NOT what I want!
PLEASE help. How do I get MSIE to save the actual image instead?
PS With netscape, instead of the saveas dialogue, a window opens with
the image displayed. By clicking <CTRL-S> I can save the actual image.
CODE ----
View 5 Replies
View Related
May 19, 2006
I have a log file that is viewed on the local machine. There are some
settings on the html page that allow the user to specify how the file
is viewed. I'm just wnodering what are my options in saving these
settings (so they could be reloaded next time the user loads the page).
Writing to registry, a file, or a cookie? what's the right approach?
View 4 Replies
View Related
Jul 20, 2005
I've got an online system which I'm interested in making available
offline - i.e. letting the user download certain HTML forms, fill them
out offline, then the next time he logs into the site, sending all the
data he filled out to the system. However, I can't seem to come up
with a good way to do this. I thought of using cookies (that'd be
great, since the system could detect them automatically), but it seems
I can't set cookies for my server offline; it has to be from a page on
the server itself. And from what I can tell, JavaScript doesn't have
the capability to write files on a local system either. Does anyone
have any ideas about how to go about this using JavaScript?
View 1 Replies
View Related
Apr 21, 2011
I am making a LOVE IT button using php and jquery and i have most of it working...
The button currently returns the value from the DB of 0 but when i click the button it wont save the incremented value to the DB.
see it here[URL]
my code is this
<?php
mysql_connect("localhost", "web183-loveit", "password") or die ("Error.");
mysql_select_db("web183-loveit") or die ("error");
$increase = "UPDATE results SET value=value+1 WHERE id=1;";
[Code].....
View 1 Replies
View Related
Jan 5, 2010
I have trying to save an update the xml file which is there in same folder in which HTML page is there. In HTMl page i have written javascript code to Save and Update XML on server.The code is like this
function Save()
{
var xmlDoc= new ActiveXObject("MSXML.DOMDocument")
xmlDoc.async="false"
[Code].....
When i am accessing HTMl page on server from client and this function is called error 'Parameter is incorrect' is showing on line
xmlDoc.save ("/show/Share%20Workspace/Nidhi/Share%20%Document/Account.xml")
Note: xmlDoc.load("/show/Share%20Workspace/Nidhi/Share%20%Document/Account.xml") is working fine.
The save is working fine in local but not when on server and request from client.
View 7 Replies
View Related
Jun 20, 2007
We have always been used to dynamic webs with JS.
We have used
document.getElementById("x").innerHTML=""
to edit specific HTML part.
My question is, as soon as the browser is closed, the inserted HTML codes vanishes...How to keep it everlong such that to save them as HTML files.
I want to create a small guestbook like something. I created and when i close the browser the inserted text vanished.....How can i keep it for ever??
View 2 Replies
View Related