Skip to main content
Inspiring
January 16, 2012
Answered

Login Screen

  • January 16, 2012
  • 1 reply
  • 707 views

Hi. I had a login screen with a username and password, which also included checking off a check box of the initials of the user logging in. This would get them to the next screen of information. On Fri., we decided we do not need the user to check off their initials anymore, so I removed them. I can log in just fine on Firefox and Chrome, but for some reason, I cannot log in on Explorer at all. I'm using IE 8. It does not go to the next page after I hit the log in button. I'm not sure why. After the submit button is hit, it does go to a validation page I have set up to make sure the user exists. This page also has a javascript on it to go to a company search page once the user is checked and exists. Here's the javascript I'm using:

<script language="JavaScript">

self.location='../RFQLOG/company_search.cfm';

</script>

Would this be the problem with why the log in screen does not get me to this page? Or what else could I be doing wrong? It was working fine with the checkboxes, so this really confuses me. Any help would be greatly appreciated. Thanks.

Andy

    This topic has been closed for replies.
    Correct answer jamie61880

    Steve,

        I'm not sure why I was using the client side javascript for the redirect. I'm not sure where I got that code from anymore. I changed it to cflocation, though, and it works now! Thank you. I knew there was a way of doing this in Cold Fusion, but I couldn't remember what it was called. Why would this matter in Explorer though? Shouldn't it have worked? It did when I had the checkboxes in there. Not sure why it would not work once I removed them. But either way, it works now! So thanks again!

    This is the code I used. What does addtoken mean?

    <cflocation url = "../RFQLOG/company_search.cfm" addToken = "No">

    Andy

    1 reply

    Legend
    January 16, 2012

    Is there a reason you are using client side javascript for the redirect as opposed to a server-side cflocation call?

    If you keep the javascript I recommend you look at jquery even for simple stuff like this but to more directly answer your questsion, I'm not sure about "self", but document.location works for the three major browsers I deal with (IE, Safari, Firefox).

    jamie61880AuthorCorrect answer
    Inspiring
    January 16, 2012

    Steve,

        I'm not sure why I was using the client side javascript for the redirect. I'm not sure where I got that code from anymore. I changed it to cflocation, though, and it works now! Thank you. I knew there was a way of doing this in Cold Fusion, but I couldn't remember what it was called. Why would this matter in Explorer though? Shouldn't it have worked? It did when I had the checkboxes in there. Not sure why it would not work once I removed them. But either way, it works now! So thanks again!

    This is the code I used. What does addtoken mean?

    <cflocation url = "../RFQLOG/company_search.cfm" addToken = "No">

    Andy