.NET Framework - External function file linked to HTA and frames.

Asked By CharlesEF
09-Jan-10 12:54 AM
Hi All

I have an HTA containing framesets and frames consisting of 1 top, 1
left and 1 right frame.  I have a  statement to load an external
js file in the HTA and each frame web page.  In this external file I
have defined some variables that I want to be global to all frames/web
pages.

After the HTA is loaded I can execute a function from the external
file just by using the function name.  This works like it should.  I
have some ADO constants defined in the external file also.  The ADO
code and queries are in a different frame/web page but it does not
complain about the constants missing a value.  In other words, it
works as it should. (as far as I understand)

Now for the problem, if I want to use or set a variable value that was
defined as global in the external file I am forced to use
top.variableName instead of just variableName.

Can anyone shed any light on this or point me to a link that can help
me understand?


Thanks for any help,

Charles
Framesets
(1)
Constants
(1)
HTA
(1)
  CharlesEF replied to CharlesEF
09-Jan-10 10:23 PM
Hi All,

Since no one has responded yet maybe I did not explain my problem well
enough.  If anyone has any questions please post them and I will do my
best to answer them.


Thanks,

Charles
Create New Account
help
Script oder HTA Script? und HTA Schliessen .NET Framework Hallo NG, ich habe da zwei Probleme die ich nicht geloest bekomme 1. Wie kann ich innerhalb eines Scriptes feststellen ob das script in einer *.hta und mit Hilfe der mshta.exe oder als reines script auf einer Webseite ausgefuehrt wird 2. Wie kann ich aus einem HTA-Frameset heraus eben dieses HTA-Script beenden? So funkt es leider nicht so :-( - --snip- -- simple.hta applicationname = "testapp"> Sub vExitHTA self.close() End Sub function jExitHTA() { self.close() / / top.close(); / / parent onclick = "jExitHTA"> <p> - --snap- -- Weiss hier jemand wie ich richtig auf das frameset, bzw. das hta-Fenster zugreife und schliesse? Ich komme auch mit googlen nicht mehr weiter. . . Thomas Scripting WSH scriptbox.at.tt / http: / / scriptbox.boris-toll.at / - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Moin, Thomas Steinbach schrieb: indem du im HTA über "APPLICATION ID" einen Objektnamen definierst und prüfst, ob das Objekt existiert. [HTA:APPLICATION Object
Discussions Menuservice.GetByParentCategoryIDCompanyidStatus (1) MySite.Entities.ProductCategory (1) MySite.Entities.TList (1) MySite.ProductCategoryService (1) Constants.Status.Active (1) Constants.CompanyID (1) NewMySite.ProductCategoryService (1) MenuItem (1) Hello all, I have menu control that works ProductCategoryService menuservice = newMySite.ProductCategoryService(); MySite.Entities.TList<MySite.Entities.ProductCategory> category; category = menuservice.GetByParentCategoryIDCompanyidStatus(0, Constants.CompanyID, (int)Constants.Status.Active); category.Sort("CategoryDescription ASC"); category = menuservice.GetByParentCategoryIDCompanyidStatus(0, Constants.CompanyID, (int)Constants.Status.Active); foreach (MySite.Entities.ProductCategory cat1 in category) { MenuItem mnuMain = new MenuItem(); mnuMain.Text Value = cat1.Id.ToString(); MySite.Entities.TList<MySite.Entities.ProductCategory> categorylevel2 = menuservice.GetByParentCategoryIDCompanyidStatus(cat1.Id, Constants.CompanyID, (int)Constants.Status.Active); categorylevel2.Sort("CategoryDescription ASC"); foreach (MySite.Entities.ProductCategory cat2 in categorylevel2) { MenuItem mnuCat2
Using telnet from HTA .NET Framework I found a discussion about tescript but is this my only option? I want to perform POP3 via HTA and telnet would be perfect. Any help appreciated. - - Roland Hall WSH Discussions HTA (1) RolandMichael (1) MSFTNGP (1) SYHHA (1) POP (1) TK (1) Michael (1) Telnet (1 google. Also see the M. Harris annotations to all but the most extreme finesses of hta and command line and com objects. I have read numerous posts by Michael re:HTAs Roland Michael is a vbscript guy and Alex has not posted for long. Not here. hta = document object model under ms hta = wsh hta = for any 'other' activex component / docoment aka ole (object linking and embedding) used anywhere and out. If you started with Michael and Alex, you won't. keywords: Using, telnet, from, HTA description: I found a discussion about tescript but is this my only option I want