VBScript的下拉菜单中的功能,而无需使用HTML(传统的ASP) [英] vbscript dropdown in function without using HTML (classic ASP)
问题描述
我与形成文档的pre-现有的VBScript函数一个传统的ASP页面上工作。
有没有一种方法,使自己的VBScript中的一个下拉式选单,不依赖于HTML?
我有需要加载什么下拉列表中的XML对象,但我需要加载的实际下拉菜单。
幸运的是,它只是需要打印的表格上,没有保存到数据库中。
有没有太大的code后,除了它会在一个函数中去,如:
功能getDropdownA(BYVAL strInput)
把这里下拉列表,加载到它的strInput
结束
那么,相对于你的问题。
有没有一种方法,使自己的VBScript,这并不在一个下拉
依赖于HTML?
块引用>一个简单的答案是否即可。
好吧,为什么不呢?因为
经典-ASP
像几乎所有其他preprocessor语言的Web应用程序,不具备教师直接与您的浏览器进行交互。而不是语言为您提供了一套方法来写,并从用户代理收到数据(未necesarry浏览器)。和浏览器依赖于
HTML
,XHTML
,CSS
和衍生工具来构建一个接口给用户,并且由于事实,即preprocessor不直接与HTML
,其原因是因为你可以' ŧ使纯VBScript中绕过一个下拉HTML
code。我希望这个答案提供关于
的范围明确的说法经典-ASP
和相关技术I am working on a classic asp page with a pre-existing vbscript function that forms a document.
Is there a way to make a dropdown within vbscript itself that doesn't depend on HTML?
I have an xml object with what is needed to load the dropdown but I need to load the actual dropdown.
Luckily, it just needs to print on the form, there is no save to a database.
There isn't much code to post except that it would go in a function such as:
Function getDropdownA(ByVal strInput) ' put dropdown here, loading into it the strInput End
解决方案Well , relative to your question.
Is there a way to make a dropdown within vbscript itself that doesn't depend on HTML?
A short answer is no.
Ok, Why not? because
classic-asp
like almost every other preprocessor languages for web applications, doesn't have the faculty to interact directly with your browser. instead the language provides you a set of methods to write and recieve data from the user-agent (not necesarry a browser).and the browser relies on
HTML
,XHTML
,CSS
and derivatives to construct an interface to the user, and due to fact that preprocessor doesn't interact directly withHTML
, that its the reason because you can't make a dropdown in pure vbscript bypassingHTML
code.i hope this answer provides a clear view about the scope of
classic-asp
and the related technologies这篇关于VBScript的下拉菜单中的功能,而无需使用HTML(传统的ASP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!