使用onClick更改CF值

编程入门 行业动态 更新时间:2024-10-18 16:54:17
本文介绍了使用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值

本文发布于:2023-10-27 11:04:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1533185.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:onClick   CF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!