1
votes

I'm currently building an HTA application that perfoms most functions through VBScript.

I have the need to include some JQuery that will allow customised tooltips. When I try to add <script language="javascript" src="jquery.simpletip-1.3.1.js" type="text/javascript">
</script>
to my application underneath the VBScript, I'm unable to run the HTA. I recieve a "Microsoft JScript Runtime Error" with error "'jQuery' is undefined".

I've not even begun to add any references to the tooltips in the HTML - I can't even get past this stage.

This technet page talks about using the <meta http-equiv="X-UA-Compatible" content="IE=9"/> tag, however that didn't appear to make any difference.

Am I doing something obviously wrong / not possible? I was under the impression different language types were supported under HTA's, as I have JavaScript included already to resize my HTA window.

1
does the jQuery file exist in the same folder as the HTA? - WhiteHat
That looks like an addin that requires jQuery proper to also be included - Alex K.
You may need to use the meta/edge tag to bump up the compatibility mode as well - Alex K.
@WhiteHat The jQuery does exist in the same folder as the HTA. - Sam H
You need to include jQuery.js itself before the plugin jquery.com/download - Alex K.

1 Answers

0
votes

As Alek K. mentioned, the plugin I was using had dependencies based on the base jQuery.js