Reply to topic
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
Sounds exactly like the web.config or .htaccess - very cool
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
yeah they are very similar
cfm also has OnRequestEnd.cfm which runs at the end of every page
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
speaking of coldfusion 7
check this out!
have you seen the new flash forms yet?
I was showing some ppl how to do phone # masks in form fields
http://www.jamwerx.com/test/formmasks.cfm

try typing a letter in then just put #'s
pretty cool for only 6 lines of code and no java used at all!



Code:
<cfform format="flash" skin="haloblue" width="500" height="500" action="" preservedata="yes">
<cfformgroup type="vertical">
<cfinput name="telephone" type="text" label="USA Telephone" mask="(999)999-9999" width="150" />
<cfinput name="telephone2" type="text" label="England Telephone" mask="+99(9)999 999999" width="150" />
<cfinput name="telephone3" type="text" label="Australia Telephone" mask="+99(9)9 9999 9999" width="150" />
<cfinput name="telephone4" type="text" label="Sweden Telephone" mask="99-999-9999999, 9999999999" width="200" />
</cfformgroup>
</cfform>
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1029
Location: Felton, Delaware
Reply with quote
sweet masks look easy. BTW, that's not quite the same thing as web.config, but close.
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
its nice not having to have a bunch of js on there to validate stuff, i'll show u some else soon as it s up
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
tru dat Josh
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
check out this one, dont enter any info and submit and then go check out the validation, pretty sweet, for really no code involved
http://www.jamwerx.com/test/contactForm.cfm
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
There are advnatages and disadvantages to doing all your validation on the server though...just like there are advantages and disadvantages to doing it on the client...really depends on the application
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1029
Location: Felton, Delaware
Reply with quote
^^^ Exactly. Im still not sold on the whole Flash thing, but im getting closer Wink
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
How about this - Flash for truly cross platform multiplayer games - dunno why you couldn't do it in realtime either...I know it would work great for turn based games...but you should be able to do it with a realtime game as well...
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
check the validation out on this lil gizmo

http://www.icandfashion.com/gallery/contactForm.cfm

what u say can be true scott but using the new flash forms just took about 80+ lines of code out of this form without having to go to new page and the error popups are sure nice.
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
I have thought long and hard about doing my little game project as a Flash application - I just don't feel like learning yet another language...I want to really hone in on .NET right now - but learning Actionscript to do that game in Flash would be neat...
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
well really thats not flash scott, it's the new coldfusion. Actually, it's a lil bit of the flex engine in there to do that and the new reporting feature along with flashpaper production. That form canalso be changes to an xml form but just changing the variable from flash to xml and fully skinnable.

heres the entire code for that page with the form



Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Contact Form</title>
</head>

<body>

<cfform format="flash" skin="haloblue" width="500" height="400" action="sendMail.cfm" preservedata="yes">
<!--- set the form to have tabs --->
<cfformgroup type="tabnavigator">
<!--- set the page value - give the tab a label --->
<cfformgroup type="page" label="Personal Details">
<!--- Set the form alignment --->
<cfformgroup type="horizontal">
<!--- Open the first tabs contents --->
<cfinput name="FirstName" type="text" label="First Name" required="yes" message="First Name"  width="60"  />
<cfinput name="LastName" type="text" label="Last Name"  required="yes" message="Last Name "width="60"  />
<cfinput name="Gender" type="text" label="Gender" required="yes" message="Gender" width="60" />
<!--- close the first tabs contents --->
</cfformgroup>
<!--- close the first tab --->
</cfformgroup>
<!--- Second tab set --->
<cfformgroup type="page" label="Age">
<cfformgroup type="horizontal" label="Select your Age group: ">
<cfinput name="Age" type="radio" label="13-17" value="13-17" />
<cfinput name="Age" type="radio" label="18-30" value="18-30" checked="yes" />
<cfinput name="Age" type="radio" label="31-40" value="31-40" />
<cfinput name="Age" type="radio" label="41 and over" value="41 and over" />
</cfformgroup>
</cfformgroup>
<!--- Third tab set --->
<cfformgroup type="page" label="Contact Details">
<cfformgroup type="horizontal">
<cfinput name="eMail" type="text" label="Email" width="110" required="yes" validate="EMAIL" message="Valid Email" />
<cfinput name="telephone" type="text" label="Telephone" mask="(999)999-9999" width="110" />
<cftextarea name="comment" label="Comments" required="yes" message="Comment" maxlength = "250" height ="150" width="250" validate="maxlength" wrap="virtual"></cftextarea>
</cfformgroup>
<!--- Begin Binding --->
</cfformgroup>
<cfformgroup type="page" label="Done">
<cfformgroup type="horizontal">
<cfformitem type="text">Please verify your information then Submit the form</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="text" name="FirstName" bind="First Name: {FirstName.text}"> </cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="text" name="LastName" bind="Last Name: {LastName.text}"></cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="text" name="Gender" bind="Gender: {Gender.text}"></cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="text" name="Age" bind="Age: {Age.selectedData}"></cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="text" name="eMail" bind="Email Address: {eMail.text}"></cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="text" name="telephone" bind="Tel No: {telephone.text}"></cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="text" name="comment" bind="Comment: {comment.text}"></cfformitem>
</cfformgroup>
<cfinput type="submit" name="submit" value="Send Details" />
</cfformgroup>
<!--- Close the tabnavigator --->
</cfformgroup>
</cfform>
</body>
</html>
help
swhiteforever


Joined: 22 Mar 2005
Posts: 5
Reply with quote
This is driving me absolutely nuts. You guys seem to be involved with flash forms. What I want to do is simply check to make sure a value is present in my form and only bind and display the elements that have been on the 'DONE' page. I have tried every CF conditional I can think of. Most often the flash form will cease to load or it will ignore the condition and post everything like it has been filled in???? There are a lot of choices on six different tabs to build a complex query and would look awful if I redisplayed everything.


Any help is appreciated.
stephen@cisdirect.com
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
not really sure what ur asking can u show some code?
Password protecting folder?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 3 of 4  

  
  
 Reply to topic