本文是小编为大家收集整理的关于VBScript到Javascript的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。
问题描述
下面是我在 excel 中能够做的简短版本.我所做的是收集某些字段并将其存储到变量中.将打开一个网页并输入字段.在这种情况下,它主要是输入的地址搜索.它将单击搜索,然后再次单击以在此页面上显示 GIS 地图.
If CellAssessor = "pinalassessor" 然后SiteLink = "http://pinalcountyaz.gov/Departments/Assessor/Pages/ParcelInfoSearch.aspx"TextboxNumberID = "ctl00$m$g_f1ed9e0e_852a_4270_8b23_90651396ae13$ctl00$ctl02$txt_Number"TextboxDirectionID = "ctl00$m$g_f1ed9e0e_852a_4270_8b23_90651396ae13$ctl00$ctl02$ddl_Direction"TextboxNameID = "ctl00$m$g_f1ed9e0e_852a_4270_8b23_90651396ae13$ctl00$ctl02$txt_Name"TextboxSuffixID = "ctl00$m$g_f1ed9e0e_852a_4270_8b23_90651396ae13$ctl00$ctl02$ddl_Suffix"ie.navigate SiteLinkie.Visible = TrueApplication.Wait Now + TimeValue("00:00:2")While ie.Busy做事件温德ie.Document.all(TextboxNumberID).Value = Item1ie.Document.all(TextboxDirectionID).Value = Item2ie.Document.all(TextboxNameID).Value = Item3ie.Document.all(TextboxSuffixID).Value = Item4结束 如果
在 excel 中执行此操作是小菜一碟.一旦我想通了很多.现在的问题是,我想将此功能切换到 CRM 2011 Microsoft Dynamics.其中使用 JScripts.在 Javascript 中,我打开了我想要的 URL 窗口.使用:
window.open("http://pinalcountyaz.gov/Departments/Assessor/Pages/ParcelInfoSearch.aspx");
但是我没有发现任何关于将地址输入字段的内容.
javascript是否支持在网页上查找对象的ID,并能够设置值,然后在搜索上进行webclick.在 far 功能中,我还希望能够知道如何在显示结果的页面上收集值.
如果有人可以帮忙.这将不胜感激.如果有帮助,我可以提供整个 excel vbscript.但我基本上是将我在 Vb 中所做的转换为 Javascript.我得到了大部分转换,但这是最后一部分.提前谢谢.
推荐答案
m
g_f1ed9e0e_852a_4270_8b23_90651396ae13
ctl00
问题描述
SO below is the short version of what I was able to do in excel. What I did was had certain fields be collected and stored into variables. A webpage would open up and enter the fields. In this case it was mostly address search it was entering. It would click the search, and then click again to bring up the GIS map on this page.
If CellAssessor = "pinalassessor" Then
SiteLink = "http://pinalcountyaz.gov/Departments/Assessor/Pages/ParcelInfoSearch.aspx"
TextboxNumberID = "ctl00$m$g_f1ed9e0e_852a_4270_8b23_90651396ae13$ctl00$ctl02$txt_Number"
TextboxDirectionID = "ctl00$m$g_f1ed9e0e_852a_4270_8b23_90651396ae13$ctl00$ctl02$ddl_Direction"
TextboxNameID = "ctl00$m$g_f1ed9e0e_852a_4270_8b23_90651396ae13$ctl00$ctl02$txt_Name"
TextboxSuffixID = "ctl00$m$g_f1ed9e0e_852a_4270_8b23_90651396ae13$ctl00$ctl02$ddl_Suffix"
ie.navigate SiteLink
ie.Visible = True
Application.Wait Now + TimeValue("00:00:2")
While ie.Busy
DoEvents
Wend
ie.Document.all(TextboxNumberID).Value = Item1
ie.Document.all(TextboxDirectionID).Value = Item2
ie.Document.all(TextboxNameID).Value = Item3
ie.Document.all(TextboxSuffixID).Value = Item4
End If
Doing this in excel was a piece of cake. Once I figured alot of this out. Problem is now, I want to switch this feature into CRM 2011 Microsoft Dynamics. Which uses JScripts. In the Javascript I got as far as opening up the window of the URL I want. Using:
window.open("http://pinalcountyaz.gov/Departments/Assessor/Pages/ParcelInfoSearch.aspx");
But I haven''t found anything on getting address entry into the fields.
Does javascript support finding the ID of objects on the webpage, and being able to set the value, and then doing a webclick on the search. In the far feature I would also like to be able to know how to collect values on the page that shows the results.
If anybody could help. It would be greatly appreciated. I can give the entire excel vbscript if it helps. But I''m basically converting what I did in Vb to Javascript. I got most of it converted, but this was the last part. Thx in advance.
推荐答案
m
g_f1ed9e0e_852a_4270_8b23_90651396ae13
ctl00
相关标签/搜索
linux history 多于1000
transition 在刷新后不惜那是
IBMMQ 话题命令 TOPICSTR
python将datetime转换为string格式
live preview怎么打开开发者工具
springboot 先判断是否有权限再静态资源映射
在css中怎么左右布局
vs code 中git界面 汉化
h5打包成adroid
消息循环 winform
oracle 使用游标删除数据
C# 运行mysql的建库脚本
javascript
arrays
vbscript
asp-classic
jscript
asp-net
VBScript
Javascript
Internet
HTML