RE: SOT: ajaxCFC/JavaScript/dynamic forms

2009-10-23 Thread Bryan Stevenson

Hey Rick,

I use jQuery for a tabbed interface and serializing formsthat's it!

I'm realizing there is more I should know about jQuery and it's usage
with ajaxCFClooking for decent tutorials or docs ;-)

When I say serialize I mean:
str = $(#+form).serialize();
(form being the argument passed to the JS function in question)

I simply call a method in a a CFC which creates the HTML string required
via CFSAVECONTENT like so (psuedo of course):

cfsavecontent
  form name=myPopUpForm id=myPopUpForm
[form stuff here]
[button with onClick=funcToSendFormVIaAJAX('formName');]
  /form
/cfsavecontent

So that HTML string is returned to the client and stuffed in a DIV that
then shows above the base page.  When the button on that form
(myPopUpForm) is pressed, the serialization step seems to fail as it
doesn't seem to see the form.

I'd love any info you have on what you asked about!!

TIA

Cheers
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327585
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: SOT: ajaxCFC/JavaScript/dynamic forms

2009-10-23 Thread Rick Faircloth

Hi, Bryan...

So, I take it from your answer that you're not using .live or .livequery.

.livequery (a pre-jQuery 1.3 plug-in) and .live (core as of 1.3)
are functions that address the issue you're having, it sounds like.

If you have a page rendered in a browser, then load new elements
into the DOM, such as links, buttons, etc., they won't work.

.livequery and .live use event delegation to bind current and future
elements in the DOM to an event.

For example, this code would not work for '#myLink' if it was added to a DOM
via
the jQuery .load function:

$(document).ready(function() {

   $('#myLink').click(function() {

  alert('myLink was clicked');

   });
});

However, the same code, using the .live function (jQuery 1.3 and later) with
allow the .click function to apply to '#myLink' no matter when the elements
is added to the DOM:

$(document).ready(function() {

   $('#myLink').live('click', function() {

  alert('myLink was clicked');

   });
});

You can read more about the .live functionality here:

http://docs.jquery.com/Events/live

hth,

Rick


However,

-Original Message-
From: Bryan Stevenson [mailto:br...@electricedgesystems.com] 
Sent: Friday, October 23, 2009 11:36 AM
To: cf-talk
Subject: RE: SOT: ajaxCFC/JavaScript/dynamic forms


Hey Rick,

I use jQuery for a tabbed interface and serializing formsthat's it!

I'm realizing there is more I should know about jQuery and it's usage
with ajaxCFClooking for decent tutorials or docs ;-)

When I say serialize I mean:
str = $(#+form).serialize();
(form being the argument passed to the JS function in question)

I simply call a method in a a CFC which creates the HTML string required
via CFSAVECONTENT like so (psuedo of course):

cfsavecontent
  form name=myPopUpForm id=myPopUpForm
[form stuff here]
[button with onClick=funcToSendFormVIaAJAX('formName');]
  /form
/cfsavecontent

So that HTML string is returned to the client and stuffed in a DIV that
then shows above the base page.  When the button on that form
(myPopUpForm) is pressed, the serialization step seems to fail as it
doesn't seem to see the form.

I'd love any info you have on what you asked about!!

TIA

Cheers
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.






~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327589
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: SOT: ajaxCFC/JavaScript/dynamic forms

2009-10-23 Thread Bryan Stevenson

Thanks Rick,

I think I have some reading to do ;-)

My implementation of ajaxCFC is quite different than it comes out of the
box (i.e. added a masterhandler CFC in the root to pass all AJAX calls
through to non-web accessible CFCs that are public and not
remote.there is also a custom ajaxCall() function that will
serialize the form if specified or package up other data into key/value
pairs to be sent as args to the CFC being called).

I suspect all my customizations are making this harder to match up with
the pure jQuery examples everyone is showing me.

I'll hack away for a bit and see if I can get anything to work.

I did use Tony'd load() example, but it ends up showing the HTML string
and NOT the form in the DIV I load it inno idea why?? ;-)

Thanks again fro the pointers!

Cheers
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327591
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


SOT: ajaxCFC/JavaScript/dynamic forms

2009-10-22 Thread Bryan Stevenson

Hi All,

I'm not the best when it comes to JavaScript and I've got a question
about forms that are created in a CFC method and then passed back to the
client to be displayed in a DIV (meant to look like a pop-up).

SCENARIO:
-
1) JS function is included when page is rendered and references a form
that does not yet exist.

2) User clicks a button which fires an AJAX call to create an HTML
string and passes it back to the client to be displayed in a hidden DIV
(which is then made visible).  The HTML string includes the form tags to
define the form that the JS function mentioned above references along
with some form prompts.

3) User enters some stuff in the form prompts and then clicks a button
to submit.  That submit calls the function mentioned in number 1 above.
In that call I use jQuery to serialize the form.
-

Now if I use jQuery (which I'm quite new to as well) to serialize a form
that exists at the time the page renders, everything works correctly.

If I do it as outlined in the scenario above, my AJAX calls fail.  From
what I can tell it is because the dynamically created and added form
does NOT seem to be seen and thus the serialization of it fails
(essentially I think it doesn't see the form and produces a  blank
string).

I'm pretty sure I have figured out what's happening, but I have no idea
how to solve it.

Any ideas?

Thanks a bunch in advance!!

Cheers
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327539
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: SOT: ajaxCFC/JavaScript/dynamic forms

2009-10-22 Thread Tony Bentley

Generally when I want to return HTML, I use the JQuery load() function. When I 
want to return a data set in JSON: array or query object,  return a boolean 
value or a single vfalue I use ColdFusion's native CFAJAXPROXY. I suggest 
returning the form using load(), which then will fix your issue. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327540
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SOT: ajaxCFC/JavaScript/dynamic forms

2009-10-22 Thread Bryan Stevenson

Thanks for the quick reply Tony!

I should note that I am NOT currently using jQuery with my AJAX calls
except for serializing the form.

I'm also doing this with openBD where CFAJAXPROXY was a bit off lat time
I tested it (but as you said...that's for the simple stuff).

Do you have a code snippet on the usage of the load() function? or
somewhere to point me so I can RTFM ;-)

TIA

Cheers
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327543
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SOT: ajaxCFC/JavaScript/dynamic forms

2009-10-22 Thread Bryan Stevenson

PS...I have just noticed the ajaxCFC zip file contains the core folder
AND the branches folder.and so now I've seen the jQuery branch ;-)

I bet the solutions to many of my issues questions reside in there!! ;-)
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327547
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SOT: ajaxCFC/JavaScript/dynamic forms

2009-10-22 Thread Tony Bentley

There are plenty of examples online. Check the jQuery docs. I can only advise 
that when using load, you will need to pass all of your parameters using a URL 
string, which will limit what you can pass to the posting page. I also suggest 
passing a timestamp so the browser never caches the results. You can even use a 
CFC as your page to load. You would do something like this:

$(#mydiv).load(/cfc/mycfc.cfc?method=getformid=+firstval+user=+secondval+ts=+gettime(),function(){//run
 stuff when the div is finished loading}); 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327548
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SOT: ajaxCFC/JavaScript/dynamic forms

2009-10-22 Thread Bryan Stevenson

Thanks again Tony!

So to make sure I'm barking up the right tree load() is intended to
(sorry for lack of a the proper technical term) make a form visible to
JS if the form was added to the page after it initially loads (i.e.
retrieved the HTML string containing the form from an ajax call to a
method in a CFC)?

Cheers
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327551
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: ajaxCFC/JavaScript/dynamic forms

2009-10-22 Thread Rick Faircloth

Hi, Bryan...

Are you using the .live functionality (jQuery 1.3 and above)
or the .livequery method for links, buttons, etc., that are
added to the DOM?

Rick

-Original Message-
From: Bryan Stevenson [mailto:br...@electricedgesystems.com] 
Sent: Thursday, October 22, 2009 5:45 PM
To: cf-talk
Subject: SOT: ajaxCFC/JavaScript/dynamic forms


Hi All,

I'm not the best when it comes to JavaScript and I've got a question
about forms that are created in a CFC method and then passed back to the
client to be displayed in a DIV (meant to look like a pop-up).

SCENARIO:
-
1) JS function is included when page is rendered and references a form
that does not yet exist.

2) User clicks a button which fires an AJAX call to create an HTML
string and passes it back to the client to be displayed in a hidden DIV
(which is then made visible).  The HTML string includes the form tags to
define the form that the JS function mentioned above references along
with some form prompts.

3) User enters some stuff in the form prompts and then clicks a button
to submit.  That submit calls the function mentioned in number 1 above.
In that call I use jQuery to serialize the form.
-

Now if I use jQuery (which I'm quite new to as well) to serialize a form
that exists at the time the page renders, everything works correctly.

If I do it as outlined in the scenario above, my AJAX calls fail.  From
what I can tell it is because the dynamically created and added form
does NOT seem to be seen and thus the serialization of it fails
(essentially I think it doesn't see the form and produces a  blank
string).

I'm pretty sure I have figured out what's happening, but I have no idea
how to solve it.

Any ideas?

Thanks a bunch in advance!!

Cheers
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.






~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327556
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: SOT: ajaxCFC/JavaScript/dynamic forms

2009-10-22 Thread Rick Faircloth

Hi, Bryan...

I'm not sure if you saw my reply to your original post, but
my question was are you using the .live or .livequery functions
for any links, buttons, etc., that are added to the DOM via AJAX? (Load, in
your case)

Rick

-Original Message-
From: Bryan Stevenson [mailto:br...@electricedgesystems.com] 
Sent: Thursday, October 22, 2009 6:55 PM
To: cf-talk
Subject: Re: SOT: ajaxCFC/JavaScript/dynamic forms


Thanks again Tony!

So to make sure I'm barking up the right tree load() is intended to
(sorry for lack of a the proper technical term) make a form visible to
JS if the form was added to the page after it initially loads (i.e.
retrieved the HTML string containing the form from an ajax call to a
method in a CFC)?

Cheers
-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.






~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327557
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Coldfusion - Dynamic Forms

2007-05-26 Thread Pete
Hi all

I'm working on an application.  I have been developing a form for users to
enter/edit information.

On the form I currently have provision for a user to enter up to 6 phone
numbers as the contact numbers for an organization.

I'm wondering if there is a better way to do this as not all organizations
have 6 contact nos.

I'm wondering if I could have say a drop down menu which allows a user to
select the number of contact numbers that they wish to enter.

i.e. if a user were to select 3 contact nos, then 3 input boxes would be
displayed.  If a user selected 4 then 4 input boxes would be displayed etc
etc etc

Thanks in advance for feed back

P



~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279333
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Coldfusion - Dynamic Forms

2007-05-26 Thread Bobby Hartsfield
If JavaScript is an option (it would depend completely on it though), you could 
look into the createElement() method it would allow you to add as many fields 
as you want on the fly, client side. You'd just use a hidden field or something 
to hold the count for you so you know how many fields to look for during 
processing.

I've also done this the quick way, which was create the maximum number of 
fields I wanted to allow, then hide them with JS/CSS. When the user clicked 
[Add New Field] it just unhid the next field. With JS off, all the fields 
were displayed since hiding them depended on JS.

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Pete [mailto:[EMAIL PROTECTED] 
Sent: Saturday, May 26, 2007 8:57 AM
To: CF-Talk
Subject: Coldfusion - Dynamic Forms

Hi all

I'm working on an application.  I have been developing a form for users to
enter/edit information.

On the form I currently have provision for a user to enter up to 6 phone
numbers as the contact numbers for an organization.

I'm wondering if there is a better way to do this as not all organizations
have 6 contact nos.

I'm wondering if I could have say a drop down menu which allows a user to
select the number of contact numbers that they wish to enter.

i.e. if a user were to select 3 contact nos, then 3 input boxes would be
displayed.  If a user selected 4 then 4 input boxes would be displayed etc
etc etc

Thanks in advance for feed back

P





~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279334
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Coldfusion - Dynamic Forms

2007-05-26 Thread Christopher Jordan
Why is Thunderbird including this thread as part of my 'Scope Memory' 
thread? What gives?

Chris

Pete wrote:
 Hi all

 I'm working on an application.  I have been developing a form for users to
 enter/edit information.

 On the form I currently have provision for a user to enter up to 6 phone
 numbers as the contact numbers for an organization.

 I'm wondering if there is a better way to do this as not all organizations
 have 6 contact nos.

 I'm wondering if I could have say a drop down menu which allows a user to
 select the number of contact numbers that they wish to enter.

 i.e. if a user were to select 3 contact nos, then 3 input boxes would be
 displayed.  If a user selected 4 then 4 input boxes would be displayed etc
 etc etc

 Thanks in advance for feed back

 P



 

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279346
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Coldfusion - Dynamic Forms

2007-05-26 Thread Pete
No idea?


-Original Message-
From: Christopher Jordan [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 27 May 2007 2:07 AM
To: CF-Talk
Subject: Re: Coldfusion - Dynamic Forms

Why is Thunderbird including this thread as part of my 'Scope Memory' 
thread? What gives?

Chris

Pete wrote:
 Hi all

 I'm working on an application.  I have been developing a form for users to
 enter/edit information.

 On the form I currently have provision for a user to enter up to 6 phone
 numbers as the contact numbers for an organization.

 I'm wondering if there is a better way to do this as not all organizations
 have 6 contact nos.

 I'm wondering if I could have say a drop down menu which allows a user to
 select the number of contact numbers that they wish to enter.

 i.e. if a user were to select 3 contact nos, then 3 input boxes would be
 displayed.  If a user selected 4 then 4 input boxes would be displayed etc
 etc etc

 Thanks in advance for feed back

 P



 



~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279347
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Coldfusion - Dynamic Forms

2007-05-26 Thread Bobby Hartsfield
No clue... it's not doing it in outlook 2k7

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Christopher Jordan [mailto:[EMAIL PROTECTED] 
Sent: Saturday, May 26, 2007 12:07 PM
To: CF-Talk
Subject: Re: Coldfusion - Dynamic Forms

Why is Thunderbird including this thread as part of my 'Scope Memory' 
thread? What gives?

Chris

Pete wrote:
 Hi all

 I'm working on an application.  I have been developing a form for users to
 enter/edit information.

 On the form I currently have provision for a user to enter up to 6 phone
 numbers as the contact numbers for an organization.

 I'm wondering if there is a better way to do this as not all organizations
 have 6 contact nos.

 I'm wondering if I could have say a drop down menu which allows a user to
 select the number of contact numbers that they wish to enter.

 i.e. if a user were to select 3 contact nos, then 3 input boxes would be
 displayed.  If a user selected 4 then 4 input boxes would be displayed etc
 etc etc

 Thanks in advance for feed back

 P



 



~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279349
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Coldfusion - Dynamic Forms

2007-05-26 Thread Jochem van Dieten
Christopher Jordan wrote:
 Why is Thunderbird including this thread as part of my 'Scope Memory' 
 thread? What gives?

Pete's message included the following header:
 References: [EMAIL PROTECTED]

The message with that messageID is part of the Scope Memory thread so 
Thunderbird naturally threads it there.

Jochem

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279350
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Coldfusion - Dynamic Forms

2007-05-26 Thread Christopher Jordan
Yeah, I'm just wondering how it got that way.

Chris

Jochem van Dieten wrote:
 Christopher Jordan wrote:
   
 Why is Thunderbird including this thread as part of my 'Scope Memory' 
 thread? What gives?
 

 Pete's message included the following header:
   
 References: [EMAIL PROTECTED]
 

 The message with that messageID is part of the Scope Memory thread so 
 Thunderbird naturally threads it there.

 Jochem

 

~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279351
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Dynamic Forms Help

2004-12-20 Thread Pedro Mendes
Hello all,

 

In a CFFORM I have a dynamically populated CFSELECT that generates a
list of entities, where value = NUMBER (of entity) and display = NAME
(of entity)

 

What I am trying to do is paste the name of the selected entity into a
TEXTAREA below, depending on the selection. Is this possible? Any help
will be most welcome. Please reply privately if you prefer.

 

Many thanks in advance,

Pedro
http://www.pedromendes.com http://www.pedromendes.com/ 

 

 



~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188257
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Dynamic Forms Help

2004-12-20 Thread Charlie Griefer
dunno if the cfform generated code will affect this, but try adding
the following to your cfselect tag:

onchange=this.form.TEXTAREA_NAME.value = this.options[this.selectedIndex].text


On Mon, 20 Dec 2004 16:07:49 -, Pedro Mendes [EMAIL PROTECTED] wrote:
 Hello all,
 
 In a CFFORM I have a dynamically populated CFSELECT that generates a
 list of entities, where value = NUMBER (of entity) and display = NAME
 (of entity)
 
 What I am trying to do is paste the name of the selected entity into a
 TEXTAREA below, depending on the selection. Is this possible? Any help
 will be most welcome. Please reply privately if you prefer.
 
 Many thanks in advance,
 
 Pedro
 http://www.pedromendes.com http://www.pedromendes.com/
 
 

~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188259
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


dynamic forms

2004-03-10 Thread Jones, Becky
i want to have a textbox show up on my form for data to be entered, only a checkbox is checked.
what is the easiest way to code this?
* 
This e-mail, including any attachments, is intended for the 
receipt and use by the intended addressee(s), and may contain 
confidential and privileged information. If you are not an intended 
recipient of this e-mail, you are hereby notified that any unauthorized 
use or distribution of this e-mail is strictly prohibited.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: dynamic forms

2004-03-10 Thread Tony Weeg
input type=checkbox name=checkThis
>
span style=display:hidden id=theForm
	input name=test size=10
/span 

not tested, but should work.

-Original Message-
From: Jones, Becky [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 10, 2004 3:12 PM
To: CF-Talk
Subject: dynamic forms

i want to have a textbox show up on my form for data to be entered, only a
checkbox is checked.
what is the easiest way to code this?
*
This e-mail, including any attachments, is intended for the receipt and use
by the intended addressee(s), and may contain confidential and privileged
information. If you are not an intended recipient of this e-mail, you are
hereby notified that any unauthorized use or distribution of this e-mail is
strictly prohibited.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: dynamic forms

2004-03-10 Thread Charlie Griefer
well, would need to determine the state of the checkbox in order to
determine whether or not to show/hide the text input...

form name=myform
 input type=checkbox name=foo  /
 input type=text name=bar style=display:none; /
/form

script type=text/_javascript_
function showhide(onoff) {
 if ( true) {
document.myform.bar.style.display = inline;
 } else {
document.myform.bar.style.display = none;
 }
}
/script

- Original Message - 
From: Tony Weeg [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 1:15 PM
Subject: RE: dynamic forms

 input type=checkbox name=checkThis
 >
 span style=display:hidden id=theForm
 input name=test size=10
 /span

 not tested, but should work.


 -Original Message-
 From: Jones, Becky [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 3:12 PM
 To: CF-Talk
 Subject: dynamic forms

 i want to have a textbox show up on my form for data to be entered, only a
 checkbox is checked.
 what is the easiest way to code this?
 *
 This e-mail, including any attachments, is intended for the receipt and
use
 by the intended addressee(s), and may contain confidential and privileged
 information. If you are not an intended recipient of this e-mail, you are
 hereby notified that any unauthorized use or distribution of this e-mail
is
 strictly prohibited.




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




RE: dynamic forms

2004-03-10 Thread Tony Weeg
yeah, true... 

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 10, 2004 3:24 PM
To: CF-Talk
Subject: Re: dynamic forms

well, would need to determine the state of the checkbox in order to
determine whether or not to show/hide the text input...

form name=myform
 input type=checkbox name=foo  /
 input type=text name=bar style=display:none; / /form

script type=text/_javascript_
function showhide(onoff) {
 if ( true) {
document.myform.bar.style.display = inline;
 } else {
document.myform.bar.style.display = none;
 }
}
/script

- Original Message -
From: Tony Weeg [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 1:15 PM
Subject: RE: dynamic forms

 input type=checkbox name=checkThis
 >
 span style=display:hidden id=theForm
 input name=test size=10
 /span

 not tested, but should work.


 -Original Message-
 From: Jones, Becky [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 3:12 PM
 To: CF-Talk
 Subject: dynamic forms

 i want to have a textbox show up on my form for data to be entered, only a
 checkbox is checked.
 what is the easiest way to code this?
 *
 This e-mail, including any attachments, is intended for the receipt and
use
 by the intended addressee(s), and may contain confidential and privileged
 information. If you are not an intended recipient of this e-mail, you are
 hereby notified that any unauthorized use or distribution of this e-mail
is
 strictly prohibited.




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




RE: Building Dynamic Forms with WDDX -- Examples Needed

2003-02-10 Thread dswitzer
Howard,

Check out qForms:
http://www.pengoworks.com/qforms/docs/examples/setfields.htm

I also did a WDDX Form example I used to have online a while ok, but I've
taken it offline as it was extremely outdated.

Using the method in the qForms example above, you'd just need to do
something like this.

1) When data is submitted to the server, save the FORM scope/structure as a
WDDX packet (in this example, I'll call it wddxPacket.)

2) On the edit page, invoke the following command somewhere within your
head/head tags:

script
cfwddx 
action=WDDX2JS 
input=#wddxPacket# 
toplevelvariable=oSavedData
/script

3) Now in the example, change the code objForm.setFields(stcForm); to:

objForm.setFields(oSavedData);

Obviously, you'll want to change the example around to match your exact
needs (i.e., you'll probably want to invoke the setFields() method during
the onLoad event of the document.)

-Dan

 -Original Message-
 From: Owens, Howard [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 06, 2003 9:17 PM
 To: CF-Talk
 Subject: Building Dynamic Forms with WDDX -- Examples Needed
 
 I want to build a form where I load the query data into a WDDX2JS packet,
 then have a select box of company name and when a new company is
 selected
 the rest of the edit form is populated with the matching data, which it
 can then be edited, and then submitted for updating the database.
 
 I know I've seen this done. I found a tutorial one time, but now that I
 really want to do it, I can't find the tutorial.
 
 Could you guys send me links, examples of how this is done.
 
 H.
 
 
 
 ~~
 Howard Owens
 Internet Operations Coordinator
 InsideVC.com/Ventura County Star
 [EMAIL PROTECTED]
 AIM: GoCatGo1956
 ~~
 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Building Dynamic Forms with WDDX -- Examples Needed

2003-02-06 Thread Owens, Howard
I want to build a form where I load the query data into a WDDX2JS packet,
then have a select box of company name and when a new company is selected
the rest of the edit form is populated with the matching data, which it
can then be edited, and then submitted for updating the database.

I know I've seen this done. I found a tutorial one time, but now that I
really want to do it, I can't find the tutorial.

Could you guys send me links, examples of how this is done.

H.



~~
Howard Owens
Internet Operations Coordinator
InsideVC.com/Ventura County Star
[EMAIL PROTECTED]
AIM: GoCatGo1956
~~

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




ordering of structure based dynamic forms

2000-08-14 Thread RICHARD MOGER

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--_=_NextPart_000_01C00612.F0B20370
Content-Type: multipart/alternative;
boundary="_=_NextPart_001_01C00612.F0B20370"


--_=_NextPart_001_01C00612.F0B20370
Content-Type: text/plain;
charset="iso-8859-1"

Hi
 
I'm currently building a set of forms based on a custom tag and an array of
structures. Anyone know how I can order the loop thru the structure (using
the collection and item properties of cfloop) and display the output in a
predefined order other than the default of alphabetical order of keys.
 
I'm thinking a method may be to create an array of each key, one array
variable for the 'key value' and another one for the display order. Then I
will have the problem of sorting all this! 
 
There must be a better way!
 
 
Regards
 
Rich
 

--_=_NextPart_001_01C00612.F0B20370
Content-Type: text/html;
charset="iso-8859-1"

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"


META content="MSHTML 5.50.4134.600" name=GENERATOR/HEAD
BODY
DIVFONT face=Verdana size=2SPAN 
class=830125816-14082000Hi/SPAN/FONT/DIV
DIVFONT face=Verdana size=2SPAN 
class=830125816-14082000/SPAN/FONTnbsp;/DIV
DIVFONT face=Verdana size=2SPAN class=830125816-14082000I'm currently 
building a set of forms based on a custom tag and an array of structures. Anyone 
know how I can order the loop thru the structure (using the collection and item 
properties of cfloop) and display the output in a predefined order other than 
the default of alphabetical order of keys./SPAN/FONT/DIV
DIVFONT face=Verdana size=2SPAN 
class=830125816-14082000/SPAN/FONTnbsp;/DIV
DIVFONT face=Verdana size=2SPAN class=830125816-14082000I'm thinking a 
method may be to create an array of each key, one array variable for the 'key 
value' and another one for the display order. Then I will have the problem of 
sorting all this! /SPAN/FONT/DIV
DIVFONT face=Verdana size=2SPAN 
class=830125816-14082000/SPAN/FONTnbsp;/DIV
DIVFONT face=Verdana size=2SPAN class=830125816-14082000There must be a 
better way!/SPAN/FONT/DIV
DIVFONT face=Verdana size=2/FONTnbsp;/DIV
DIVFONT face=Verdana size=2/FONTnbsp;/DIV
DIVSPAN class=830125816-14082000FONT face=Verdana 
size=2Regards/FONT/SPAN/DIV
DIVSPAN class=830125816-14082000FONT face=Verdana 
size=2/FONT/SPANnbsp;/DIV
DIVSPAN class=830125816-14082000FONT face=Verdana 
size=2Rich/FONT/SPAN/DIV
DIVnbsp;/DIV/BODY/HTML

--_=_NextPart_001_01C00612.F0B20370--

--_=_NextPart_000_01C00612.F0B20370
Content-Type: application/octet-stream;
name="Richard Moger (E-mail).vcf"
Content-Disposition: attachment;
filename="Richard Moger (E-mail).vcf"

BEGIN:VCARD
VERSION:2.1
N:Moger;Richard
FN:Richard Moger (E-mail)
ORG:James Villa Holidays Ltd
TITLE:IT Manager
TEL;WORK;VOICE:+44 (01732) 840846
TEL;CELL;VOICE:+44 (0777) 953 8192
TEL;WORK;FAX:+44 (01732) 872093
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Regents Court=0D=0ALondon 
Road;Addington;Kent;ME19 5PL;United Kingdom
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Regents Court=0D=0ALondon Road=0D=0AAddington, 
Kent ME19 5PL=0D=0AUnited Kin=
gdom
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:2707T003119Z
END:VCARD

--_=_NextPart_000_01C00612.F0B20370--
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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.



Dynamic Forms

2000-05-23 Thread Jason Zimmerman

I am creating a dynamic form. For example:

FORM
INPUT TYPE="text" NAME="text1"
INPUT TYPE="checkbox" NAME="checkbox1"
INPUT TYPE="text" NAME="text2"
INPUT TYPE="checkbox" NAME="checkbox2"
/FORM

I then get the value with this:

CFSET VARIABLES.var_name = "FORM.text"  VARIABLES.counter
CFSET VARIABLES.default_value = Evaluate(VARIABLES.var_name)
CFSET VARIABLES.text =
SetVariable(VARIABLES.var_name,VARIABLES.default_value)

This works fine for the text fields but not for the checkbox fields. Has
anyone done something like this before?

-Jason
--
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: Dynamic Forms in CF [How To?]

2000-05-22 Thread Reynolds, Adam

Simpleadd a form variable called 'numberofentries'.

If defined loop and create a X entries each suffixed by a number 1..X set an
invisible variable to the number requested. Action for the form should be to
some sort of insertentries.cfm

If not defined display a form which asks how many entries would you like to
make with the action to re-submit to the same form.

On submissio, the insertentries.cfm should loop X times and attempt an
insert. Make a check to make sure data exists for each entry.
 
Adam Reynolds
ColdFusion Consultant
HJ Heinz
Tel: 01344 397016  Fax: 01344 397010
Mobile: 07973 386620
Email: [EMAIL PROTECTED]

 --
 From: Paul Ihrig[SMTP:[EMAIL PROTECTED]]
 Sent: 22 May 2000 12:57
 To:   [EMAIL PROTECTED]
 Subject:  Dynamic Forms in CF [How To?]
 
 Hello.
 I have a project set up for here that i need to recreate in CF.
 Half way through it, there is a section for team members on the project
 01-12.
 
 01 Team Members Full Name   [Drop Down]
 Needs Training   [checkbox]
 Laptop   [checkbox]
 Foreign Language Operating System  [checkbox]
 
 well, sometimes the manager filling in the form will only add a few team
 members, 
 sometimes they may have more then 12 people on a team.
 
 So how can i build a form that first has a drop down or text are that asks
 
 How many team members do you have?
 
 Then Dynamically creates the fields needed?
 
 Would i need to break the form into several pages?
 
 After storing the info i also need to email the content to several people.
 
 I have all the standard  books. 
 if you know chapter  page # that may have the answer i need that would be
 cool too!
 
 Also If any one has any experience grabbing content/data from Semaphore,
 Please contact me.
 
 Thanks again.
 -paul
 --
 
 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.
 
**
 This email and any attachments are confidential and solely
 for the use of the intended recipient.  They may contain
 material protected by legal professional or other privilege.
 If you are not the intended recipient or the person responsible
 for delivering to the intended recipient, you are not authorised
 to and must not disclose, copy, distribute or retain this email
 or its attachments.  Although this email and its attachments
 are believed to be free of any virus or other defect, it is the
 responsibility of the recipient to ensure that they are virus free
 and no responsibility is accepted by the company for any
 loss or damage arising from receipt or use thereof.

**
--
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.