For now, I think the problem is solved. I got rid of the isdefined function and changed this:
if (isdefined(document.getElementById(rowname))) {
document.getElementById(rowname).style.display = 'none';
}
to this
if (document.getElementById(rowname)...
Opposed to what BillyRay said, I really do appreciate your time jemminger. I have changed the ID's but that hasn't worked so far. I said that I don't know if that is the problem simply because I had other checkboxes under RadioButton1 with the same ID. But, in any case, here is the whole...
Thanks for your reply.
I'm not so sure that that is the problem, but then again I'm a noob. I've been going over the code (I'm at home now, not at work) and I don't see how that has an impact on the isdefined line.
The code unchecks everything and makes the textbox blank, it's just that the...
Hey all, I'm trying to give this function some automation instead of hard coding everything.
I have 2 functions
Function 1
function isdefined(variable)
{
return (typeof(window[variable]) == "undefined")? false: true;
}
Function 2
function reconfig(obj,start,end) {
var...
Ah, I understand now.
Just one last question to learn more about javascript (and I promise I'll leave you alone). Can you send something to two functions? Such as this: onClick="reconfig(this); 2ndfunction(this);" and have them work one right after the other?
Thanks!
Your code works great. I just have one question.
I wanted to use the onChange event instead of the onClick event (your code works perfectly for the onClick event- thanks!). When I changed the code to the onChange event this is what happened:
I first clicked radio button2 and nothing happened...
About the line that has: <div id="......>
I have that radio buttons and checkboxes in a table, so I have the following code: <tr id="....... style="display:..>
First off, is that pretty much the same thing? Also, I should be able to modify the code above to use the tr id, correct?
Thanks for...
Hey all, I'm new when it comes to javascript so please bear with me (but I think this is a simple answer anyway) :)
This is the layout I have on a website using ColdFusion:
RadioButton1 name=Q01 id=Q01A
Checkbox1 name=Q01A01 id=Q01A01
Checkbox2 name=Q01A02 id=Q01A02...
@Wullie: I was told to go in to an already made website and modify some things so that shownested_RB... was already in the code, and in the onClick event so I thought that was some kind of feature in ColdFusion because I couldn't find that as a javascript function anywhere.
At any rate, I...
I'm not sure how to rethink it. The page loads with the users answers so the user can change them.
It seems javascript is the only way to add this kind of usability.
When a user clicks a radio button, ColdFusion (using the onClick event) expands what's undearneath the radio button and...
Hey all,
I have a setup like this:
Radio Button1 name = Q01 value = Q01A
Checkbox1 name = Q01A01A
Checkbox2 name = Q01A01B
Radio Button2 name = Q01 value = Q01B
Checkbox1 name = Q01B01A
etc...
I have Radio Buttons that belong to the same group, and most of the radio buttons have checkboxes...
Hey all, this is what a page of mine looks like:
Question1:
RadioButton
Checkbox
Checkbox
Checkbox
RadioButton
RadioButton
RadioButton
Checkbox
Checkbox
.
.
.
I can make the checkboxes appear when the respective radio button is clicked (using onClick), but, what I've...
Thanks a lot imstillatwork.
If I understand correctly, and please correct me if I'm wrong, a session is made at the time the user is logged in. So long as the user stays logged in, I should be able to use the session to load their selected answers.
However, using 'session' can this be used...
Let me say this as it might clear things up. The people who designed the web pages in coldfusion have it setup like this:
Question 1:
RB name = Q01 value = Q01A
RB name = Q01 value = Q01B
RB name = Q01 value = Q01C
.
.
.
Question 2:
RB name = Q02 value = Q02A
RB name...
But don't I have to make sure the user has security settings low enough to accept the cookies? Or if they have a virus scanning software that'll delete it?
Thanks for the reply.
On "Page 5 - How's Your Memory?" of the tutorial, does this work even when a user logs out and logs back in? And it only pertains to that user? Or is it the last value regardless of who did it?
If it works separately for each user than that's what I need, else, I may...
Hi all, I'm new to coldfusion mx so bear with me. :)
This is the scenario. A user takes a survey, when completed the answers are sent to a database. The user can then review their answers, edit anything and resubmit.
What I want to do is when they review their answers, is to display the same...
Yes, I have been pinging it by IP. When I ping it I get a request timed out.
I know I have tried a tracert recently and it go to 5 or 6 hops before I stopped it. I'll let it go for longer when I get home.
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.