I found this pretty nice cc validation script out on the net ... but I had
to make some modifications to it.
I'm having a weird problem with it, however.
Here is the relevant function:
function validCCForm(ccTypeField,ccNumField)
{
var result =
isValidCreditCardNumber(ccNumFie
I'm sorry to post this here but I really need a bit of a hand on this one.
I've searched the net to no avail.
Should be simple, I have a page with 10 forms. When a link is clicked a
handler is called and passed the name of the form to submit. I want to use
something like :
eval('document.'+f
Probably not much help - but in the least you can check the refering site with
#CGI.referer# and it if contains paypal.com or something - you can say thanks or
- please pay through paypal. But that assumes they are paying through paypal and
coming right back.
And of course - paypal did come up wi
stin Scott, Lead Developer
Sceiron Internet Services, Inc.
http://www.sceiron.com
- Original Message -
From: "Mark Smeets" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, June 01, 2002 8:25 PM
Subject: Sorta OT: Javascript Question/PayP
This is a multi-part message in MIME format.
--=_NextPart_000_0055_01BF9826.AE9A7300
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I've tried a couple different Javascript navigation bars, but none of =
them seem to work with my CF pa
I know this belongs on a Flash forum, but I haven't found a good one yet.
Anyway, I assume that many programmers use Flash to augment their CF apps.
So, here goes...
I use a lot of JavaScript on the client side of my CF apps... it
greatly improves the flow and user interface.
The major proble
turn false;
}
-Original Message-
From: Rosa, Issac [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 2:32 PM
To: CF-Talk
Subject: Slightly OT: Javascript Error - Confirmation Box
I have the following javascript and form. Can anyone see why I am not
getting the confirm box? No erro
to recreate it.
jon
- Original Message -
From: "Rosa, Issac" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 5:32 PM
Subject: Slightly OT: Javascript Error - Confirmation Box
> I have the following javascript and form. Can
3:32 PM
To: CF-Talk
Subject: Slightly OT: Javascript Error - Confirmation Box
I have the following javascript and form. Can anyone see why I am not
getting the confirm box? No error messages, just processes the form without
the confirm. Any help would be greatly appreciated.
Action Page
On Wednesday 03 Mar 2004 11:46 am, Tangorre, Michael wrote:
> Does anyone have a JS function to check the format of a link submitted by a
> user via a form.
You know _javascript_ supports regualar expressions, right ?
http://devedge.netscape.com/library/manuals/2000/_javascript_/1.5/guide/regexp.h
In deed I do, I am not good at writing them however and have been attempting
to alter one I found to check for a valid email address but am coming up
short.
Good link though...
Mike
_
From: Thomas Chiverton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 7:01 AM
To: CF-Talk
On Wednesday 03 Mar 2004 12:16 pm, Tangorre, Michael wrote:
> In deed I do, I am not good at writing them however
Ahh, well, what do you want to validate then ?
'http://' followed by alphanumeric, dot, alpha, dot,alpha, whitespace,
openAngleBracket,alphanumeric, dot, alpha,
dot,alpha,stroke,clos
Something general...
http:// followed by something then dot then some extension
www dot could be in there also but not required... and if it is in there,
then there should be two dots:
http://www dot something dot some extension
That was a mouthful.
Mike
_
From: Thomas Chiverton
On Wednesday 03 Mar 2004 12:42 pm, Tangorre, Michael wrote:
> http:// followed by something then dot then some extension
Is there a limit to the numbe of 'dot,something' pairs ?
How is 'extension' defined ?
There is a handy regular _expression_ editor called kregexpeditor, which I swear
has been
No limit to the 'dot.something' pairs.
What would you suggest for the dot extension? I would think that a string
following the last dot would be most flexible...
I will see if I can hunt down the editor!
Mike
_
From: Thomas Chiverton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03
e modern
browsers.
You should maybe use true instead of 1, but both should be fine.
-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED]
Sent: 15 September 2003 15:28
To: CF-Talk
Subject: -OT- Javascript - cross browser button disable
I'm looking for a cross browser
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: Thane Sherrington [mailto:[EMAIL PROTECTED]
: Sent: Monday, September 15, 2003 10:28 AM
: To: CF-Talk
: Subject: -OT- Javascript - cross browser button disable
:
:
: I'm looking for a cross browser
At 03:54 PM 09/15/03 +0100, Craig Dudley wrote:
>If your'e disabling a button from itself then, 'this.disabled=1' works
>in just about everything.
Excellent. I was hoping for something simple like this. I put it in the
onclick event, and it seems to work perfectly.
T
Tired of your bookmarks/f
At 11:01 AM 09/15/03 -0400, Ben Doom wrote:
>Also, remember that nothing with JS is guaranteed, since people can (and do)
>turn it off.
True. But I figure if someone actively tries to circumvent my precautions,
it's their problem to make sure they enter data correctly.
T
Tired of your bookmark
I've had issues with getYear() after creating a js date before in
FireFox. It would display 2005 in IE, but in FF it displays 105. I had to
use getFullYear() for it to display correctly. I don't have time to look
into the getMinutes and getSeconds, etc, but I would be willing to bet a
cold b
(not tested) :)
#i#
function changeDisplay(fVal) {
document.getElementById('displayValue').innerHTML = fVal - 1;
}
On 4/13/05, Che Vilnonis <[EMAIL PROTECTED]> wrote:
>
> Any JS wizards out there? I have a simple FORM...
>
>
>
> #i#
>
>
>
> What I would like to do is to display the
Howard:
opener.form1.ITEM_ID.value;
parent is when referencing a frame within a frameset.
hth,
Charlie
Owens>,Howard [EMAIL PROTECTED] writes:
> I have a form, and with the form, I have a link that when clicked, spawns a
> pop-up window.
>
> From within that popper, I want to read a fo
Hi All,
This is for a CF app, but really a JS question. I am using JS to throw up
alerts when an error occurs, which works fine. But if a user uses the
browser's back button, and then forward again (and vice-versa), the error
message occurs again, but should not.
What I want to do is, detect the
I've got an unusual problem.
I have a Javascript that rotates through a series of books (images/text
w/links). It's very simple. It works in IE and NS 4.x... But it doesn't
workin Mozilla / NS 7... nothing appears on the screen. How can I modify
this script/div so that it will display in all
MAIL PROTECTED]]
: Sent: Thursday, January 16, 2003 2:37 PM
: To: CF-Talk
: Subject: Way OT: javascript to submit a form
:
:
: I'm sorry to post this here but I really need a bit of a hand on
: this one.
: I've searched the net to no avail.
:
: Should be simple, I have a page with 10 forms.
.
> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 11:37 AM
> To: CF-Talk
> Subject: Way OT: javascript to submit a form
>
> I'm sorry to post this here but I really need a bit of a hand on this one.
>
ar).submit();
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
: Sent: Thursday, January 16, 2003 2:37 PM
: To: CF-Talk
: Subject: Way OT: javascript to submit a form
:
:
: I'm sorry to p
mit();
}
Chris Lofback
Sr. Web Developer
TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL 33761
www.trxi.com
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 2:37 PM
> To: CF-Talk
> Subject: Way OT: javascrip
Submit
submitHandler(formNumber) {
formObj = document.forms[formNumber];
formObj.submit();
}
Pass the form number in the link...the first form on the page will be
form 0, the second form 1, etc..
--
jon
mailto:[EMAIL PROTECTED]
Thursday, January 16, 2003, 2:37:10 PM, you wrote:
bmc> I'm
> Should be simple, I have a page with 10 forms. When a
> link is clicked a handler is called and passed the
> name of the form to submit. I want to use something
> like :
>
> eval('document.'+formNameVar+'.submit()')
>
> to submit the form, but I continually get an error
> saying the object
Awesome Thanks for all the replies!
At 03:00 PM 1/16/2003 -0500, you wrote:
>Submit
>
>submitHandler(formNumber) {
> formObj = document.forms[formNumber];
> formObj.submit();
>}
>
>Pass the form number in the link...the first form on the page will be
>form 0, the second form 1, etc..
>
>--
>
Hi folks. I know this is off-topic, but I'm getting annoyed, and I know
someone here will be able to give the answer.
I'm trying to do one of those javascript boxes where you can click a button
and the items move up or down in the list. I found one that works if I don't
care what the values are (
Does anyone know how to validate a form using two functions, one triggering
another?
I've got three forms that all contain the same fields, but then each one has
a couple of other fields as well. The onSubmit needs to trigger a specific
function and if that validation passes, it should then trigg
Yes, Flash routines can be pirated. In fact there is a utility, I
forget the name, that lets one openly browse any swf file for all
subroutines and actionscripting.
If you look on flashkit.com I'm sure you'll find it.
Hope this helps,
WayGee
Hello Dick,
Thursday, December 28, 2000, 10:26:2
On Thursday 10 Jul 2003 16:50 pm, Jillian Carroll wrote:
> workin Mozilla / NS 7... nothing appears on the screen. How can I modify
> this script/div so that it will display in all browsers?
Use the JavaScript debugger / console to asertain the problem. The fix should
be obvious then.
--
Thoma
The problem lies in this section:
if (document.layers) {
document.layers["myDiv"].document.open();
document.layers["myDiv"].document.write(rs);
document.layers["myDiv"].document.close();
} else {
This is a multi-part message in MIME format.
--=_NextPart_000_009F_01C047F3.C6CFB520
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
Can anyone suggest the best method to limit the number of characters =
entered into a textarea?
I s
I need to write some JavaScript to enable users to navigate around a form
that's 5 text inputs wide by up to about 30 inputs height by pressing the
arrow keys, as opposed to tabbing through them.
Each form input is named differently using a regular naming convention.
Does anyone have any pointer
There really should be a single repository for information about these
common JS tasks that nearly all CF Programmers will need to use sooner
or later :)
Now..this matches what people sent me...but for some reason I keep
getting Object Does not Support This Method. :-\
Any ideas?
Also..do you
I need a snippet of javascript/html/dhtml/css/whatever that will cause
Netscape or IE to crash reliably so I can test something. I have certainly
managed to crash them in the past but can't find the code that did it. Any
ideas?
Martin Herbener
BTW: a GREAT Javascript resource, http://irt.org/ (irt stands for Internet
Related Technologies)
function checkAll() {
document.formName.chk1.checked=true;
document.formName.chk2.checked=true;
document.formName.chk3.checked=true;
}
Or just give the checkboxes a name starting with some
another test, change 7 to 11, and watch what happens to 9 and 10???
strange isnt it? 9/10 seem to be the problems...?
--
tony
Tony Weeg
human.
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/
Check out http://www.antiwrap.com to send websites to your friends
And what is the significant difference between 9 & 10 (as compared to
any other 2 contiguous numbers in your set)?
Dick
On Aug 16, 2004, at 7:42 PM, Tony Weeg wrote:
> another test, change 7 to 11, and watch what happens to 9 and 10???
>
> strange isnt it? 9/10 seem to be the problems...?
>
>
nothing, man this is GHOST likethose numbers just trip right the fu** out??
strange my friend..
.tw
On Mon, 16 Aug 2004 20:10:04 -0700, Dick Applebaum <[EMAIL PROTECTED]> wrote:
> And what is the significant difference between 9 & 10 (as compared to
> any other 2 contiguous numbers in your se
On Mon, 6 Nov 2000 13:16:30 -0500, "J.Milks" <[EMAIL PROTECTED]> wrote:
>Can anyone suggest the best method to limit the number of characters =
>entered into a textarea?
>I seem to remember someone offering JS code that did just that on this =
>list.
I use this function:
//limit number of char
like:
-Craig
- Original Message -
From: "Angel Stewart" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 3:44 PM
Subject: More OT Javascript: Dual Submit Buttons on One Form.
> There really should be a single repository
Umm..
I tried that..a new name and stuff.
And I still get that same exact error. It is driving me nuts..I can't
understand! :-\
-Gel
-Original Message-
From: Craig [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 6:27 PM
To: CF-Talk
Subject: Re: More OT Javascript:
Must have books:
Javascript: The Definitive Reference (O'Reilly)
DHTML: The Definitive Reference (O'Reilly)
- Original Message -
From: "Angel Stewart" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 3:44 P
m.submit();
}
//-->
Untitled
This Form is posting to itself
&n
bsp;
Doug
- Original Message -
From: "Angel Stewart" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 2:48 PM
Subject: RE: More OT Javascript: Dual Submi
Gel, just change the input type to "button" as follows.
That should do the trick.
Cheers, Craig.
-Original Message-
From: Angel Stewart [mailto:[EMAIL PROTECTED]]
Sent: 13 November 2001 21:45
To: CF-Talk
Subject: More OT Javascript: Dual Submit Buttons on One Form.
Th
AIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 4:48 PM
Subject: RE: More OT Javascript: Dual Submit Buttons on One Form.
> Umm..
> I tried that..a new name and stuff.
>
> onclick="document.Timeentry_billable.action='timee
Go away.
On Tue, 11 Dec 2001 [EMAIL PROTECTED] wrote:
> I need a snippet of javascript/html/dhtml/css/whatever that will cause
> Netscape or IE to crash reliably so I can test something. I have certainly
> managed to crash them in the past but can't find the code that did it. Any
> ideas?
>
>
Hi All,
I am having a problem with a javascript function in ColdFusion. Works fine
under IE, but not Netscape.
You enter a record ID in a form field and click the lookup button, which
loads a page which amongst other things, contains the below code. Once the
query finds the correct details the
Okay, I know I know, this is off topic, but I've been banging my head about
this one, and I'm SURE it's probably stupid simple, but I'm just not good
with dates (insert nerd joke here).
Here's a simple form. Three select dropdowns. There's other validation going
on, and other stuff happening, but
x27;ll
take the guesswork out of things.
-Dan
-Original Message-
From: Picker, Mark P [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 5:02 PM
To: CF-Talk
Subject: Slight OT : Javascript works in IE, but ignored in Netscape
Hi All,
I am having a problem with a javascript functio
401 - 455 of 455 matches
Mail list logo