J
jasonking
Unregistered / Unconfirmed
GUEST, unregistred user!
今天看到一个软件Crm软件,菜单界面用html来实现,估计可能是用了TWebBrowser.我想问一下,在WebBrowser中打开一个网页后,又如何点击这个连接弹出应用程序的一个from或者打开一个应用程序?
谢谢!
另外附加一段pb的代码,来实现同样的功能:
string ls_tagname,ls_name,ls_a
ls_tagName=ole_1.object.document.activeElement.tagName
if upper(trim(left(ls_tagName,1)))="A" then //同理可以对INPUT等响应
//ls_name = ole_1.object.document.activeElement.id
ls_a=ole_1.object.Document.activeElement.href
//然后在这里根据链接的id或者href choosecase
ls_name=right(ls_a,5)
if left(ls_name,1)='#' then
CHOOSE CASE right(ls_name ,4)
CASE "1234"
//do something
open(w_test)
END CHOOSE
end if
end if
谢谢!
另外附加一段pb的代码,来实现同样的功能:
string ls_tagname,ls_name,ls_a
ls_tagName=ole_1.object.document.activeElement.tagName
if upper(trim(left(ls_tagName,1)))="A" then //同理可以对INPUT等响应
//ls_name = ole_1.object.document.activeElement.id
ls_a=ole_1.object.Document.activeElement.href
//然后在这里根据链接的id或者href choosecase
ls_name=right(ls_a,5)
if left(ls_name,1)='#' then
CHOOSE CASE right(ls_name ,4)
CASE "1234"
//do something
open(w_test)
END CHOOSE
end if
end if