欢迎来到天天文库
浏览记录
ID:22669559
大小:60.00 KB
页数:6页
时间:2018-10-30
《基于prototype的文本框自动填充功能的实现》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、基于Prototype的文本框自动填充功能的实现摘要:以医院管理系统医生开具药方模块中文本框自动填充功能的实现为例,详细介绍了如何利用Prototype框架和基于文本的数据交换格式JSON实现文本框的自动填充功能,介绍了Prototype框架中实现AJAX的异步通信时用到的关键技术,给出了具体实现过程及主要代码。实践证明,基于AJAX的异步请求原理实现的文本框的自动填充功能,不但方便了医护人员的使用,也大大提高了其工作效率,减少了病人的等待时间。 关键词:AJAX;Prototype;JSON;自动填充 :TP311文献标志码:A:1006-8228(2013)06-53-03 Imp
2、lementationofautomaticfillingoftextsbasedonPrototype ZhangYuye (Dept.ofputer,JinanVocationalCollege,Jinan,Shandong250014,China) Abstract:Takingthefunctionofautomaticfillingoftextinmoduleofprescriptioninthehospitalmanagementsystemasanexample,itisexplainedindetailhoeatJSONtorealizeautomaticfilling
3、oftexts.ThekeytechnologyusedtorealizetheasynchronousmunicationofAJAXinPrototypeframeaincodeareintroduced.ThepracticehasprovedthatthefunctionoftheautomaticfillingoftextsbasedonAJAXasynchronousrequestprincipleisnotonlyconvenientforhospitalprovestheeofpatients. Keyaticfilling 0引言 随着VC开发模式,这种分层开发的模式
4、有利于系统的重构和代码的重用,且层次清晰,易于分工合作开发和维护。开发时通常先从底层开始,逐层向上。 2.1开发工具和运行环境 系统开发工具采用MyEclipse8.6,JDK1.6,服务器采用MyEclipse8.6本身自带的MyEclipseTomcat,后台数据库采用Oracle10g。客户端可以采用IE浏览器或FireFox浏览器等。 2.2数据库设计 在数据库中建立一个用来存放中草药名的表medicine,表结构和表内容分别如表1和表2所示。 表1medicine的结构 [列名\含义\ID\草药简称\n摘要:以医院管理系统医生开具药方模块中文本框自动填充功能的实现为例,
5、详细介绍了如何利用Prototype框架和基于文本的数据交换格式JSON实现文本框的自动填充功能,介绍了Prototype框架中实现AJAX的异步通信时用到的关键技术,给出了具体实现过程及主要代码。实践证明,基于AJAX的异步请求原理实现的文本框的自动填充功能,不但方便了医护人员的使用,也大大提高了其工作效率,减少了病人的等待时间。 关键词:AJAX;Prototype;JSON;自动填充 :TP311文献标志码:A:1006-8228(2013)06-53-03 ImplementationofautomaticfillingoftextsbasedonPrototype Zhan
6、gYuye (Dept.ofputer,JinanVocationalCollege,Jinan,Shandong250014,China) Abstract:Takingthefunctionofautomaticfillingoftextinmoduleofprescriptioninthehospitalmanagementsystemasanexample,itisexplainedindetailhoeatJSONtorealizeautomaticfillingoftexts.Thekeytechnologyusedtorealizetheasynchronousmunica
7、tionofAJAXinPrototypeframeaincodeareintroduced.ThepracticehasprovedthatthefunctionoftheautomaticfillingoftextsbasedonAJAXasynchronousrequestprincipleisnotonlyconvenientforhospitalprovestheeofpatients. Keya
此文档下载收益归作者所有