由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - javascript question: possible to know when option items are added to a
相关主题
[转载] 问一个javascript 和 .NET 的问题请各位老大分享一下exception的使用经验吧。
A question about JavaScript (转载)Client-side application development-HELP
please help me...想破脑壳也不知道为什么finally不执行
[转载] Javascript: pull-down list to pop-up winmouse over
"Adding reference to System.Web.dll" problemHow to make Internet Explorer Toolbar?
How to get button name? (转载)embedded ASP tags?
how to make javascript/jquery in asp.net running fast? Thank you!dynamic image from database
What's the simplest way to do a Linq join query ?Event tracking
相关话题的讨论汇总
话题: select话题: option话题: javascript话题: added话题: possible
进入DotNet版参与讨论
1 (共1页)
c****o
发帖数: 265
1
i need to get the number of
S***k
发帖数: 370
2
I guess the simplest way is count the number of options using javascript
when the number needs to be shown.
A tracing variable may be helpful too. It might depend on how the buttons
add/remove options. If the option is added/removed by javascript, a counter
may be declared to trace the change. If the option is added/removed in code-
behind, a hidden field may be used to keep tracing.
c****o
发帖数: 265
3
thanks for your answer.
这些东西部分基本上是纯javascript的
只是他们要求用更新count显示当option数量变化
改变option数量的button和link很多处
而且这种select也不少,以后可能还要用
哎 那我现在基本确定没有什么其他办法拉
想到的只能重新做一个类出来封装显示的span和select
结果已有的很多code要改
只能说改完后以后用有些好处
烦死!cry!为什么就没有那么一个事件呢!

counter
code-

【在 S***k 的大作中提到】
: I guess the simplest way is count the number of options using javascript
: when the number needs to be shown.
: A tracing variable may be helpful too. It might depend on how the buttons
: add/remove options. If the option is added/removed by javascript, a counter
: may be declared to trace the change. If the option is added/removed in code-
: behind, a hidden field may be used to keep tracing.

r****y
发帖数: 26819
4
没懂
那些用来add/remove的button的onclick里不能call一个function做这件事吗?

buttons
<

【在 c****o 的大作中提到】
: i need to get the number of
c****o
发帖数: 265
5
可以
就是我懒的一个个的改,另外以后还有同样的麻烦

【在 r****y 的大作中提到】
: 没懂
: 那些用来add/remove的button的onclick里不能call一个function做这件事吗?
:
: buttons
: <

1 (共1页)
进入DotNet版参与讨论
相关主题
Event tracking"Adding reference to System.Web.dll" problem
.Net Thread questionHow to get button name? (转载)
dynamic change before refreshinghow to make javascript/jquery in asp.net running fast? Thank you!
.exe.config 是只读的吗?What's the simplest way to do a Linq join query ?
[转载] 问一个javascript 和 .NET 的问题请各位老大分享一下exception的使用经验吧。
A question about JavaScript (转载)Client-side application development-HELP
please help me...想破脑壳也不知道为什么finally不执行
[转载] Javascript: pull-down list to pop-up winmouse over
相关话题的讨论汇总
话题: select话题: option话题: javascript话题: added话题: possible