Skip to main content
July 23, 2008
Question

reloading a cfimport

  • July 23, 2008
  • 1 reply
  • 365 views
so i've got this form which i've been developing to make it a drag and drop type form -- IE all i have to do is place the file in the directory and link the document to it

problem im having is when the form is submitted id LIKE it to refresh the cfimport without reloading the rest of the page

is this possible?

below is the code im working with:

<div id="feedback">
<h1>Feedback</h1>
<h2>Help us help you</h2>
<cfparam name="url.step" default="1">
<cfif url.step EQ 1>
<cfform name="contact" action="server_extContact.cfm?step=2" method="post">
First Name:*<br />
<cfinput type=text name="firstName" size=35 required="Yes" message="First Name is Required"><br />
Last Name:*<br />
<cfinput type=text name="lastName" size=35 required="Yes" message="Last Name is Required"><br />
Your Email:<br />
<cfinput type=text name="email" size=35 required="No"><br />
Comments:<br />
<textarea name="comments" rows=5 cols=25></textarea><br />
<input type="submit" value="Send">
<h6>Required fields are marked with a *</h6>
</cfform>
<cfelseif url.step EQ 2>
<cfmail
server="fish.iservetech.com"
from="#form.email#"
to="contact@pittsburgheck.com"
subject="PittsburghECK Email">
<!--- --->Contact from PittsburghECK.com:
<!--- --->First Name: #form.firstName#
<!--- --->Last Name: #form.lastName#
<!--- --->Email: #form.email#
<!--- --->Comments: #form.comments#
</cfmail>
<h1>Email</h1>
<h2>submitted</h2>
<div class="spacer">
<p class="post">
Thanks for the email! We will be contacting you shortly to verify your information.
</p>
</div>
</cfif>
</div>
    This topic has been closed for replies.

    1 reply

    Inspiring
    July 23, 2008
    DelinquentMe wrote:
    > problem im having is when the form is submitted id LIKE it to refresh the
    > cfimport without reloading the rest of the page
    >

    If you want a part of a page to refresh with out a complete reload on
    the client, then you are looking for a client side solution such as
    DHTML, AJAX, Flex, etc. The latest flavors of ColdFusion do offer some
    tags that can aid in creating some of these types of interfaces, so it
    could be worthwhile to explore them. Otherwise one can always roll
    one's own or user other frameworks that help with this type of development.