使用onClick更改CF值 [英] Use onClick to change CF values

查看:83
本文介绍了使用onClick更改CF值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我创建了几个查询,根据一组略有不同的变量生成相同的数据:

Hi,

I have created several queries which produce the same data based on a slightly difference set of variables:

展开 | 选择 | Wrap | 行号

推荐答案

这可能是一个JavaScript问题,但您可以使用< cfif>来使用相同的查询。决定使用哪个额定功率。


你想一次只显示一个数字集,还是全部都要显示?此外,更改是否必须立即发生,还是页面卸载/重新加载不是问题?
This would be more of a JavaScript question, but you could use the same query using <cfif> to decide which power rating to use.

Do you want only one number set to be displayed at a time, or would the whole lot do? Also, does the change have to happen instantly or is a page unload/reload not a problem?


hi Acoder,


我将如何实现这个?我只希望它一次显示一个数字变化,但显然想让用户选择更改它(无论是点击数字还是从下拉列表框中选择标准)。


我需要立即更新。
hi Acoder,

how would I achieve this? i only want it to display one number change at a time, but obviously want to give the user the choice of changing it (whether clicking on the number or selecting the criteria from a drop down list box).

I need instantaneous update really.


您至少有两个选择:

1.加载所有数据进入JavaScript数据结构,例如用于更新表的数组。使用Coldfusion生成JavaScript代码。

2.使用Ajax。向Coldfusion页面发出一个Http请求,该页面获取传递参数的正确数据。


哪一个你会更舒服?


注意:Coldfusion 8有一些Ajax标签,但我个人还没有真正研究过它们,因为我对JavaScript / Ajax很满意。
You have at least two choices:
1. Load all the data into JavaScript data structures, e.g. arrays to use to update the table. Use Coldfusion to generate the JavaScript code.
2. Use Ajax. Make a Http request to a Coldfusion page which gets the correct data for the passed parameter.

Which one would you be more comfortable with?

Note: Coldfusion 8 has a few Ajax tags, but I personally haven''t really looked into them, because I''m quite comfortable with JavaScript/Ajax.


这篇关于使用onClick更改CF值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆