ill respond later, but you are close, just not 100% on it.
tw
On Tue, Feb 10, 2009 at 10:48 AM, Michael Grant wrote:
>
> So let me see if I got this right.
>
> You have a left column which contains a bunch of checkboxes. A right column
> with divs to display content.
> When a checkbox is checke
So let me see if I got this right.
You have a left column which contains a bunch of checkboxes. A right column
with divs to display content.
When a checkbox is checked/unchecked you want the content div on the right
to update and reflect what's been chosen.
Is that all or is there a database upda
hahaha, all good manits hard to impart context
sometimes, and if you were in front of me, you'd a been laughing
while i asked the question. the reason being, i had been
debugging my VERY FIRST ajax stuff for ~7 hrs, and you shouldnt
try to pen an email at that point. hennyway.
i am using ajaxCf
Yw rasta,
I mean no offence by over explaining. I don't know you or your skill sets
very well and am just trying to help. Based on your most recent description
of what it is you want I don't see why you need javascript at all. That
being said I know js quite well and would be happy to help you wh
:) come on man, this is basic html/cf stuff i know this stuff... i
guess im just a bit
lost in the javascript side of things, and thats where im hungup...
ill explain more
later, im trying to figure some other things out now...
but thank ye... i think your original reply will be the best help.
t
Ian Skinner wrote:
> What Mike and I have been trying to get across is that same names good,
> same ids bad. Providing a group of check box or radio controls the same
> name is the proper way to get the desired behavior you described. But
> do not give them the same ids. Either leave the ids
Rastafari wrote:
> how would i do this same easy thing without the same id/name?
>
> tw
What Mike and I have been trying to get across is that same names good,
same ids bad. Providing a group of check box or radio controls the same
name is the proper way to get the desired behavior you describ
It looks like you are confusing the input parameters "name" and "id." They
are different. ID is part of the DOM and has nothing to do with forms
specifically. You can't get the id value from a form when it's submitted to
CF, only the name. That's what form.fieldNames consists of, names.
I'm also
ok, first of all, thanks mike.
second of all...
how do you handle this then?
i have a set of checkboxes that i want to get the value
on the next page, via cfml.
i also want them to be able to be checked as well
as unchecked. and on my subsequent page, get to all of them.
if i make them all the sa
...or you could just loop through it like I said. Three lines of code, zing
zing. Why does everyone always try to over complicate this stuff?
> but in a situation where you only want one to be checkd
> at a time, how else do you do that?
Well radio buttons SHOULD have the same name. That's the wh
Rastafari wrote:
> i get that you shouldnt have radio buttons with same name
> but in a situation where you only want one to be checkd
> at a time, how else do you do that?
>
> tw
Different IDs, if they are required, but the same name. It is the name
that is important for radio and check box co
k... thanks chowlee.
ill be back with more questions
:)
tw
On Mon, Feb 9, 2009 at 3:11 PM, Charlie Griefer
wrote:
>
> On Mon, Feb 9, 2009 at 11:50 AM, Tony wrote:
>
>>
>> i want that alert to tell me how many checkboxes with the
>> id="updateFirmware" there are.
>> its telling me that fields
On Mon, Feb 9, 2009 at 11:50 AM, Tony wrote:
>
> i want that alert to tell me how many checkboxes with the
> id="updateFirmware" there are.
> its telling me that fields is null :(
>
> help.
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
>
>
>
i get that you shouldnt have radio buttons with same name
but in a situation where you only want one to be checkd
at a time, how else do you do that?
tw
On Mon, Feb 9, 2009 at 3:01 PM, Michael Grant wrote:
>
> You're going to have to loop through form.elements and count them. Note,
> this isn't
Whoops, I think that should be "i wrote:
> You're going to have to loop through form.elements and count them. Note,
> this isn't tested and just off the top of my head. Can't remember if you
> refer to id as "id" or "id.value", you might have to mess with it a bit. On
> another note it's generall
You're going to have to loop through form.elements and count them. Note,
this isn't tested and just off the top of my head. Can't remember if you
refer to id as "id" or "id.value", you might have to mess with it a bit. On
another note it's generally bad to have multiple elements with the same id.
Oh, I thought this was obvious, but maybe not. Replace "form" with the name
of your form or with forms[x] where x is the number of the form on the page.
On Mon, Feb 9, 2009 at 3:02 PM, Michael Grant wrote:
> Whoops, I think that should be "i
>
>
> On Mon, Feb 9, 2009 at 3:01 PM, Michael Grant
ead a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
Web Developer
http://William.Seiter.com
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Friday, October 19, 2007 2:52 PM
To: CF-Community
Subject: Re: Javascript question
you do
Boycott Sys-Con
>
>
> -Original Message-
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 19, 2007 5:17 PM
> To: CF-Community
> Subject: Re: Javascript question
>
> define "doesn't work"? :)
>
> are you testing this in
//www.sstwebworks.com
> http://www.linkedin.com/in/sstwebworks
>
> Boycott Sys-Con
>
>
> -Original Message-
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 19, 2007 5:17 PM
> To: CF-Community
> Subject: Re: Javascript question
>
> d
http://www.linkedin.com/in/sstwebworks
Boycott Sys-Con
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Friday, October 19, 2007 5:17 PM
To: CF-Community
Subject: Re: Javascript question
define "doesn't work"? :)
are you testing this in firef
>
> --
> Scott Stewart
> ColdFusion Developer
>
> SSTWebworks
> 4405 Oakshyre Way
> Raleigh, NC. 27616
> (703) 220-2835
>
> http://www.sstwebworks.com
> http://www.linkedin.com/in/sstwebworks
>
> Boycott Sys-Con
&g
bworks.com
http://www.linkedin.com/in/sstwebworks
Boycott Sys-Con
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Friday, October 19, 2007 2:12 PM
To: CF-Community
Subject: Re: Javascript question
your syntax is off
document.getElementById('advsPubF
your syntax is off
document.getElementById('advsPubF1').value.length > 1
document.getElementById('advsPubF').checked = true;
On 10/19/07, Scott Stewart <[EMAIL PROTECTED]> wrote:
> Hey all,
>
>
>
> I've got another weird one.
>
>
>
> How would you check a radio button, based on whether or not tex
shouldn't that be:
if (document.getElementById('advsPubF1').length > 1){
document.getElementById('advsPubF').checked = true;
On 10/19/07, Scott Stewart <[EMAIL PROTECTED]> wrote:
> Hey all,
>
>
>
> I've got another weird one.
>
>
>
> How would you check a radio button, based on whether
charlie is the javascript goddess
tw
On 10/19/07, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> your syntax is off
>
> document.getElementById('advsPubF1').value.length > 1
> document.getElementById('advsPubF').checked = true;
>
> On 10/19/07, Scott Stewart <[EMAIL PROTECTED]> wrote:
> > Hey all,
> -Original Message-
> From: Scott Stewart [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 23, 2007 9:49 AM
> To: CF-Community
> Subject: javascript question
>
> Hey guys,
>
>
>
> When using "innerHTML" can you call a template? Or is this just for
> chunks
> of text.
You can do what y
>On 4/20/07, Jim Davis <[EMAIL PROTECTED]> wrote:
>
>Very cool. I didn't realize the var keyword actually "did" anything.
>I thought it was somewhat of a formality in JS (not unlike terminating
>a line with a semi-colon being optional).
>
>I had thought any variable created inside of a function (r
On 4/20/07, Jim Davis <[EMAIL PROTECTED]> wrote:
> >Hey all,
> >
> >I've got two javascript functions in a .js template.
> >
> >If I set a var in the first function, can I use it in the second function?
>
> It depends on whether or not you scope it locally.
>
> The "var" keyword tells a variable "y
>Hey all,
>
>I've got two javascript functions in a .js template.
>
>If I set a var in the first function, can I use it in the second function?
It depends on whether or not you scope it locally.
The "var" keyword tells a variable "you're only available in the current or
child scopes". Without
sorry, i should point out that since you're using a .js file, you
won't have tags. just declare the variable outside of any
function calls and the same holds true. it'll be globally available
to any of the functions.
On 4/20/07, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> not unless you explic
not unless you explicitly call the first function from within the 2nd.
JavaScript acts the way that I wish CFCs would act. If you declare a
variable inside a function, it's local to that function.
If you have multiple functions that need to reference a variable, just
declare the variable inside
only if you scope the variable outside of the two functions. e.g.
var ima_global;
function f1() {
ima_global = true;
}
function f2() {
alert(ima_global);
}
On 4/20/07, Scott Stewart <[EMAIL PROTECTED]> wrote:
> Hey all,
>
>
>
> I've got two javascript functions in a .js template.
>
>
>
: Javascript Question
If I set a var in the first function, can I use it in the second
function?
If you define it outside of either function.
var foobar; //Global variable available to all functions.
function setVar()
{
foobar="see ma";
}
function readVar()
{
al
If I set a var in the first function, can I use it in the second
function?
If you define it outside of either function.
var foobar; //Global variable available to all functions.
function setVar()
{
foobar="see ma";
}
function readVar()
{
alert(foobar);
}
~~
heh. careful...if you answer yourself too much you'll go blind.
On 7/6/05, Ian Skinner <[EMAIL PROTECTED]> wrote:
> Ian
>
> getElementsByTagName()
>
> Thanks Ian that was really helpful, this list is a great resource.
>
>
> --
> Ian Skinner
> Web Programmer
> BloodSource
> www.Blo
Glad you could help. We need more like you on this list.
On 7/6/05, Ian Skinner <[EMAIL PROTECTED]> wrote:
> Thanks Ian that was really helpful, this list is a great resource.
~|
Discover CFTicket - The leading ColdFusion Help D
Ian
getElementsByTagName()
Thanks Ian that was really helpful, this list is a great resource.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confidentiality Notice: This message including
Take a look at some of the threads on CF_Talk surrounding AJAX or try
Google...
http://www.google.com/search?q=Javascript+AJAX
-Original Message-
From: Frank Mamone [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 14, 2005 8:55 AM
To: CF-Community
Subject: Javascript Question
Hi everyone,
, 2003 11:12 AM
To: CF-Community
Subject: RE: Javascript question
It looks to me like this just checks for a "http://";, right? So if I have a
site that spans multiple servers then this isn't going to be a good
solution? Say I have the core of the site on one server at www.example
le.com.
-Kevin
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 10:00 AM
> To: CF-Community
> Subject: RE: Javascript question
>
>
> You are so the man, that's exactly what I needed. Seriously I owe you
> biggie
EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 10:53 AM
To: CF-Community
Subject: RE: Javascript question
Yo Tim;
Check this out.
M
Untitled
<!--
function check_outside_links(){
i = 0;
while (i < document.anc
D]
: Sent: Tuesday, April 01, 2003 10:22 AM
: To: CF-Community
: Subject: RE: Javascript question
:
:
: The data we are working with is all in a db that dates back to 1986. Now
: obviously the URLs won't have started showing up until what maybe
: 95 or 97?
: Still that's every article we linke
Yo Tim;
Check this out.
M
Untitled