cf_embedfields
-----Original Message-----
From: Jon Gage [mailto:[EMAIL PROTECTED]]
Sent: woensdag 6 december 2000 22:16
To: CF-Talk
Subject: OT: E-mail Javascript question
I've got a script that I found that I'm using to validate e-mail addresses:
function isEmail(str) {
// are regular expressions supported?
var supported = 0;
if (window.RegExp) {
var tempStr = "a";
var tempReg = new RegExp(tempStr);
if (tempReg.test(tempStr)) supported = 1;
}
if (!supported)
return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
var r2 = new
RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$")
;
return (!r1.test(str) && r2.test(str));
}
My question is, where can I put a msgbox into this?
(I don't know much about Javascript)
> -----Original Message-----
> From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 06, 2000 12:50 PM
> To: CF-Talk
> Subject: Re: What are the recognized CF variable scopes?
>
>
>
> I can add in my two cents, although it probalby isn't the complete list.
> The 'variables' scope is for local, or instance variables. They only
> exist during the execution of the page which they are created (I.E.
> with a CFSET, for example).
>
> There is also the URL scope. (Is that a type of instance /
> variable scope
> variable?) It's for variables passed int he URL.
>
> I would imagine that Query would also be an example of an instance
> variable, since Queries don't exist beyond the page that creates them.
> Anyone have any other thoughts?
>
>
> "Dempsey, Timothy F." wrote:
> >
> > Folks,
> >
> > I have seen a mention on this list in the last couple of days something
> > called the request scope for CF variables. I had never heard of
> it. Until
> > now I had only heard of the Application, Client, Session, Form,
> Query, and
> > Attributes scopes as well as the local variable scope.
> >
> > Now I have a few questions:
> >
> > 1.) What is the Request scope?
> > 2.) Are there other scopes besides that and the ones I listed above?
> > 3.) Where are things like this documented? I don't see it in
> the CF manuals
> > or help files or in Ben Forta's books.
> >
> > Thanks,
> > -- Tim Dempsey
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists