• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaScript creating ActiveXObject under SSL

 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a JavaScript file with the following line...

This seems to fail when using an SSL connection.

More specifically, we are using WebSeal to authenticate users who access Domino servers using a browser. This seems to redirect them through an authenticating server using a secure connection. For example...

http://myServer.domain.com/content/db.nsf

...redirects as...

https://authServer.domain.com/myServer.domain.com/content/db.nsf

I don't know much about SSL and even less about ActiveX, but there's clearly something that's not mixing well here. Does anyone with experience in this type of thing have suggestions?
 
marc weber
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[Warning: This is turning into a Lotus Notes question.]

As I said above, I don't know much about ActiveX, but my interpretation is that the problem line...

filterXml=new ActiveXObject("Msxml2.DOMDocument");

...is essentially "wrapping" a DOM in an ActiveX "interface." The DOM is loaded with...

filterXml.load("search.xml");

...where "search.xml" is a page in the Lotus Notes database, and the page includes an embedded database view, in which the columns are formatted to display an XML representation of the Notes document hierarchy.

In other words, this seems to be a way to "wrap" a Notes view into an object that can be handled in the client browser.

So now my question is: In the context of a JavaScript file (which is a page in the Notes database), how can I "get" a Notes view in a way that might be allowed by WebSEAL?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Persoanlly I would use the XMLHttpRequest object to load XML files and use the responseXML to read it.

What are the security settings for the zone you are in? They allow activeX?

Eric
 
marc weber
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Eric!

You're going to love this. I'm using IE where the security options are all disabled, so I don't have the ability to view or change them. ActiveX seems to be allowed (at least for local intranet), because this script works as long as I'm not redirected through WebSEAL authentication.

But XMLHttpRequest seems to be undefined in IE. From what I've read, it's supported by Safari and Mozilla, but IE needs to use the ActiveXObject that's failing here. I'm seeing examples like this...

Am I missing something with this?
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The bare bones is here with creating the object:

http://developer.apple.com/internet/webcontent/xmlhttpreq.html

Eric
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic