Hi,
I'm in the process of converting an older version cf app to cf8. cfwindow is a
'star' tag for the new version. Form submission/process goes to the same page.
The previous form looks like this:
form
e1, e2,
function 1 (using input type="submit" name="myFunction1" value="Do A")
function 2 (using input type="submit" name="myFunction2" value="Do B")
function 3 (using input type="submit" name="myFunction3" value="Do C")
close form
But with cfwindow the above technique won't work, that is, even if a user
clicks on {myFuction2} button, only the first function would be recognized.
And in my experience, to send the request to the same script which uses
cfwindow one would do something like
cfform
function 1 (using input type="submit" name="myFunction1" value="Do A")
onclick="javascript:ColdFusion.Ajax.submitForm()"
close cfform
cfform
function 2 (using input type="submit" name="myFunction2" value="Do B")
onclick="javascript:ColdFusion.Ajax.submitForm()"
close cfform
....
But the above approach is clumsy because many shared elements would have to be
repeated for one thing. Is there a better way to do it?
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295353
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4