TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ridha Ammar
1.7k
47
675
How calling vb function from js in visual webgui app?
Oct 26 2020 3:24 AM
In my Gizmox Webgui application (vb code) I have: "Form1" containing an "HtmlBox1" control In the form I have the following function:
<PermissionSet(SecurityAction.Demand, Name:=
"FullTrust"
)> _
<System.Runtime.InteropServices.ComVisibleAttribute(
True
)> _
Public
Sub
VbHelloWorld()
MsgBox(
"Hello Ridha Ammar"
)
End
Sub
In order to call this function from "HtmlBox1.html" I added to the html code of the "HtmlBox1" control the following script:
function
showVbFunction (){
window.external.VbHelloWorld ();
}
and the following link:
<a href=
"#"
> Say Hello World From VB </a>
When debugging and clicking the link, I get the following error:
"window.external.VbHelloWorld is not a function"
The script cannot access the function.
Is there anyone who can help me?
Reply
Answers (
1
)
A problem with modifying the Android application
what is Content Email means?