Hi there,

Hope someone can help...

I'm developing a "Startpage" for a client's customers.

He wants all information relevant to his clients to be displayed on 1 web page.

We have come up with http://www.systemattend.com/index.php

All is well until we tried logging in to Novell Groupwise. It seems it won't accept logins from any location other than the login page they have created.

The original (and working) login page is here: http://gw01.mh.alwaysattend.com/gw/webacc

My question is... how can I include the original working login into our custom page at systemattend.com/index.php via an iframe that will automatically scroll away form all the junk on the original login page and just display the username and password box???

If that doesn't make sense let me know and I'll try re-clarify it but it looks understandable to me.

Thanks in advance,

Kevin

Hi there,

Hope someone can help...

I'm developing a "Startpage" for a client's customers.

He wants all information relevant to his clients to be displayed on 1 web page.

We have come up with http://www.systemattend.com/index.php

All is well until we tried logging in to Novell Groupwise. It seems it won't accept logins from any location other than the login page they have created.

The original (and working) login page is here: http://gw01.mh.alwaysattend.com/gw/webacc

My question is... how can I include the original working login into our custom page at systemattend.com/index.php via an iframe that will automatically scroll away form all the junk on the original login page and just display the username and password box???

If that doesn't make sense let me know and I'll try re-clarify it but it looks understandable to me.

Thanks in advance,

Kevin

You could move the scrollbar on the iframe to the position where it just shows what you want.
See: scrollTop and scrollLeft.

That would probably be the only solution if you cant edit the Groupwise page, or at least a page on that same domain. It may be that the Groupwise authentication first checks the http referer before authenticating.

If you can edit a page on that domain, just put the form there and try it out. If you can login from that page, then you can use that page to proxy over to the login page.
Just have your form action point to that page, then have that page generate a form with your login as hidden inputs and have javascript trigger the submit() on the form and send to Groupwise in another Iframe. That will post it to Groupwise and have groupwise login. Your proxy can then check based on the HTML of the page whether the login worked, and it can then reply to your original page via a javascript function like : top.loginResult(true||false);

The problem is the cross domain policy. You cant read the DOM of a child FRAME object if its on a different domain. But you can have that Iframe "talk" back to the parent by calling a javascript function in the parent once its loaded. It does this by referencing the parent as "top" and calling a function defined in the parent.

So you have your first iframe on the same domain as the login form, that is able to read the HTML of the login form, and is also able to talk back to the parent by invoking one of its javascript functions.

This article has been dead for over six months. Start a new discussion instead.