Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Vb Function mit JavaScript aufrufen?

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ist es möglich das untenstehende kleine Script genau andersherum auszuführen, das JavaScript eine Funktion von VB aufruft?

Ich scheitere nämlich gerade kläglich daran.

<script type="text/javascript">

function fuScript() {

alert('Huhuu!');

}

</script>

<form>

<input type="button" value="Knopf" onClick="fuScript()"/>

</form>[/PHP]

Vielen Dank im Voraus

LG

Blackbeary

Ich sehe da garkein VisualBasic.

Aber vielleicht meinst du sowas?


function fireEvent(element, event) {


	if(document.createEvent) {


		// dispatch for firefox + others

		var evt = document.createEvent("HTMLEvents");

		evt.initEvent(event, true, true);

		// event type,bubbling,cancelable

		return !element.dispatchEvent(evt);

	} else {

		// dispatch for old IE

		var evt = document.createEventObject();

		return element.fireEvent('on' + event, evt)

	}

}

Sie ist schon klar, dass VBScript nur mit dem IE funktioniert?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Beispiel</title>
<script type="text/VBScript">
<!--
Function funcVB()
testString = "vbFunktion"
jsFunc(testString)
End Function
-->
</script>

<script type="text/javascript">
<!--
IE = typeof(document.all)=='object';
function jsFunc(txt)
{
if(IE){
return txt;
}
}
if(IE){
alert(funcVB());
}
//-->
</script>
</head>
<body>
</body>
</html>
[/PHP]

Bearbeitet von uenetz

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.