RE: Can CF generate a Pop-up Window w/o Javascript?????

2000-06-12 Thread Nagesh Kumar Deva

Hi jenny,

the form validations will workout as u said but it is, when only one submit
button is on the form. wat to do? if two submit buttons on the form in which
two serves differently , i mean one for form submission and another is to
see anything like history of earlier visits suppose. So if we want to write
form validations on that form it executes no matter which button you clicked
but my purpose is form validate when and only the submit button is clicked
and not other button. 

how can we execute form validations when two submit button are on the form??

Please let me know wat should i do??

thanx in advance

regards

nagesh 

-Original Message-
From: Jenny Anderson [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 09, 2000 12:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Can CF generate a Pop-up Window w/o Javascript?


-Original Message-
  From: Richard Fascianella [SMTP:[EMAIL PROTECTED]]
  Hello,
 
  I joined this list with the hope someone can help me with an issue I am
  having.
 
  I need to find out if CF can be used to generate a pop-up browser window
  WITHOUT the use of javascript.
 
  What I am trying to do is validate a form, and have a pop-up box appear
  when a field is not filled out,

Just use the CFINPUT, CFSELECT, etc tags.

Example:

CFINPUT TYPE="text" name="phone" size="10" maxlength="10" Required="yes" 
Message"You need to enter a phone number"
Validate="telephone"

If you look at it, it should be pretty self-explanatory.  The "required" 
atribute of the tag is either yes or no.  The "message" attribute of the 
tag is the text that appears in the pop-up window and the "validate" 
attribute of the tag will tells what kind of information should be in the 
field.  Cold Fusion does the rest for you and generates the 
javascript.  :o)  A good source, Forta's ColdFusion 4.0 book, pages 
825-826, 851.

 or when a field is a duplicate (using SQL to check for dupes), informing 
the user of such.

I've done this on my pages through the action page for my forms.  I run a 
query first to see if there is a record for it already in the database.  I 
use #queryname.RecordCount# in my CFIF statement.  If it comes back as 
zero I insert the new record, or if it comes back as 1 I ask the user if 
they want to do an update and then pass to another action page that has an 
update query.

  Im not a programmer, so please phrase your answers accordingly :)
HTH

Jenny


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Can CF generate a Pop-up Window w/o Javascript?????

2000-06-11 Thread Angel Stewart

Uh oh..

err..could you try it with Internet Explorer and see if you get the same
error?

Also could you try sending to

USER: me
message : test
email [EMAIL PROTECTED]
(should display user not found etc. etc. in the pop up window)

I'd like to know if for some reason having spaces in those fields is a
problem for some browsers/proxy servers or something.
I can't think why you would be getting that error.

-Gel


- Original Message -
From: Brett Payne-Rhodes [EMAIL PROTECTED]
To: cf-talk [EMAIL PROTECTED]
Sent: Friday, June 09, 2000 1:14 AM
Subject: Re: Can CF generate a Pop-up Window w/o Javascript?


 I was very interested in trying this out, it is something that I have
 been pondering for quite a while, that is, how to use a pop-up window to
 select from a set of choices. Unfortunately when I went to the URL and
 tried it a few times the only thing that appeared in the pop-up window
 was:

 HTTP Error 400

 400 Bad Request

 I'm using Netscape 4.5 on Windows NT...

 Brett
 B)

  Date: Tue, 6 Jun 2000 18:00:51 -0300
  From: "Angel Stewart" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: Re: Can CF generate a Pop-up Window w/o Javascript?
  Message-ID: 009c01bfcffa$4dc39460$[EMAIL PROTECTED]
 
  First off, WHY can you not use javascript? Is it because you do not know
  javascript? or for some reason or the other cannot use it in this
project?
  I have done somethign similar, and spent many hard minutes figuring out
a
  solution to do just what you want.
  Its at www.opentelecom.com/selectcustomer.cfm
 
  You can use Angel Stewart as the name to test the paging functions. You
will
  see that a seperate window opens with the Results from the form which
are
  submitted, basically, and does some validation etc.
 
  I'll be glad to tell you how its done, and give you the sample code.
  Coding the Javascript string for the Open Window was a b. And don't
  worry, before this I never coded any javascript myself either.
 
  -Gel


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Can CF generate a Pop-up Window w/o Javascript?????

2000-06-11 Thread Jenny Anderson

-Original Message-
  From: Richard Fascianella [SMTP:[EMAIL PROTECTED]]
  Hello,
 
  I joined this list with the hope someone can help me with an issue I am
  having.
 
  I need to find out if CF can be used to generate a pop-up browser window
  WITHOUT the use of javascript.
 
  What I am trying to do is validate a form, and have a pop-up box appear
  when a field is not filled out,

Just use the CFINPUT, CFSELECT, etc tags.

Example:

CFINPUT TYPE="text" name="phone" size="10" maxlength="10" Required="yes" 
Message"You need to enter a phone number"
Validate="telephone"

If you look at it, it should be pretty self-explanatory.  The "required" 
atribute of the tag is either yes or no.  The "message" attribute of the 
tag is the text that appears in the pop-up window and the "validate" 
attribute of the tag will tells what kind of information should be in the 
field.  Cold Fusion does the rest for you and generates the 
javascript.  :o)  A good source, Forta's ColdFusion 4.0 book, pages 
825-826, 851.

 or when a field is a duplicate (using SQL to check for dupes), informing 
the user of such.

I've done this on my pages through the action page for my forms.  I run a 
query first to see if there is a record for it already in the database.  I 
use #queryname.RecordCount# in my CFIF statement.  If it comes back as 
zero I insert the new record, or if it comes back as 1 I ask the user if 
they want to do an update and then pass to another action page that has an 
update query.

  Im not a programmer, so please phrase your answers accordingly :)
HTH

Jenny

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Can CF generate a Pop-up Window w/o Javascript?????

2000-06-10 Thread Brett Payne-Rhodes

I was very interested in trying this out, it is something that I have
been pondering for quite a while, that is, how to use a pop-up window to
select from a set of choices. Unfortunately when I went to the URL and
tried it a few times the only thing that appeared in the pop-up window
was:

HTTP Error 400

400 Bad Request

I'm using Netscape 4.5 on Windows NT...

Brett
B)

 Date: Tue, 6 Jun 2000 18:00:51 -0300
 From: "Angel Stewart" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Can CF generate a Pop-up Window w/o Javascript?
 Message-ID: 009c01bfcffa$4dc39460$[EMAIL PROTECTED]
 
 First off, WHY can you not use javascript? Is it because you do not know
 javascript? or for some reason or the other cannot use it in this project?
 I have done somethign similar, and spent many hard minutes figuring out a
 solution to do just what you want.
 Its at www.opentelecom.com/selectcustomer.cfm
 
 You can use Angel Stewart as the name to test the paging functions. You will
 see that a seperate window opens with the Results from the form which are
 submitted, basically, and does some validation etc.
 
 I'll be glad to tell you how its done, and give you the sample code.
 Coding the Javascript string for the Open Window was a b. And don't
 worry, before this I never coded any javascript myself either.
 
 -Gel
 
 - Original Message -
 From: Richard Fascianella [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 05, 2000 10:21 AM
 Subject: Can CF generate a Pop-up Window w/o Javascript?
 
  Hello,
 
  I joined this list with the hope someone can help me with an issue I am
  having.
 
  I need to find out if CF can be used to generate a pop-up browser window
  WITHOUT the use of javascript.
 
  What I am trying to do is validate a form, and have a pop-up box appear
 when
  a field is not filled out, or when a field is a duplicate (using SQL to
  check for dupes), informing the user of such. However, I am NOT able to
 use
  javascript to generate the actual pop-up box. Will Cold Fusion be able to
  gereate that pop-up box
 
  Im not a programmer, so please phrase your answers accordingly :)
 
  Thank you!
 
  Richard
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Can CF generate a Pop-up Window w/o Javascript?????

2000-06-08 Thread Jann at Studio303

If you're in a pure windows environment, maybe yes with ActiveX

In a pure web way -- no.  That IS what JavaScript is for.

on 6/5/00 6:21 AM, Richard Fascianella at [EMAIL PROTECTED] wrote:

 Hello,
 
 I joined this list with the hope someone can help me with an issue I am
 having.
 
 I need to find out if CF can be used to generate a pop-up browser window
 WITHOUT the use of javascript.
 
 What I am trying to do is validate a form, and have a pop-up box appear when
 a field is not filled out, or when a field is a duplicate (using SQL to
 check for dupes), informing the user of such. However, I am NOT able to use
 javascript to generate the actual pop-up box. Will Cold Fusion be able to
 gereate that pop-up box
 
 Im not a programmer, so please phrase your answers accordingly :)
 
 Thank you!
 
 Richard
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
 
 --
 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit
 http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
 send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
 body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Can CF generate a Pop-up Window w/o Javascript?????

2000-06-08 Thread Roberts, Jesse D

No can do.  In order to get the pop-up window, you need a Server-side
language of which JavaScript is probably the best for your purposes.
ColdFusion is a server-side technology meaning that all of it's code is
executed on the server before a page is sent to a user.  Because of this,
ColdFusion has no dynamic capability on the user's computer (meaning it
can't dynamically validate form fields, etc.)  HOWEVER, don't lose heart.
If you just don't want to write the JavaScript, ColdFusion can do that for
you to facilitate form validation.  All you need to do is either use CFFORM
elements or embedded HTML form validation.  The latter is pretty simple.
All you do is create a hidden input field corresponding to each INPUT field.
The names for these hidden fields are then appended with validation rule
suffixes.  Here's an example:

If I want to require a text field is completed is first create that text
field:
INPUT TYPE="text" NAME="Field1"

Then, I create a hidden form field with the appropriate validation rule
suffix:
INPUT TYPE="hidden" NAME="Field1_required" VALUE="Field1 is required"
Here, the VALUE parameter specifies the error message displayed if the rule
is violated.  Other validation rule suffixes are:

_integer
_range
_time
_date
_eurodate
_float

This will cause CF to generate appropriate JavaScript code to do the
validation.  If you want more information on this, get Ben Forta's first
book.

Jesse D. Roberts
Business Process Analyst
Procurement Quality Assurance
Boeing - Huntington Beach, CA
[EMAIL PROTECTED]
Ph. 714-896-3462
Fx. 714-896-3303

 -Original Message-
 From: Richard Fascianella [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, June 05, 2000 6:21 AM
 To:   [EMAIL PROTECTED]
 Subject:  Can CF generate a Pop-up Window w/o Javascript?
 
 Hello,
 
 I joined this list with the hope someone can help me with an issue I am 
 having.
 
 I need to find out if CF can be used to generate a pop-up browser window 
 WITHOUT the use of javascript.
 
 What I am trying to do is validate a form, and have a pop-up box appear
 when 
 a field is not filled out, or when a field is a duplicate (using SQL to 
 check for dupes), informing the user of such. However, I am NOT able to
 use 
 javascript to generate the actual pop-up box. Will Cold Fusion be able to 
 gereate that pop-up box
 
 Im not a programmer, so please phrase your answers accordingly :)
 
 Thank you!
 
 Richard
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
 
 --
 
 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit
 http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
 send a message to [EMAIL PROTECTED] with 'unsubscribe' in
 the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Can CF generate a Pop-up Window w/o Javascript?????

2000-06-08 Thread Dave Watts

 I joined this list with the hope someone can help me with an
 issue I am having.

 I need to find out if CF can be used to generate a pop-up
 browser window WITHOUT the use of javascript.

 What I am trying to do is validate a form, and have a pop-up
 box appear when a field is not filled out, or when a field is
 a duplicate (using SQL to check for dupes), informing the user
 of such. However, I am NOT able to use javascript to generate
 the actual pop-up box. Will Cold Fusion be able to gereate that
 pop-up box

 Im not a programmer, so please phrase your answers accordingly :)

No. How's that?

The only thing that CF does (please excuse the slight understatement) is
generate ASCII text. This text can contain HTML, JavaScript, literal text,
CSS, DHTML, and lots of other stuff. Making boxes pop up, or doing anything
at all in the browser for that matter, requires the use of some technology
that the browser knows what to do with; you can use CF to generate the text
that the browser uses, but what the browser does with that text doesn't have
anything to do with CF. The browser doesn't even know anything about CF; all
it knows is that it made a URL request, and got back some text.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Can CF generate a Pop-up Window w/o Javascript?????

2000-06-07 Thread Angel Stewart

First off, WHY can you not use javascript? Is it because you do not know
javascript? or for some reason or the other cannot use it in this project?
I have done somethign similar, and spent many hard minutes figuring out a
solution to do just what you want.
Its at www.opentelecom.com/selectcustomer.cfm

You can use Angel Stewart as the name to test the paging functions. You will
see that a seperate window opens with the Results from the form which are
submitted, basically, and does some validation etc.

I'll be glad to tell you how its done, and give you the sample code.
Coding the Javascript string for the Open Window was a b. And don't
worry, before this I never coded any javascript myself either.

-Gel

- Original Message -
From: Richard Fascianella [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 05, 2000 10:21 AM
Subject: Can CF generate a Pop-up Window w/o Javascript?


 Hello,

 I joined this list with the hope someone can help me with an issue I am
 having.

 I need to find out if CF can be used to generate a pop-up browser window
 WITHOUT the use of javascript.

 What I am trying to do is validate a form, and have a pop-up box appear
when
 a field is not filled out, or when a field is a duplicate (using SQL to
 check for dupes), informing the user of such. However, I am NOT able to
use
 javascript to generate the actual pop-up box. Will Cold Fusion be able to
 gereate that pop-up box

 Im not a programmer, so please phrase your answers accordingly :)

 Thank you!

 Richard
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

 --

 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.