Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • Last Modified:

Dynamic changing the security of a frame in HTA

I've made a html application with a number of functions. It will run on a local pc in a corporate network.
One function is to expand the hta window to get information from not-local locations in an Iframe.

I've got two external sources. In the parent hta window one button opens the page from location#1, another buttons opens from location #2
The problem now is that for location#1 the iframe should have:  application="yes", but then the page from the other location doesn't work  as expected.

So what i'm looking for is some code to set or reset the security setting of this iframe when a button is clicked.

The only reference I found on this subject is:  http://cwashington.netreach.net/depo/view.asp?Index=625
but I can't simplify this code to make it work.

Any help please? Thanks!
0
Wirwar
Asked:
Wirwar
  • 2
  • 2
1 Solution
 
Michel PlungjanIT ExpertCommented:
Erm. Imagine if you could.
Bad security. Virus behaviour

Anyway, WHY does the other location not work as expected. I have never had any such issues
0
 
WirwarAuthor Commented:
Hi mplungian.. that's what I thought in the first place, until the above posted link to the security manager came up..

I'll explain a bit more about the situation:

The hta toolbar I developed supports development and testing activities for a webshop.

One function is to create different sql scripts from a product number. To execute the script we  can use a webpage in the sitemanager. This sitemanager is a framed 'website' of its own.

I can open this particular sql form 'stand alone' in the Iframe of the (expanded) toolbar. So we don't have to browse through the sitemanager site. For quick look-ups this is a plus.

However, there is a sitemanager login-screen before this sql-page, with a frame-checker.
The problem is: after this check page refreshes to the top of my toolbar.

When I have the iframe in my toolbar *without* application=yes, this iframe-check does not refresh to the top and after login, the sql page appears in the frame and can be used.
Why this works as described.. I don't know :)

Another function is a documentation tool.
I've got a number of htm files in folders on another server. With a script I read the folders filenames and it generates an index. In the Iframe of the expanded toolbar a menu appears where these filenames of the selected folder are listed and onClick the document can be read.
This is pretty cool, but it works only if the I frame has application = "yes"

And this I why I like to have some kind of frame management.

Security is not an issue in this situation, but I understand that generally spoken this is not really a wanted solution
So it's a no-go? But what about the 'solution' mentioned in the link?

(In my case I can make a 'work-around': I'll add another iframe and show/hide the not-used frame.)
0
 
Michel PlungjanIT ExpertCommented:
I cannot tell you. I do not see the security manage do what you need it to do.
Showing and hiding the appropriate iframe is not even a workaround in my opinion, but a simple way to achieve what you want.

Without seeing the frame-checker I cannot tell you why. Sounds like a location.replace thing
0
 
WirwarAuthor Commented:
Thank you for your time (and the great good work you and the other members in the hall of fame are doing!)  I hoped that manager thing could help, but on your advise i'm going to work out the second frame option.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now