更改文本颜色onclick,然后将其更改回来 - 将发布到DB [英] change text color onclick, and change it back - will post to DB
问题描述
我正在为一个程序创建一个新的GUI,它用于体检。
在历史记录中有很多不同的东西要问某人
浪费了太多的空间来制作所有东西的复选框,所以我有一个
的想法:
我可以简单地创建一个条件列表,当医生点击
他们,他们变成了红色?再次点击它们会使它们再次默认
?这样可以让考试变得更好,因为医生可以快速浏览一下数以百计的东西,看看这个人有多少钱。
>
我也希望活动发布1。或0或0。到DB所以条件可以保存到数据库中。
任何人都听说过这样的事情吗?
" apparker" < ad ********** @ gmail.comwrote in message
news:11 ******************** **@b75g2000hsg.googlegr oups.com ...
我正在为一个程序创建一个新的GUI,它用于体检。
在历史记录中有很多不同的东西要问某人
浪费了太多的空间来制作所有东西的复选框所以我有一个
的想法:
我可以简单地创建一个条件列表,当医生点击
时,它们会变红吗?再次点击它们会使它们再次默认
?这样可以让考试变得更好,因为医生可以快速浏览一下数百页的内容,看看这个人有多少钱。
你很幸运。最近有人举了一个漂亮的例子。
http://groups.google.com/group/comp....9b47d50fc007b1
< blockquote class =post_quotes>
我也希望发布1的事件。或0或0。到DB所以条件可以保存到数据库中。
有没有人听说过这样的事情?
当然,请将所有复选框(和表单)提交到服务器端脚本。当然,如果检查了
,则提交1,如果没有,则提交0.
-Lost
3月28日晚上8点37分, - 失去 < missed-s ... @ comcast.netwrote:
" apparker" < adamparke ... @ gmail.com写信息
新闻:11 ********************** @ b75g2000hsg.googlegr oups.com ...
我正在为一个程序创建一个新的GUI,它用于体检。
在历史记录中有很多不同的东西要问某人
浪费了太多的空间来制作所有东西的复选框所以我有一个
的想法:
我可以简单地创建条件列表,当医生点击
时,它们会变红吗?再次点击它们会使它们再次默认
?这样可以让考试变得更好,因为医生可以快速浏览一下数百页的内容,看看这个人有多少钱。
你很幸运。最近有人举了一个漂亮的例子。
http://groups.google.com/group/comp....wse_thread/thr ...
我'也喜欢发布1的事件。或0或0。到DB所以条件可以将
保存到DB中。
有没有人听说过这样的话?
当然,请将所有复选框(和表单)提交到服务器端脚本。当然,如果检查了
,则提交1,如果没有,则提交0.
-Lost
哇,这是很棒的东西......看起来代码是围绕
复选框构建的,但是可以针对无线电进行更改?是否有可能没有
有复选框?
" apparker" < ad ********** @ gmail.comwrote in message
news:11 ******************** **@o5g2000hsb.googlegro ups.com ...
3月28日晚上8:37,-Lost < missed-s ... @ comcast.netwrote:
>" apparker" < adamparke ... @ gmail.com写信息
新闻:11 ********************** @ b75g2000hsg.googleg roups .com ...
我正在为一个程序创建一个新的GUI,它用于体检。
有在历史记录中要求某人这么多不同的东西它会浪费太多的空间来制作所有东西的复选框所以我有一个
的想法:
我可以简单地创建一个条件列表,当医生点击
时,它们会变红吗?再次点击它们会使它们再次默认
?这样可以让考试变得更好,因为医生可以快速浏览一下数百页的内容,看看这个人有多少钱。
你很幸运。最近有人举了一个漂亮的例子。
http://groups.google.com/group/comp....wse_thread/thr ...
我'也喜欢发布1的事件。或0或0。到DB所以条件可以将
保存到DB中。
有没有人听说过这样的话?
当然,请将所有复选框(和表单)提交到服务器端脚本。当然,如果选中
,则提交1,如果没有,则返回0.
>
哇,这是很棒的东西......看起来代码是围绕
复选框构建的,但可以为无线电更改?
我不明白为什么不。
是否有可能不会
有复选框吗?
视觉上?当然,通过CSS隐藏它们(显示:无;将破坏布局;可见性:
隐藏;将保留它)。
你不想得到完全摆脱复选框或无线电输入。您可以使用
来编写一个用于捕获1和0的方案,并最终将其发送到服务器。
保持表格完好无损保证能力提交表格内容。
-Lost
I''m creating a new GUI for a program and it is for a medical exam.
There are so many different things to ask someone during a history it
wastes too much space to make checkboxes for everything so I had an
idea:
Can I simply create a list of conditions and when the doctor clicks
them, they turn red? And clicking them again would make them default
again? This would really make the exam better since the doctor could
quickly glance at a page of hundreds of things and see what the person
has.
I''d also like the event to post "1" or "0" to DB so the conditions can
be saved into the DB.
Anyone ever heard of something like this?
"apparker" <ad**********@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...I''m creating a new GUI for a program and it is for a medical exam.
There are so many different things to ask someone during a history it
wastes too much space to make checkboxes for everything so I had an
idea:
Can I simply create a list of conditions and when the doctor clicks
them, they turn red? And clicking them again would make them default
again? This would really make the exam better since the doctor could
quickly glance at a page of hundreds of things and see what the person
has.You are in luck. Very recently someone threw together a nifty example.
http://groups.google.com/group/comp....9b47d50fc007b1
I''d also like the event to post "1" or "0" to DB so the conditions can
be saved into the DB.
Anyone ever heard of something like this?Sure, submit all your checkboxes (and the form) to your server-side script. Of course, if
checked, submit 1, if not, 0.
-Lost
On Mar 28, 8:37 pm, "-Lost" <missed-s...@comcast.netwrote:"apparker" <adamparke...@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
I''m creating a new GUI for a program and it is for a medical exam.
There are so many different things to ask someone during a history it
wastes too much space to make checkboxes for everything so I had an
idea:
Can I simply create a list of conditions and when the doctor clicks
them, they turn red? And clicking them again would make them default
again? This would really make the exam better since the doctor could
quickly glance at a page of hundreds of things and see what the person
has.
You are in luck. Very recently someone threw together a nifty example.
http://groups.google.com/group/comp....wse_thread/thr...
I''d also like the event to post "1" or "0" to DB so the conditions can
be saved into the DB.
Anyone ever heard of something like this?
Sure, submit all your checkboxes (and the form) to your server-side script. Of course, if
checked, submit 1, if not, 0.
-LostWow that''s great stuff... looks like the code is built around the
checkbox but could be altered for radios? Would it be possible to not
have the checkbox at all?
"apparker" <ad**********@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...On Mar 28, 8:37 pm, "-Lost" <missed-s...@comcast.netwrote:>"apparker" <adamparke...@gmail.comwrote in message
news:11**********************@b75g2000hsg.googleg roups.com...
I''m creating a new GUI for a program and it is for a medical exam.
There are so many different things to ask someone during a history it
wastes too much space to make checkboxes for everything so I had an
idea:
Can I simply create a list of conditions and when the doctor clicks
them, they turn red? And clicking them again would make them default
again? This would really make the exam better since the doctor could
quickly glance at a page of hundreds of things and see what the person
has.
You are in luck. Very recently someone threw together a nifty example.
http://groups.google.com/group/comp....wse_thread/thr...
I''d also like the event to post "1" or "0" to DB so the conditions can
be saved into the DB.
Anyone ever heard of something like this?
Sure, submit all your checkboxes (and the form) to your server-side script. Of course,
if
checked, submit 1, if not, 0.
>
Wow that''s great stuff... looks like the code is built around the
checkbox but could be altered for radios?I do not see why not.
Would it be possible to not
have the checkbox at all?Visually? Sure, hide them via CSS (display: none; will destroy layout; visibility:
hidden; will preserve it).
You do not want to get rid of the checkboxes or radio inputs altogether. You would have
to code a scheme by which to trap 1 and 0s, and eventually send it to the server.
Keeping the form intact insures the ability to submit form contents.
-Lost
这篇关于更改文本颜色onclick,然后将其更改回来 - 将发布到DB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!