I hope this is simple for someone reading this. I have a web page - http://tmh.netdbs.com/myers/clients/prints1.asp If you look at it, you will see a series of images, each image adjoining drop-downs with qty's for a particular print size for that a particular image. You will see I have it...
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'm sorry guys, if you look at this page - http://tmh.netdbs.com/myers/clients/printstest.asp, I think you can tell. Each image has a series of dropdowns associated with it. As each dropdown is changed, I want the total cost for that image to be computed. What I was thinking was that for each...
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...
OOOPs, maybe I am mistaken. Here are more details. I am using it on this page - http://tmh.netdbs.com/myers/clients/prints1.asp
When you go above a total of 2,000 in the context of my code, is when the format currency is not working, so it must be a bug in my code,and not the above code.
Here...
This function is working great, until a number 2000 or above is introduced, why? I didn't write it, i got it from the net.
function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num =...
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.