Reply
Ok here is a tough question for you.
Old 04-09-2005, 11:47 AM Ok here is a tough question for you.
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
Ok here is a tough question for you.

"How do you turn off debugging, within an IFRAME, in an HTA application?"

It seems the Internet Options for HTA files are different than the options for HTML files.

Case study (save this to an HTA application, NOT an html file):

<BODY>
<iframe src="http://www.uticaod.com"></iframe>
</BODY>

The page at uticaod has an error. I could have picked any page that has an error, that one is just an example. Pick any website that has a javascript error on it.

Since this HTA application loads the other page, and this other page has an error on it (not my page), my script stops running and explorer asks me if I want to continue. If I save this as an HTML file, then I can turn this off from the options at Intenet Options / Advanced / Display a notification about every script error.

I go to explorer and select Internet Options / turn off Display a notification about every script error, but this seems to ONLY affect HTML files, not HTA files.

So in my HTA application, I am unable to turn off that stupid alert box when I get a script error that is on someone elses page.

1) How can I access the advanced features menu for an HTA application (rather than HTML options)?
2) How can I get rid of the alert box if I can't get to the advanced features menu?

Did I explain the problem clearly enough? Any suggestions?

john@mccarthy.net

Last edited by camperjohn : 04-09-2005 at 03:16 PM.
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
When You Register, These Ads Go Away!
Old 04-10-2005, 04:21 AM
pitbull82's Avatar
Super Talker

Posts: 147
Name: Marcin Nabiałek
Location: Poland, Częstochowa
Well, I've just read sth to get know what HTAs are and what I think at the moment - that's impossible.
First of all, you should know what for you're writing an application and in addition you won't be doing it for sites that you don't know. For me it's quite obvious that it won't work. But if you want it, you can always ask webmaster of the site to remove error from his page

Another thing is that you can add trusted=yes for the iframe or frame tag but in this case that won't help much.

READ THIS:

"Frames and Security

Since HTAs run as fully trusted applications, certain security precautions are necessary when HTAs use Web content that is not equally trusted. While the HTA is free of all security restrictions, it is important to maintain the usual Web-security constraints for untrusted content within the HTA (as determined by the zone settings for the particular Web page). Thus, for security purposes, a frame containing HTML within an HTA is treated exactly as it is within the browser.

On the other hand, in some cases a frame might actually be a functional part of the HTA—in which case it needs to be able to interact and do all the same things that the HTA itself can do. For instance, if you wrote a wizard HTA, it might be convenient to have an outer framework, with title and forward/back buttons, and an inner frame that defined the content for individual panes of the wizard. These frames would need to work as part of the HTA, and, of course, only appropriate and trustworthy content would be put into the frame—certainly not content from any URL whatsoever.

The HTA container page defines which frames are, and are not, trusted by use of a special attribute on the <FRAME> or <IFRAME> tag that is unique to HTAs. By specifying TRUSTED=YES, the HTA infers all of its privileges upon the content it navigates into the frame. Absent this attribute or with TRUSTED=NO, the frame content is handled just like HTML in the browser. Since only HTAs can declare a TRUSTED attribute (which is ignored for HTML within the browser), it is impossible for untrusted content to assert trust it"

That was the quote from: http://msdn.microsoft.com/library/de...tml/Ie5hta.asp

Hope all that information was useful for you. It took me some time to find it in internet
__________________
Seo Link Directory | Kurs C++ | Forum C++
pitbull82 is offline
Reply With Quote
View Public Profile Visit pitbull82's homepage!
 
Old 04-11-2005, 01:21 AM
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
But the problem isn't if it is trusted or not, the problem is the javascript is bad, and I want to turn off the option to give an alert box.

I also found that I have a problem with sites that have expired security certificates. I get a pop-up that asks if I want to continue. The options for Internet Explorer HTML filers allow me to continue even if the security certificate is out of date, but since I can't find where the options are for HTA is, I get the annoying messagebox.

The reason I need this, is that I have an HTA that crawls the internet and takes pictures of websites. When it comes to a website that it broken, it breaks the crawler.
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
Old 04-11-2005, 01:29 AM
pitbull82's Avatar
Super Talker

Posts: 147
Name: Marcin Nabiałek
Location: Poland, Częstochowa
Well, maybe simple HTA applications are not for such actions? Maybe you should use sth else because from that what I've read I understand that HTA shouldn't be used for such purposes...
__________________
Seo Link Directory | Kurs C++ | Forum C++
pitbull82 is offline
Reply With Quote
View Public Profile Visit pitbull82's homepage!
 
Old 04-11-2005, 11:29 PM
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
What is sth ?
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
Old 04-12-2005, 10:49 AM
pitbull82's Avatar
Super Talker

Posts: 147
Name: Marcin Nabiałek
Location: Poland, Częstochowa
I have no idea because I've never done something like that. But reading that all, you simply have chosen bad technology because in many sites there're javascript errors and hta wasn't intended to handle such buggy sites...
__________________
Seo Link Directory | Kurs C++ | Forum C++
pitbull82 is offline
Reply With Quote
View Public Profile Visit pitbull82's homepage!
 
Old 04-12-2005, 12:00 PM
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
OMG, so what you're saying is that the entire time you've been talking out your a$$..?!?!....
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
Reply     « Reply to Ok here is a tough question for you.
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14702 seconds with 12 queries