re: CF / Javascript question

2008-12-19 Thread Jenny Gavin-Wear
Yes, that is one option and would be really easy to do, just would be really
sweet to do it with the scrolling div (or textarea) though.



-Original Message-
From: CF Developer [mailto:coldfus...@mindkeeper.net]
Sent: 17 December 2008 15:22
To: cf-talk
Subject: SPAM-HIGH re: CF / Javascript question



Why not place a checkbox on the page (after the textarea) 
indicating:

[ ] I have read the prescribed text.

If the box is checked, fire off a JS to enable the Continue button, else
keep it disabled.

Just a thought!



From: Jenny Gavin-Wear 
jenn...@fasttrackonline.co.uk
Sent: Wednesday, December 17, 2008 6:54 AM
To: cf-talk cf-talk@houseoffusion.com
Subject: CF / Javascript question

Hi all,

In a registration procedure, I need to do a verification that the person
registering has read a large piece of text.

The way I thought about doing is is with a scrolling div area which enables
a continue to next page option when the user has scrolled to the bottom of
the text.

How could I best go about this using CF and/or javascript, please?

Grateful for any ideas ...

Jenny





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316957
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


re: CF / Javascript question

2008-12-17 Thread CF Developer

Why not place a checkbox on the page (after the textarea) 
indicating: 

[ ] I have read the prescribed text.

If the box is checked, fire off a JS to enable the Continue button, else keep 
it disabled.

Just a thought!



From: Jenny Gavin-Wear 
jenn...@fasttrackonline.co.uk
Sent: Wednesday, December 17, 2008 6:54 AM
To: cf-talk cf-talk@houseoffusion.com
Subject: CF / Javascript question 

Hi all,

In a registration procedure, I need to do a verification that the person
registering has read a large piece of text.

The way I thought about doing is is with a scrolling div area which enables
a continue to next page option when the user has scrolled to the bottom of
the text.

How could I best go about this using CF and/or javascript, please?

Grateful for any ideas ...

Jenny



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316865
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF / Javascript question

2008-12-17 Thread Ravi Gehlot
Jenny,

Great question. It is not really easy to accomplish what you have in 
mind. I understand that you want the user to scroll down in order to 
show a button for continue. Dzone.com has a great example of how you can 
scroll down using javascript. If you can get the position where it 
stops, perhaps you can pass that as an argument to enable your button. I 
am not sure how to do it though. This is just my thought. Check this 
article for more information: 
http://www.jaisenmathai.com/blog/2008/02/18/eliminate-paging-results-by-using-javascript-ala-dzone/

Just my $0.02 cents,
Ravi.




Jenny Gavin-Wear wrote:
 Hi all,

 In a registration procedure, I need to do a verification that the person
 registering has read a large piece of text.

 The way I thought about doing is is with a scrolling div area which enables
 a continue to next page option when the user has scrolled to the bottom of
 the text.

 How could I best go about this using CF and/or javascript, please?

 Grateful for any ideas ...

 Jenny




 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316866
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF / JavaScript question

2004-01-06 Thread Daniel Farmer
I'm not sure what you're doing here. But why not just put the select fields into a seperate templates and then call them as you need to? ( cfinclude )
- Original Message - 
From: Steve Logan 
To: CF-Talk 
Sent: Tuesday, January 06, 2004 2:49 PM
Subject: CF / _javascript_ question

I was looking around for a code example of this and haven't been able to
find one - it's definitely something that's been on my list of must learn
- now it's a need to learn item.

I have 2 tables in my db - one is partcategory and one is partsubcatetory.
I have a CF snippet set to create a form select pulldown off of the first
table, but what I want to have happen is when they make a selection from the
first pull down (onChange) run a 2nd query to populate the subcategory with
the appropriate items.

The part category pulldown select code is this:

!--- part cat select pulldown ---
cfquery name=selPartCat datasource=#Session.DSN#
select * from partcategory
/cfquery
cfparam name=PartCategorySelect default=
cfparam name=FindCategory default=
cfset PartCategorySelect=PartCategorySelect  'option value=0'
cfset PartCategorySelect=PartCategorySelect--Make A Selection--
cfoutput query=selPartCat
 cfset PartCategorySelect=PartCategorySelect  'option
value=#selPartCat.pc_id#'
 cfif pc_id eq FindCategory
cfset PartCategorySelect=PartCategorySelect  
selected
/cfif
 cfset PartCategorySelect=PartCategorySelect   
#selPartCat.pc_category#
/cfoutput
cfset PartCategorySelect=PartCategorySelect  /select
cfset PartCategorySelect='select name=PartCategorySelect'
PartCategorySelect

!--- end part cat pulldown ---

cfoutput#PartCategorySelect#/cfoutput

This gives me a nice pulldown with the correct values and selection names.
Now I'm stuck on the _javascript_ to get the 2nd query / pulldown to be
created.

Thanks.

Steve
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CF / JavaScript question

2004-01-06 Thread Charlie Griefer
http://www.webtricks.com/sourcecode/code.cfm?CodeID=18

http://www.macromedia.com/cfusion/exchange/index.cfm#loc=en_usview=sn106viewName=Exchange%20Search%20Detailsauthorid=7653985page=0scrollPos=0subcatid=0snid=sn106itemnumber=13extid=1000288catid=0

- Original Message - 
From: Daniel Farmer 
To: CF-Talk 
Sent: Tuesday, January 06, 2004 12:54 PM
Subject: Re: CF / _javascript_ question

I'm not sure what you're doing here. But why not just put the select fields into a seperate templates and then call them as you need to? ( cfinclude )
 - Original Message - 
 From: Steve Logan 
 To: CF-Talk 
 Sent: Tuesday, January 06, 2004 2:49 PM
 Subject: CF / _javascript_ question

 I was looking around for a code example of this and haven't been able to
 find one - it's definitely something that's been on my list of must learn
 - now it's a need to learn item.

 I have 2 tables in my db - one is partcategory and one is partsubcatetory.
 I have a CF snippet set to create a form select pulldown off of the first
 table, but what I want to have happen is when they make a selection from the
 first pull down (onChange) run a 2nd query to populate the subcategory with
 the appropriate items.

 The part category pulldown select code is this:

 !--- part cat select pulldown ---
 cfquery name=selPartCat datasource=#Session.DSN#
 select * from partcategory
 /cfquery
 cfparam name=PartCategorySelect default=
 cfparam name=FindCategory default=
 cfset PartCategorySelect=PartCategorySelect  'option value=0'
 cfset PartCategorySelect=PartCategorySelect--Make A Selection--
 cfoutput query=selPartCat
cfset PartCategorySelect=PartCategorySelect  'option
 value=#selPartCat.pc_id#'
cfif pc_id eq FindCategory
 cfset PartCategorySelect=PartCategorySelect  
 selected
 /cfif
cfset PartCategorySelect=PartCategorySelect   
 #selPartCat.pc_category#
 /cfoutput
 cfset PartCategorySelect=PartCategorySelect  /select
 cfset PartCategorySelect='select name=PartCategorySelect'
 PartCategorySelect

 !--- end part cat pulldown ---

 cfoutput#PartCategorySelect#/cfoutput

 This gives me a nice pulldown with the correct values and selection names.
 Now I'm stuck on the _javascript_ to get the 2nd query / pulldown to be
 created.

 Thanks.

 Steve
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CF / JavaScript question

2004-01-06 Thread Joe On The Road
Hi Steve,
Take a look at the _javascript_ on this page.It might help.
http://www.jascouniform.com/ecom/showdetl.cfm?User_ID=4326092st=4888st2=79755318st3=70838938Product_ID=4240

Select a color and the size changes, select a size and the price 
changes.Not exactly what you wanted but the concept is there.
Also, why not join your query to get all the data from both tables at 
once and group it, put the results in a _javascript_ array, and use this 
array to populate the selects.Hope this helps...
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CF / JavaScript question

2004-01-06 Thread DURETTE, STEVEN J (AIT)
Steve,

 
Why don't you do one select that joins the tables.Then you can use the
multiselects related with cf and _javascript_ tutorial I wrote.

 
The tutorial can be found at http://tutorial196.easycfm.com
http://tutorial196.easycfm.comIt deals with 3 related selects, but
should be easily converted to two selects.

 
Steve

-Original Message-
From: Steve Logan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 2:49 PM
To: CF-Talk
Subject: CF / _javascript_ question

I was looking around for a code example of this and haven't been able to
find one - it's definitely something that's been on my list of must learn
- now it's a need to learn item.

I have 2 tables in my db - one is partcategory and one is partsubcatetory.
I have a CF snippet set to create a form select pulldown off of the first
table, but what I want to have happen is when they make a selection from the
first pull down (onChange) run a 2nd query to populate the subcategory with
the appropriate items.

The part category pulldown select code is this:

!--- part cat select pulldown ---
cfquery name=selPartCat datasource=#Session.DSN#
select * from partcategory
/cfquery
cfparam name=PartCategorySelect default=
cfparam name=FindCategory default=
cfset PartCategorySelect=PartCategorySelect  'option value=0'
cfset PartCategorySelect=PartCategorySelect--Make A Selection--
cfoutput query=selPartCat
cfset PartCategorySelect=PartCategorySelect  'option
value=#selPartCat.pc_id#'
cfif pc_id eq FindCategory
cfset PartCategorySelect=PartCategorySelect  
selected
/cfif
cfset PartCategorySelect=PartCategorySelect   
#selPartCat.pc_category#
/cfoutput
cfset PartCategorySelect=PartCategorySelect  /select
cfset PartCategorySelect='select name=PartCategorySelect'
PartCategorySelect

!--- end part cat pulldown ---

cfoutput#PartCategorySelect#/cfoutput

This gives me a nice pulldown with the correct values and selection names.
Now I'm stuck on the _javascript_ to get the 2nd query / pulldown to be
created.

Thanks.

Steve 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]