...this Function is called:
function calculatePrintTotal(imgid)
{
var img4x6 = round_decimals((document.getElementById(imgid + "_4x6_cnt").value * .29),2);
var img5x7 = round_decimals((document.getElementById(imgid + "_5x7_cnt").value * .99),2);
var img8x10 =...
As a side note, I have been using a <select> statement and from I have read, it in itself does not have a value associated with it, rather its <options> array does...This might figure into my dilema
Very interesting, on the surface it looks like something I can use, I will have to try it though. One difference in it and what I am doing, is this script works on the premise of the qty for 1 widget, etc. I have 1 image which users can choose multiple qty of multiple sizes...for the 1 image...
Here is yet more comments on this, but with a different possible approach (which is not working btw, but it further explains what I am after...)
I have a form (see http://tmh.netdbs.com/myers/clients/printstest2.asp) I dynamically list a series of images, from which a person can choose various...
Extremely interesting, this dilema of mine. Ok, I got it to work, as the error I was making was not of referencing the form element by its corresponding number in the forms array, but by the name of the form dropdown object instead. This works, but what I need is a way to access ALL the form...
...I want the total cost for that image to be computed. What I was thinking was that for each image, I would have an onchange function that would * the values of each dropdown against a given value, such as .29 for 4x6's, 1.99 for 8x10's, etc. Thus in my script, I would have six variables (in...
Ok, I understand this is passing a string, but what I want is to accept a parameter in the function call that is an id here it is "id" and then assign the value of that form element to a variable...not in the form of a string...
...in my code,and not the above code.
Here is my code:
function calculatePrintTotal(objx,price,img_total)
{
x = parseFloat(objx.value);
y = parseFloat(price);
z = parseFloat(img_total.value);
t = formatCurrency((z+(x*y)));
img_total.value = formatCurrency(t)...
I have a web page that I have taken as far as I can. Can someone show me how to accomplish what is what I am obviously trying to do on this page:
http://tmh.netdbs.com/myers/clients/prints1.asp You will see each image has a spot for current Image Total. This figure will need to be able to be...
Ok, I hope I can convey my thoughts enough for someone to help me out.
I have a web page, which when loaded will query a database & load a recordset with the file names of various images. There will never be fewer than 1 images, but an unlimited number of total images. ( 1 to n ) I then have...
I have an asp script which generates a page that outputs records from database. As it does so, I generate a bookmark for each item. Viewers are then able to click an "on/off" link which calls an external script which updates the database and then returns the viewer to the original page. BUT, in...
Here is the code I have. If I put nothing the onclick="enlarge()" event handler, the function enlarge is called. But the moment I try to put anything in there, esp. theimg[0], the enlarge function is not being called any longer. The only thing I could possibly see is that in the sting...
This is what I have been trying:
Set cookie(s):
var nextyear = new Date();
nextyear.setFullYear(nextyear.getFullYear() + 1);
document.cookie = "bgcolor=" + x + ";expires=" + nextyear.toGMTString();
document.cookie = "color=" + z + ";expires=" +...
I want to set my first cookie, in it I want to store three items, color,bgcolor,color2. What is confusing me is would this need three cookies, one for each value? Or can I set them all in one cookie?
Thanks.
It just dawned on me, that changeColor() could be called many times, so I wouldn't want every time it is called for it to be continually appending the value onto the url. Does that make sense?
Damn, this is so frustrating:
This is what I have:
Function:
function changeColor(xyz) {
var x;
var z;
x = xyz.currentStyle[ "backgroundColor" ];
z = xyz.currentStyle[ "color" ];
document.getElementById('container').style.backgroundColor = x...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.