none
Sharepoint 2010 popup page issue while sign in as diferrent user

    Question

  • We have a SharePoint 2010 portal in which one of the functionalities opens a list item add form as a popup. We customized this add form using SPD by adding the following java script functions.

    <script type="text/javascript">

    $(document).ready(function(){

     $('input[value=Cancel]').click(function()
     {
      window.close();
     });
    });

    function PreSaveAction()

     var reqType= document.getElementById("ctl00_xxxxxxxxxxxxx_ctl00_Lookup").value;
     reqType= reqType.replace(/^\s+|\s+$/g, '');

     var reqDesc= document.getElementById("ctl00_xxxxxxxxxxxxx_ctl00_TextField").value;
     reqDesc= reqDesc.replace(/^\s+|\s+$/g, '');
     var error="";
     if(reqType=="12")
     {
      error="Type";
             
     }
     if(reqDesc=="")
     {
      if(reqType=="12")
      {
       error=error+" &";
      }
      error=error+" Description";

     }
     error=error+ " can not be empty";
     if(reqType=="12"||reqDesc=="")
     {

      alert(error);
     }
     if(reqType!="12" && reqDesc!="")
     {
      alert("Your service request  has been sent");
                    window.close();
                    return true;
     }
    }

    _spBodyOnLoadFunctionNames.push("disableForm");
    function disableForm ()
    {

       var disableInput=document.getElementsByTagName('input');
       for(var i=0; i < disableInput.length; i++)
      {
            if(disableInput[i].title == "Alias"||disableInput[i].title=="Location"  )
            {
               disableInput[i].readOnly=true;
            }
       }
    }

    </script>

     

    The portal is authenticated to corporate AD. This functionality is working fine when the windows logged in user  opens the portal and tries for it (logged in to the box using domain\abc and opening portal using the same account). But when sign in as diferrent user than the windows logged user (logged in to the box using domain\abc and opening portal using the some other account like domain\pqr); its not getting through.

    Can anybody help me to resolve this?

    Monday, September 27, 2010 11:43 AM

All replies

  • Subeesh,

    Few things to consider

    Have you tried clearing your cache and try again.

    Have you tried multiple browsers like IE and Firefox.

    Do you get an Access Denied error or 401 error?

    Thanks

    Kanu

    Monday, September 27, 2010 3:55 PM