|
|
Registered tutorials: 501 Registered Users: 38633
|
|
Rating: 3.5 out of 2 votes cast
Category: Ajax and ColdFusion
|
Reminder about forms and ColdFusion 8 Ajax Containers
Abstract: This article shows how to be able to reload inside one tab without reloading the entire page when the simple form tag is used.
While this is covered in the docs, it can be a bit surprising. When working with ColdFusion 8 Ajax-based containers (cfdiv, cflayoutarea, cfpod, and cfwindow), any form inside the area will be posted to the area itself. What that means is - the entire page won't reload, just the container. However - this is only true for cfform, not form. Consider this code example:
<cfoutput>loaded #timeFormat(now(), "long")#</cfoutput>
<p>
<hr>
<p>
<cflayout type="tab">
<cflayoutarea title="Tab 1">
<form>
<input type="text" name="name">
<input type="submit" name="submit">
</form>
<cfdump var="#form#">
</cflayoutarea>
<cflayoutarea title="Tab 2">
<cfform>
<cfinput type="text" name="name">
<cfinput type="submit" name="submit">
</cfform>
<cfdump var="#form#">
</cflayoutarea>
|
Reviews:
Rate and Review This Site
No reviews yet
Statistic Information About this Resource:
| Total Hits: |
655 |
| Unique Hits: |
571 |
| |
Daily |
Weekly |
Monthly |
| |
Unique |
Total |
Unique |
Total |
Unique |
Total |
| Average |
0.4 |
0.4 |
5 |
5.7 |
28.8 |
33.2 |
| Current |
2 |
2 |
3 |
3 |
3 |
3 |
| Previous |
0 |
0 |
4 |
4 |
32 |
38 |
| Mar 4 |
0 |
0 |
7 |
7 |
34 |
36 |
| Mar 3 |
1 |
1 |
13 |
13 |
27 |
33 |
| Mar 2 |
0 |
0 |
8 |
14 |
38 |
45 |
| Mar 1 |
0 |
0 |
0 |
0 |
33 |
37 |
| Feb 28 |
0 |
0 |
7 |
8 |
39 |
51 |
| Feb 27 |
0 |
0 |
0 |
0 |
33 |
35 |
| Feb 26 |
1 |
1 |
8 |
8 |
25 |
27 |
| Feb 25 |
0 |
0 |
0 |
0 |
24 |
27 |
| Highest |
6 |
8 |
17 |
19 |
41 |
51 |
|
|
|
Script Execution Time: 0.09618 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2
|