You are here

Open a Pop Up window

Submitted by Rolln on Wed, 03/09/2011 - 07:52

Hi there!

I have been trying to open a new pop up window using the window.open method on the login page. The reason for this is to open a window to a password reset page, however whenever I try it, I get errors. I've also tried using the [script language=Javascript 1.2] tag within the table cell and creating a window.open function and still no use. I do not want to open link in a new window because I do not want the URL of the password reset page to be displayed in the browser.

I did try using iFrame and having issues with it...

Any suggestions? What am I doing wrong?

Thanks!

Luminis Version:

Your post seems to be cut off at the end and missing some info.
What errors are you getting trying to use window.open?
Your post cuts off with "I've also tried using the". What other options have you tried?

Without knowing what you've done so far my first recommendation would be to add jQuery to your portal and use that to display the page.
http://choosedaily.com/1178/15-jquery-popup-modal-dialog-plugins-tutorials/

Tom
https://link.jwu.edu
Johnson and Wales University

Hi Tom!

Thanks for your suggestion, just curious, will JQuery work on the Login page? Because this is where it has to open from. You know the link on the login box that says 'Having Problems loging in? Click here' well I want to link that to our University's third party Password Reset software which the IT Dept purchased, I prefer NOT to use the target=_blank option.

While I have tried using inline Javascript code to open a new window, I do get a CP system error from the Login page. Will try to use JQuery...funny that was my first thought :)

And the information that was cut off was: "I've also tried using the [script language=Javascript 1.2] tag within the table cell and creating a window.open function and still no use. I do not want to open link in a new window because I do not want the URL of the password reset page to be displayed in the browser.

I did try using iFrame and having issues with it..."

Thanks for sharing a link, much appreciated!

Best
Roland
American University of Kuwait

We use jQuery on our login page.

Our login page is custom built though. There is a configman setting that changes which URL Luminis renders for this.

To make things slightly more complex, we actually have several custom login pages. Our non standard ones (i.e. for Applicants or Alumni) set a cookie and
our main login page checks for the cookie to redirect to the right one.

We also use some clunky normal javascript too.

Derek
University of Leeds, UK

Our login page uses jquery to pop up some links. Check it out: my.pcc.edu

You should use either CPIP or CAS for single sign-on into your password reset page. There is no reason that you should need to try and hide the URL, because it should not contain any personal information anyway.

Todd

Hi Todd

I do use CPIP for single sign on (SSO), and yes it does not contain any personal information, but that's not the issue. The issue is having a new window open to a third party Password Reset software purchased by the IT Department. I really do not fancy using target='_blank' option as I find this boring to say the least.

Hi Roland,

Is the reason you, and others, don't like target='_blank' because it is not part of XHTML strict? '_blank' is a valid attribute value in HTML5, so I'm not sure why those standards guys removed it from the XHTML strict DTD. Anyways, just curious as to why some developers avoid it.

Cheers,
Kerry

Another example is available at swan.clayton.edu. We use modal windows through the SimpleModal library (requires jQuery). The "Lookup Username," "New Students," and "Forgot Password" links do what you are wanting to do. The script that handles these is "swan_login_utils.js" and is not minified, so you should be able to learn from it.

One note, if you actually manage to get to the login page with JavaScript disabled (not easy to do because of the way Luminis does redirects *sigh*), the tools will still work. But you will see the URL to the tools. The modals just make it "pretty" for the user. Trying to hide the actual URL is futile, because the user's client _has_ to request data from it at some point. All the user has to do is look to see what requests were made to get the data for the page.