Your cfform needs a name. If you're just using HTML forms, you'll still
need a name for your form to access the form's contents.
--
Jamie Keane
Programmer
SolutionMasters, Inc.
9111 Monroe Rd., Suite 100
Charlotte, NC 28270
www.solutionmasters.com
704.563.5559 x 228 Voice
704.849.9291 Fax
---
I found out that you can't really combine the ColdFusion form validation of
with other javascripts validation. I mean there is not built in
CF validation. So I used an independent javascript validation for
the textarea along with the CF built in validation and the independent
javascript validat
In your action page (Frame 2)
.. Cold fusion code ...
parent.framename.formname.fieldname.value='whatever';
Or something very similar ... I didn't check the syntax, but that should
give you a start.
Joshua Miller
Web Development :: Programming
Eagle Web Development LLC
www.eaglewd.com
[EMAIL PR
Thanks Doug
-Original Message-
From: Douglas Brown [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 3:07 AM
To: CF-Talk
Subject: Re: javascript help
IL PROTECTED]>
Sent: Thursday, July 18, 2002 3:12 AM
Subject: RE: javascript help
> Thanks Doug
>
> -Original Message-
> From: Douglas Brown [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 18, 2002 3:07 AM
> To: CF-Talk
> Subject: Re: javascript help
>
>
>
> > > I'm trying to develop a javascript validation for a
> > > textarea. I'm getting an error message which says
> > > "ProgramDescription.value" is not an object.
> > >
> > > ===
> > >
> > >
> > > function validate(testform) {
> > > if (testform.ProgramDescription.value == " ") {
>
Use Window.Open
window.open(URL,Name,Param)
eg...
Click Me!
--
Gavin Lilley
Internet / Intranet Developer
Halesowen College
Tel: 0121 550 1451 Ext: 330
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2000 16:36
To: CF-Talk
Subject: Javascript Help...
I
Neil,
Ok, I dont have a code sample on hand but here is the process...
1. create a form on the original window with hidden variables of all the
values you wish to pass, make sure the form has a name and a target set...
2. when you have the trigger action that is going to create the window,
creat
> I would like to pop a window via a javascript. This isn't a
> problem, I know
> how to pop a window. I don't want a toolbar and I want it to be
> a specific
> size. The problem is I want to pass form parameters to the page
> when I pop
> the window. I don't want to have url parameters.
>
> A
Yeah,
But if I do it that way how can I pop a window and send form parameters
and the window not have a tool bar?
neil
- Original Message -
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, October 03, 2000 12:01 PM
Subject: RE: Java
>From the popup, to change the location (or a variable or whatever) of the
calling page you would use:
// changes the location of the page that opened this popup
window.opener.location.href="abc.html";
// changes a variable/object 'X' in the page that opened this popup
window.opener.X="New Value
d=new Date();
alert(d);
d.setHours(d.getHours()+5);
alert(d);
- Original Message -
From: "clint" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 11:35 AM
Subject: OT: Javascript Help
> I know this is off topic, but it kinda isn't.
>
> Can someone s
> How do I get JavaScript to evaluate tdID into
> its true value and not think that I'm refering to
> an object named tdID?
I recommend to anyone that uses javascript in there applications to join the
JS-Jive mailing list (just send a blank email to
[EMAIL PROTECTED]). The list has over 900 memb
"test,test1,test2,test3".split(',') will create an array
-Original Message-
From: Andrew Scott [mailto:[EMAIL PROTECTED]
Sent: Friday, 19 December 2003 3:03 p.m.
To: CF-Talk
Subject: _javascript_ Help
Looking for any help in being able to do the following.
I am looking at a string "test
I would use the function called split() which makes an array based on a
delimiter passed in (in your case the comma). Then you can loop over the
array or access the elements as you need:
var x = 'test1,test2,test3,test4';
arElements = x.split(',');
would result in...
arElements[0] = 'te
Thanks works a treat
Regards
Andrew Scott
Technical Consultant
NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205
Phone: 03 9686 0485 - Fax: 03 9699 7976
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
function checkForm()
{
var title= document.myForm.title.value;
var story= document.myForm.story.value;
var link= document.myForm.link.value;
var target= document.myForm.target.value;
var fbString = '';
if (title == '')
fbString = f
Thanks Mike,
That works great.
What if the user change the value of the target from "" to "_self" or "_blank" then I need to display the msg to put the Link as well.
thanks
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
Keep in mind the value property of a select is not supported on all
browsers. I usually consider a textbox/textarea empty if there are only
spaces (I usually trim the values anyway.
Also keep in mind that "title" and "target" are properties of the form.
To avoid mixing up formfields and properties,
> hey guys i have a little window with a link on it opened up a popup
> window and gave it a name. the new window also has frames in it. I
> would like to manipulate the forms in that frame, like giving it
> certain values and stuff, by calling it from the little window. how
> do I do that?
I believe that you have to reference the frame as an array index, similar to
the way you can reference form elements.
-Original Message-
From: Dan Munez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 29, 2007 9:12 AM
To: CF-Talk
Subject: OT: javascript help
hey guys i have a little window
On Tuesday 29 May 2007, Andy Matthews wrote:
> I believe that you have to reference the frame as an array index, similar
> to the way you can reference form elements.
Get firefox.
Get the firebug extension.
Set a break point and poke around the DOM :-)
--
Tom Chiverton
Helping to confidentially
The onclicks are outside of the loop
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 9:35 AM
To: CF-Talk
Subject: OT: Javascript help
Not really for CF, but though someo
umber.
...
Ben Nadel
www.bennadel.com
-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 10:06 AM
To: CF-Talk
Subject: RE: Javascript help
The onclicks are outside of the loop
...:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslif
Maybe I'll get caffeine in me before I answer the next one. I'll take a
closer look ;-)
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 9:35 AM
To: CF-Talk
Subject: OT: J
ber.
>
> ...
> Ben Nadel
> www.bennadel.com
>
> -Original Message-
> From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 20, 2006 10:06 AM
> To: CF-Talk
> Subject: RE: Javascript help
>
> The onclicks a
Is this what you were going for?
for (IntI = 0; IntI < 10; IntI++)
{
divCont = document.createElement('DIV');
divCont.id = 'div' + IntI;
divCont.appendChild(document.createElement('BR'));
PS... in your original code
> It's like they all point to
> one variable and then get
> updated for each loop of the FOR iteration
They do. Each of your onclicks triggered the same function that alerted the
same variable. The last time the variable was set, it was 10. So they are
all 10.
..
going to try to force intI to a string, which works for simple
values, but will not work with complex values.
...
Ben Nadel
www.bennadel.com
-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 10:49 AM
To: CF-Talk
Subject
il 20, 2006 11:01 AM
To: CF-Talk
Subject: RE: Javascript help
Bobby,
I cannot seem to get the onCLick to fire in my browser. Granted I am using
IE in Homesite. But, my concern with this solution is that I feel (without
testing) that it is string dependent.
divCont.setAttribute('onClic
On the radio button...
Onclick="document.myform.mytextfield.value='';"
If you are saying you want to clear both text fields
Onclick="document.myform.mytextfield.value='';
document.myform.myothertextfield.value='';"
-Original Message-
From: Doug Brown [mailto:[EMAIL PROTECTED]
Sen
This seems to work, but will it work in all browser?
onFocus="document.updClassified.asking1.value =
'',document.updClassified.asking2.value = ''"
Doug B.
~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfu
1. Don't use on focus, use on click. Users (well power users) and the
disabled tab through form fields, and if you do on focus it will empty to
form field even if they don't want to.
2. When dealing with multiple fields I would recommend your using a
function in a script block kicked off by the
Doug Brown [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 21, 2006 3:51 PM
> To: CF-Talk
> Subject: Re: Javascript help
>
> This seems to work, but will it work in all browser?
>
> onFocus="document.updClassified.asking1.value =
>
Brown [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 21, 2006 3:51 PM
> > To: CF-Talk
> > Subject: Re: Javascript help
> >
> > This seems to work, but will it work in all browser?
> >
>
CF-Talk
> Subject: Re: Javascript help
>
> That should work cross-browser, no? it's pretty standard JS syntax.
>
> onfocus="statement1; statement2; statement3..."
>
> as long as each is separated by a semi-colon it should be ok?
>
> On 12/21/06, loathe &
Also your using a comma and not a semi colon, sorry forgot to add that.
> -Original Message-
> From: loathe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 21, 2006 4:07 PM
> To: CF-Talk
> Subject: RE: Javascript help
>
> No it won't.
>
> For that y
arguments that way, but will calling the field that way work
> cross browser?
>
> I don't know, I still write it using different techniques.
>
> > -Original Message-
> > From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 21, 20
Check out jQuery. This sort of thing would be a snap in jQuery
(http://jQuery.com).
Doug Brown wrote:
> I have a form with 2 text fields and some radio button, and what I would like
> to do is clear any text in the text fields if any of the radio buttons are
> selected. I can do this with one
form'].myfield.value
document.forms['myform']['myfield'] .value
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 4:23 PM
To: CF-Talk
Subject: Re: Javascript help
i'm pretty sure it'll work. but of course i
> > document.formname.fieldname.value is about as standard as it
> > gets AFAIK.
>
> Yes, it is as vanilla as it gets and easiest for most people
> to read and understand. But if you'd like to make it NOT work
> in all browsers that can read JS you can try some of these lol
>
> document.forms[0
ber 21, 2006 5:42 PM
To: CF-Talk
Subject: RE: Javascript help
> > document.formname.fieldname.value is about as standard as it
> > gets AFAIK.
>
> Yes, it is as vanilla as it gets and easiest for most people
> to read and understand. But if you'd like to make it NOT wo
> You can stack arguments that way, but will calling the field
> that way work cross browser?
Yes, there's nothing wrong with having multiple statements within an event
handler, other than readability.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the hig
> > This seems to work, but will it work in all browser?
> >
> > onFocus="document.updClassified.asking1.value =
> > '',document.updClassified.asking2.value = ''"
> >
> No it won't.
>
> For that you'll need a function and you'll need to write a
> javascript browser diction script and have sepa
> I don't consider Netscape 2 (or IE pre 5) when I use the
> phrase 'cross browser compatible'. Especially when dealing
> with JS and/or CSS.
I thought the question was, "what is the most compatible way to address a
form in JS", not "what browsers do you prefer to disregard?"
Right now, the ans
Well since we are being smart asses... the question was "how can I clear
either one when I click on any one of the radio buttons."
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 7:34 PM
To: CF-Talk
Subject: RE: Javascript help
> Well since we are being smart asses... the question was "how
> can I clear either one when I click on any one of the radio buttons."
One person's smart ass is another's stickler for accuracy.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest cal
And here I was thinking you had no sense of humor ;-)
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Friday, December 22, 2006 10:43 AM
To: CF-Talk
Subject: RE: Javascript help
> Well since we are being smart asses... the question was "how
> can I clear
function selTA()
{
document.formname.fieldname.focus();
}
window.onload = selTA;
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: J W [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 06, 2005 2:24 PM
To: CF-Talk
Subject: OT: Javascript
: RE: Javascript help.
function selTA()
{
document.formname.fieldname.focus();
}
window.onload = selTA;
...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: J W [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 06, 2005 2:24 PM
To: CF-Talk
Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 06, 2005 2:38 PM
To: CF-Talk
Subject: RE: Javascript help.
Hmmm guess that only places the cursor at the beginning in IE... gimmee a
minute :)
...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original
Well thats interesting, I have been testing in Firefox all day. S I
fired up the code in IE and noticed a difference.
IE. Works just fine. Cusor at Top
Firefox. Focus is set, but cursor is set at the end of text.
So focus alone doesn't gurantee that the cursor will be at the beginning of
the
=0;
> }
>
> window.onload = selTA;
>
>
> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
>
>
> -Original Message-
> From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 06, 2005 2:38 PM
> To: CF-Talk
this works in Firefox on XP. not tested beyond that:
for (var i=0; i wrote:
> I am taking a page and sending it
Chad Gray wrote:
> I am taking a page and sending it to CFDocument for a PDF.
>
> Is there a way to kill all hyper links on the page so there are no hyperlinks
> in the PDF?
>
Why is this a Javascript question?
Just do some regex fun on your output content, stripping all anchor
tags, before w
> I'm in a bit of a quandary here, and was hoping that some if
> the brilliant minds on this list could offer some insight.
> Questions:
> Is there any way to "spoof" the DOM into thinking that the
> first form on the page is document.form[100]? (Can you
> override how the DOM indexes objects in
You have a Syntax error...
You missed the double quotes on the first image.
b1.src = "">
>From: "Shahzad.Butt" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: _javascript_ Help Required
>Date: Tue, 30 Dec 2003 11:40:34 -
>
>Hi
>
>I am using followi
That must be a mistake writing email however my code works fine. Only
problem is that I dont know how to keep the image active (Red One) when
a link is active.
_
From: MILAN MUSHRAN [mailto:[EMAIL PROTECTED]
Sent: 30 December 2003 14:10
To: CF-Talk
Subject: RE: _javascript_ Help Require
This is to the _javascript_ problem, "_javascript_ Help Required"
Sorry for the accidental thread start
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
60 matches
Mail list logo