How do I redirect a secure zone login form with javascript?

I would like to redirect what page a user goes to after filling out the secure log in form. I would change the landing page of the secure zone, but I need a log in form to go to a different page of the site. I would also create a seperate secure zone, but I have almost 3000 subscribers and it would be very time consuming to add all those users to this new zone.
I would like to redirect the user (using the form from a secure zone) to a different page other than the landing page of the log in form. How do I do this with javascript?
I saw this page: http://kb.worldsecuresystems.com/598/bc_598.html#main_Logging_into_different_Secure_Zones_ according_to_ID_number but couldn't make sense of it for my current situation. (I don't need multiple zones, just the form to redirect to a different page after submission)
<form action="https://redlakewalleye.worldsecuresystems.com/ZoneProcess.aspx?ZoneID=12369&Referrer={module_siteUrl,true,true}&amp;OID={module_oid}&amp;OTYPE={module_otype}" method="post" onSubmit="return checkWholeForm52938(this)" name="catseczoneform52938">
            <div class="form">
            <div class="item"><label for="SZUsername">Username</label><br />
            <input type="text" maxlength="255" id="SZUsername" name="Username" class="cat_textbox_small" /></div>
            <div class="item"><label for="SZPassword">Password</label><br />
            <input type="password" autocomplete="off" maxlength="255" id="SZPassword" name="Password" class="cat_textbox_small" /></div>
            <div class="item"><input type="checkbox" id="RememberMe" name="RememberMe" /><label for="RememberMe">Remember Me</label></div>
            <div class="item"><input type="submit" value="Log in" class="cat_button" /> <a href="/_System/SystemPages/PasswordRetrieveRequest">Lost password?</a></div>
            </div>
            <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>
            <script type="text/javascript">
                //<![CDATA[
                function checkWholeForm52938(theForm){
                    var why = "";
                        if (theForm.Username) why += isEmpty(theForm.Username.value, "Username");
                        if (theForm.Password) why += isEmpty(theForm.Password.value, "Password");
                        if (why != ""){alert(why);
                            return false;
                   // Add the redirect code here?
                    theForm.submit();
                    return false;
                //]]>
            </script>
        </form>

I've been working on the same thing and have nearly solved it with these tutorials:
http://www.bcgurus.com/tutorials/re-directing-users-to-the-correct-secure-zone
http://www.bcgurus.com/tutorials/building-a-better-secure-zone-login-page
The first tutorial will let a person continue on to the page he/she was attempting to access. For example, if your site offers learning lessons in a secure zone... A visitor could click on a lesson, get prompted to login and then be redirected to that particular lesson instead of the landing page for the secure zone.  The script in the tutorial also accommodates general logging in: "if the person wasn't going somewhere specific then send him/her here (landing page, user account, whatever).
Might be worth checking out the free BCGurus trial or joining for a month.
Brian

Similar Messages

  • Secure Zone login form logs user in who isn't registered for it?!

    I have a client who runs an eCommerce site through BC.  We have a secure zone setup for his site and he wants to review and approve users before they are given access.  There is good reason for this so please don't bring up counter-points as it is non-negotiable.
    Anyway, the secure zone registration form basicly creates a user CRM record and allows them to select a username and password.  I've instructed to client to continue into the CRM and select the checkbox next to the appropriate secure zone in order to authorize the account to login.  As far as we know this has been working until yesterday.  Now, when somebody who has an account but it is not approved yet tries to login, they receive the form error as to be expected.  However they get logged into some phantom secure zone.
    I say "phantom" zone because the actual registration form doesn't subscribe them to a secure zone, it's manual (as previously stated).  This is a pretty big issue as a major reason for doing this is that my client doesn't want his prices visible to the public.  Only after the person is in the secure zone are prices visible.  Any help would be much appreciated.  I know BC launched a new update recently which my be a contributing factor....thanks in advance!

    Hi Mike,
    This has always been the case.
    IF you have a username and password and login to a site you are logged in. You may very well not be part of a securezone but you are logged in. This is why hiding and showing content soley based on the isloggedin module is a very thoughtful process as you can not show content based on this knowledge.
    This has nothing to do with the update, you probably only just noticed this behavior but this has been the case since BC born.

  • Secure Zone Login Issues:  It worked great and now just stopped.

    The secure zone on my client's site worked great for about a month and now it just stopped.  All of a sudden it won't let us type into the username and password boxes.  We can click on the "remember me" button and the "submit button" but not type.  I've tried deleting and redoing the code and still nothing.  Our issue is occuring most when used with Chrome's browser.  Any thoughts or suggestions?

    Thanks for your reply, Liam.  Oddly enough I was just reading your expectional contributor profile that popped up in my side collumn.
    Here is the link to the site.  The login works fine in Safari, it's just a problem with Chrome I believe.
    www.myadvancedpt.com
    The login area is in the bottom right of the footer titled "Employee Login."

  • Mobile - Secure zone login issues

    Hi All,
    I'm able to log in to BC sites with secure zones using a samsung galaxy s1 and iphone pretty consistently however when using a samsung galaxy s2
    I can't login - tested over 3 sites so I know it's not the code on the page interfering with login.
    Anyone else have issues logging in to secure zones with mobiles?
    Thanks,
    Nathan

    Sure,
    Using the Default browser on
    Samsung Galaxy s2
    firmware version : PDA:LP8 / PHONE:LPS / CSC:LP4 (XSA)
    firmware version : PDA:LPW / PHONE:LQ6 / CSC:LP6 (XSA) upgraded to see if it would help but no luck
    1. Click the link to login (either on login form or just clicking on a link to a page within the zone I'm trying to log in to).
    2. Enter correct username and password (multiple testings and changes of password have been tested)
    3. In either case, URL will change to /Default.aspx?PageID=######
    Sometimes it will show /Default.aspx?PageID=######&Error=Thank+you+for+logging+in.
    On some of the websites I've tried - Creating a new customer on the samsung galaxy s2 will register the new user for the zone - but the form will not allow the user to be logged directly in on submission - error page " We're not able to log you in "  appears however the user is created, assigned to zone and can be used fine on a desktop.
    Content that should be accessible once logged in - isn't (example. Login changes to logout, customer name "Hi Firstname lastname" won't display etc. because it's just not logging in.)
    Zone subscription is checked, works on Samsung Galaxy s1 as it should.
    Galaxy S
    Operating System
    Linux Android
    Screen Resolution
    800 x 1130
    Web Browser
    Android Webkit 4.0
    Browser Size
    800 x 1130
    IP Address
    withheld
    Color Depth
    32
    Javascript
    Enabled
    Flash Version
    11.1.111
    Cookies
    Enabled
    User Agent
    Mozilla/5.0 (Linux; U; Android 2.3.3; en-au; GT-I9000 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
    Galaxy S2
    Operating System
    Android Android4.0.4
    Screen Resolution
    480 x 800
    Web Browser
    Android Webkit Browser --
    Browser Size
    320 x 456
    IP Address
    withheld
    Color Depth
    32
    Javascript
    Enabled
    Flash Version
    11.1.115
    Cookies
    Enabled
    User Agent
    Mozilla/5.0 (Linux; U; Android 4.0.4; en-au; GT-I9100 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

  • Secure Zone Login Reporting

    Question:
    I have searched but can not find anyway to do this.  I have a school site that has sent out secure zone passwords to all the parents.  They would like to know which parents have actually logged in to check out the secure zone.  Is there anyway to run a report on this?
    I know this info shows up in the live feed but only recent activity shows there so that is not much help.  Any ideas?
    Answer:
    There is no way you can view who is logging in other than in the live feed or recent activity in the customer tab. However you can view the secure zone usage which is under the secure zone action box.

    Hi,
    Inspect the form and you'll see that it draws its style from ModuleStyleSheets.css. Update those styles in any way you want: http://goo.gl/T0We6
    Kind Regards,
    Alex Pavelescu

  • Update secure zone expiry dates with an import

    We are trying to update Secure Zone Expiry dates for customers via an import but the problem is when we create a report for Users and Secure Zones there is no field for 'Username' and from what I understand if we leave this blank when importing then the information will be deleted.

    What a process this has been! Has anyone else found it difficult or is it just me?
    Maybe there is an easier way, I'd love to know if that is the case.
    If anyone is interested this was my experience in updating the Secure Zone Expiry dates for customers.
    Export a report of all members (Select Users and Secure Zones) and filter by Secure Zone.
    Export a report of all customers and make sure to select the field 'Username' (This is not available in the Users and Secure Zone report, how crazy is that!).
    In Excel, merge the 2 reports to get usernnames for the members. Here is a good tutorial on how to do this Vlookup Excel Best - YouTube or Merge two excel files using a common column - Super User
    After merging and cleaning up the data, copy to an import template and save as csv file.
    Make sure that the date format in your Expiry dates are in the correct format ie 20-Feb-2020 (check in a text editor as excel can be tricky).
    Import via advanced contact import and make sure to select the secure zone in checklist below or the date will not change.
    Easy isn't it, ha.
    If Adobe are listening, please add the 'Username' field to the Users and Secure Zone reports, this would save a lot of work.

  • Reply to Open Case inside Secure Zone via Form Instead of Email?

    I also asked this on the LinkedIn group - any help appreciated!
    I was wondering if anyone has done this? I heard on chat it cannot be done, but I was wondering if anyone has a workaround.
    I have set up a CST system behind a secure zone for a client. They are using it for private communication, not support, so I am looking for a way to allow registered users to view their cases created via the CST in the secure zone (got that all set), but then be able to respond to an open case via a form inside the secure zone and have it append to the existing case, instead of via email.
    I asked if the Case # could be appended to a URL to pre-fill a form field (mimic the format of the CST email), but I was told no go.
    Any ideas? Alternative approaches? The goal is to allow people to correspond solely inside the secure zone if they want for privacy.
    Thanks,
    Kristen

    Hi Liam,
    Thanks! Yes - I have that all working inside the admin. What I was trying to do was have website visitors have the ability to reply inside the secure zone after logging in (not the CSR) so that they do not have to use email if they don't want to.
    Here was an idea I had, not sure if it would work:
    Here is the case list in the secure zone with a "reply" hyperlink: http://www.screencast.com/t/fZjzVLIt
    Here is the reply form, with some fields already preloaded through secure zone modules. Would it be possible to build a string using tags for the subject line that would mimic the case subject line in the email so that the form submit would append to the existing case?
    Here is the form: http://www.screencast.com/t/sFPObjAiYVJ
    Here is the case in the system: http://www.screencast.com/t/KdhjlKuEjh
    I don't know if this is specifically possible (can tags render like that?), or if you have any other ideas.
    Thanks!

  • How i can change my security question without call with my phone???

    I forgot the true answer of the security question.
    How can i change them with out call the Apple support?

    #1 or #3
    From a Kappy  post
    The Three Best Alternatives for Security Questions and Rescue Mail
       1. Use Apple's Express Lane.
    Go to https://expresslane.apple.com ; click 'See all products and services' at the
    bottom of the page. In the next page click 'More Products and Services, then
    'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
    ID security questions' and click 'Continue'. Please be patient waiting for the return
    phone call. It will come in time depending on how heavily the servers are being hit.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.

  • How to show note window for a table cell with javascript?

    My goal is to do tihs with javascript. No server side handling.
    <af:table id="t1">
    <af:column id="c1">
    <af:outputText id="ot1">....
    <af:clientListner ....method="showPopup"/>
    </..>
    </..>
    </..>
    <af:popup id="p1">
    <af:noteWindow id=ot2>
    here to show the value of ot1
    </..>
    </..>
    function showPopup(e){
    var text=e.getSource().getValue();
    var popup=e.getSource().findComponent("::p1");
    now how to update the content of the notewindow??
    popup.show();
    }

    Hi,
    You could try with something like this.
                   <af:outputText value="outputText1" id="ot1" clientComponent="true">
                        <af:clientListener method="showPopup" type="mouseOver"/>
                    </af:outputText>
                    <af:popup childCreation="immediate" autoCancel="disabled" id="p1" clientComponent="true"
                              contentDelivery="immediate">               
                        <af:noteWindow id="nw1" clientComponent="true">
                            <af:outputText value="outputText2" id="ot2" clientComponent="true" />
                        </af:noteWindow>
                    </af:popup>
                    <af:resource type="javascript">
                        function showPopup(evt){
                            var ot1 = AdfPage.PAGE.findComponent("ot1");
                            var text=ot1.getValue();
                            var popup=AdfPage.PAGE.findComponent("p1");
                            var ot2=AdfPage.PAGE.findComponent("ot2");
                            ot2.setValue(text);
                            popup.show();
                    </af:resource>-Arun

  • How can i redirect a page to Login screen when sessionis timeout???

    I have a problem in my portal development.
    I set the "<b>Session timeout= 01</b>" parameter in the<b> Visual Administrator</b>
    server_0 > services > Web Container
            Runtime > sap.com/irj  > irj    (view button)
    However, when the session is timeout then the page become to be "red"!!! That is, there is an Exception. I'd like to redirect the page to the "Login screen", but I don't know how. <b>Does anybody know how can I do it</b>?
    Thanks in advance.

    Hi,
        the http session invalidation must be checked at application level  do it DYNPAGE only .you can call the following method.
    public void expireSession(IPortalComponentRequest request)
              long lastAccessedTime=request.getServletRequest().getSession().getLastAccessedTime();
              Date currentDate = new Date();
              Calendar currentDateCal = new GregorianCalendar();
              currentDateCal.setTime(currentDate);
              long systemTime = currentDateCal.getTimeInMillis();          
              long sessionExpiryTime = systemTime - lastAccessedTime;
              long sessionExpiryTimeProp = 600000; //dont hard code.get from property file
              if(sessionExpiryTime >= sessionExpiryTimeProp)
                   try
                       IPortalComponentResponse response=(IPortalComponentResponse)this.getResponse();                    
                        String sessionExpiryPage ="/irj/servlet/prt/portal/prtroot/com.sap.portal.masthead.LogOutComponent?logout_submit=true";                    
                        response.write ("<script language="javascript">");
                        response.write("parent.window.location.replace('"+sessionExpiryPage+"','','toolbar:No,status: No,location: N0');");
                        response.write("</script>");
                   }catch(Exception e)     

  • How to single sign off from all integrated forms with application server

    Hi!
    I deployed two forms form1 and form 2 on oracle application server 10g.
    The i created user in oid and created two data sources for these two forms to have data from database .
    I enabled single sign on on the formsweb.cfg file ,Now single sign on is working fine .
    When i try to open any form it promt me the SSO page after successful login it opens the form but problem is that now how do i log out so that when i logout from one form i should logout from other form as well using single sign off
    please can anybody help...

    Hello Anoop,
    The folowing link describes how to setup SSO between two portal.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/2232900bb93fece10000000a11466f/frameset.htm
    Regards
    Deb
    [Reward Points for helpful answers]

  • How to populate Adobe LiveCycle Designer generated  PDF Forms with data from Database in Windows app

    Hi
    I have a PDF template designed in Adobe LiveCycle Designer. This template has form fields which needs to be filled with data programmatically. I am using windows application in C#.Net 2005 in which I want to retrieve data from database and merge this data into PDF form in respective fields.
    How this can be achieved?
    I searched a lot & I found that we can process the XDP file generated from PDF to acheive this. I created the XDP file out of the PDF template created in designer. But I don't know how to merge data from database into that XDP file in respective fields and again convert this XDP file back to PDF programmatically. Can anybody help me ? This is urgent.
    Thanks in advance.
    Sambhaji

    Please ignore the above code.<br />The following one is correct one.<br />using System;<br />using System.Data;<br />using System.Configuration;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.WebControls;<br />using System.Web.UI.WebControls.WebParts;<br />using System.Web.UI.HtmlControls;<br />using System.Text;<br />public partial class _Default : System.Web.UI.Page <br />{<br />    protected void Page_Load(object sender, EventArgs e)<br />    {<br />        Response.ContentType = "application/vnd.adobe.xdp+xml";<br />        StringBuilder responseString = new StringBuilder();<br />        responseString.Append("<?xml version='1.0' encoding='UTF-8'?>");<br />        responseString.Append("<?xfa generator='AdobeLiveCycleDesigner_V8.0' APIVersion='2.5.6290.0'?>");<br />        responseString.Append("<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>");<br />        responseString.Append("<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>");<br />        responseString.Append("<xfa:data>");<br /><br />        responseString.Append("<form1>");<br />        responseString.Append("<TextField1>Homer</TextField1>");<br />        responseString.Append("<TextField2>Simpson</TextField2>");<br />        responseString.Append("<field name ='DropDownList1'>");<br />        responseString.Append("<items save='1'>");<br />        responseString.Append("<text>1</text>");<br />        responseString.Append("<text>2</text>");<br />        responseString.Append("<text>3</text>");<br />        responseString.Append("</items>");<br />        responseString.Append("</field>");<br /><br />        responseString.Append("</form1>");<br /><br />        responseString.Append("</xfa:data>");<br />        responseString.Append("</xfa:datasets>");<br />        responseString.Append("<pdf  href='C:\\Test.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />");<br />        responseString.Append("</xdp:xdp>");<br /><br />        Response.Write(responseString);<br />        Response.Flush();<br />        Response.End();<br />    }<br />}

  • How to use same DFF for two different forms with :BLOCK.field reference

    Hi,
    Can anyone suggest how to use the same dff in two different forms by using :BLOCK.field reference.
    Scenario is the same DFF is referenced by two forms, viz. Form-1 & Form-2.
    Form-1 Reference Field is :BLOCK.field name, but the same block is not available in Form-2, which throws an error while opening it.
    Any pointers please.
    Thanks,

    In the environment I currently have access to do not have similar setup.
    Let say you setup the DFF1 default value to $HEADER.customer_name, the name of the DFF is CUSTOMER_NAME, description can be anything.
    In DFF2, default value should be a SQL, where you can reference the DFF1. For example, SELECT DECODE($FLEX.CUSTOMER_NAME, 'ABC', 1, 'DEF', 2, NULL) FROM dual
    In this case, you can reference the DFF1.

  • How to add a column in Item Master form with chooselist

    Hi Experts
    I add a column in Item Master Form in Stock Data Tab. In this column I want to add Choose list. For this I use AfterFormLoad event. It gives Error "Matrix Line Exist" . My code is given below
    If pVal.FormType = "150" Then
                    form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
                    form.PaneLevel = 3
                    oItem = form.Items.Item("28")
                    oMatrix = oItem.Specific
                    Dim chooseObj As ChooseListClass
                    chooseObj = New ChooseListClass
                    chooseObj.AddChooseFromListBinCode(form.UniqueID)
                    oColumns = oMatrix.Columns
                    oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
                    oColumn.Width = 100
                    oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
                    oColumn.TitleObject.Caption = "Def BinCode"
                    oColumn.Editable = True
                    oColumn.ChooseFromListUID = "CFL5"
                    oColumn.ChooseFromListAlias = "U_BinCode"
                    oColumn = oColumns.Item("U_BINCODE")
                    oColumn.Visible = False
                End If
    please give your suggestion
    Regards
    Jitender

    Hi Noor
    Thanks for reply
    I tried your suggestion but problem still there. I am using after form load event. Here matrix has 9 lines (all warehouse). If remove the line then how can I reload warehouse data. Can you suggest in more detail.
    my code is given below
    form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
                    form.PaneLevel = 3
                    oItem = form.Items.Item("28")
                    oMatrix = oItem.Specific
                    MsgBox(oMatrix.RowCount)
                    oMatrix.DeleteRow(1)
                    Dim chooseObj As ChooseListClass
                    chooseObj = New ChooseListClass
                    chooseObj.AddChooseFromListBinCode(form.UniqueID)
                    oColumns = oMatrix.Columns
                    oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
                    oColumn.Width = 100
                    oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
                    oColumn.TitleObject.Caption = "Def BinCode"
                    oColumn.Editable = True
                    oColumn.ChooseFromListUID = "CFL5"
                    oColumn.ChooseFromListAlias = "U_BinCode"
                    oColumn = oColumns.Item("U_BINCODE")
                    oColumn.Visible = False
                    oMatrix.AddRow(1)
    Thanks
    Waiting for reply
    Regards
    Jitender

  • How can I load and process an HTML5 file with Javascript in the same way as an XML file?

    I maintain a diary in local weekly files that I am converting to HTML5 from XHTML. I wish to extract all the "articles" about particular topics from these files and display them in different orders. It is possible to load an XHTML file using the loadXMLDoc function described at http://www.w3schools.com/dom/dom_loadxmldoc.asp but the same function detects a parsing error when it reads an HTML5 file. (For example, the parser expects an empty element's tag to end with />). How do I persuade Firefox 16.0.1 to use an appropriate parser?

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

Maybe you are looking for

  • One prompt for two or more subject area

    Does someone knows how to resolve this problem? I have two subject areas. And I need to create prompt that will work on dashboard that contain requests from two different subject areas (one request from one subject area). I hope that I was clear with

  • Exclusion of members..

    In the EPM 10NW report, I need to exclude certain entity members from the display. In the 'report editor' I am using the 'Exclude members' option in this regard. These members are excluded from the report display, but still showing up in the hierarch

  • HT3743 Updated iphone 3gs gone wrong, please help!

    After updating my iphone 3gs to ios6, i have an Apple logo and a loading bar which is stalled, what should I do? Thanks for any help.

  • ANN: LR/Mogrify integration with Jeffrey Friedl's Plug-ins and LR/Transporters

    Hi all, You've been asking for this, and thanks to Jeffrey's hard work it's now possible. LR/Mogrify can now be used in tandem with any of Jeffrey's plug-ins and with my own LR/Transporter. Here are the appropriate links : http://regex.info/blog/2008

  • LR5.4 Book Module

    In LR5.4, when I add extra photos to the base collection, all previous book formatting is lost and the book reverts to the openning defaults.  How do I prevent this?