ok I have a form that has time drop down boxes and then tigra calendar.
I have a onchange function I have written. basically when everything has a value i want to open another link.
It works ok but the only issue is when calendar fills in date input box it doesn't trigger an onchange. how can...
I have got it almost figured out i can do it with an array i put in the code but Im having trouble pulling an array out of the input boxes in the html
I tried
var arr = document.theform.s_active[].value;
but that doesn't work how do i pull the array values in?
What I have is a form with select box named in array
name=s_active[]
what I want to do is prevent the form from being submitted if the array has more than 3 values=yes
I know how to work with arrays but am unsure how to count only ones with a certain value.
Thanks in advance!!
I figured out what was wrong. the pop up had an ajax contact selector on it. the script settings for the domain had the domain as www.domain.com i switched it to domain.com and worked just fine not sure why that is but its working hip hip hoooray.
Thanks kaht for the firefox extensions that...
now i can get it to work inside another popup window thats blank. but i need it to work in the other. why would code work calling a function in one popup and not another?
alert("test1");
var parent_win = window.opener;
alert("test2");
parent_win.document.newticketform.opt_userphone.value = 'test';
alert("test3");
i get alert test1 and test2 but not test3
ok i have a pop up. and on clicking in the popup i have the following code.
if (!window.opener)
{
alert("Couldnt find window opener. Unable to append email");
}
so that means it found it but the minute. I try to do anything with the window.opener it errors.
like I tried all kinds of...
I have two input values on from a text box and one from select box. I store them as x and y.
x = 7.95
y = 5.95
then when I try to add them z = x + y;
z becomes 7.955.95 how do I decalre them as numbers.
Ok. me again I know I know.
I have input boxes named name[] to make them an array.
How would I add the values of the array to get a total.
And there will never be the same number in the array.
sometimes there may be 3 text boxes sometimes 8.
in php I know I can get a count of values in the...
I am trying to get the correct format of a string
a.innerHTML='<input type="text" name="o_item[]" value="">';
that works fine but i need to add a string in there
I thought it was like this
a.innerHTML='<input type="text" name="o_item[]" value="' + var + '">';
any help would be appreciated.
ok cool I got that to work. but it always adds at top I understand how to change the variable to get to bottom row. but heres the thing. when the next item is added the row number would change.
Ive looked for DOM to count rows but dont see that.
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.