Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Uncle... .Javascript & Vbscript in HTA

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,59115
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Uncle... .Javascript & Vbscript in HTA
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Uncle... .Javascript & Vbscript in HTA - 4/14/2008 1:41:59 PM   
  yfki

 

Posts: 75
Score: 0
Joined: 12/12/2007
Status: offline
So I have come to realize that no matter what I do, inside an HTA, if I want to use an external .js then none of the VBscript functions work.
I was able to call the VB Function from within a Javascript Function, but I cant do that type of redundant calling of functions, its just not practical, way to many calls.

The reason for the external .js is a Tooltip type layer that will dispaly some text (output of AIX/Unix plink scrtips).

Suggestions, workarounds?

< Message edited by yfki -- 4/14/2008 1:43:36 PM >
 
 
Post #: 1
 
 RE: Uncle... .Javascript & Vbscript in HTA - 4/14/2008 1:53:48 PM   
  TomRiddle


Posts: 178
Score: 4
Joined: 2/7/2008
Status: offline
Here is an extract from Microsoft's Helpomatic program.

HTML Code
<input id=runbutton  class="button" type="button" value="Run Button" name="run_button"  onClick="RunScript" title="Click here to change the tooltip.">

Subroutine Code
'Changes the tooltip for the button named run_button
Sub RunScript
   Run_Button.Title = "You successfully changed the tooltip."
End Sub

Blurb
Tooltips are little bits of explanatory information that appear whenever you hold the mouse above a control. Tooltips can be configured for most HTML elements simply by setting the Title property.

In the example shown here, hold the mouse over the Run Button to see the current tooltip. Then, click the Run Button, and hold the mouse over it again; you should see that the tooltip has changed to the Title specified in the script code.



(in reply to yfki)
 
 
Post #: 2
 
 RE: Uncle... .Javascript & Vbscript in HTA - 4/14/2008 1:58:59 PM   
  yfki

 

Posts: 75
Score: 0
Joined: 12/12/2007
Status: offline
Yes I am aware of that tooltip. I should have been more specific though.

I am trying to use this inside HTA, with a bunch of VBScript as well.
http://www.twinhelix.com/dhtml/supernote/demo/

(in reply to TomRiddle)
 
 
Post #: 3
 
 RE: Uncle... .Javascript & Vbscript in HTA - 4/14/2008 4:32:06 PM   
  TNO


Posts: 1075
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Post the code you have so far. There may be an issue with how its mashing up or perhaps mimetypes. Generally speaking, unless the two languages are trying to directly pass information between them there shouldn't be an issue.

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to yfki)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Uncle... .Javascript & Vbscript in HTA Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts