locked
pass logged in user credentials RRS feed

  • Question

  •  

    Hi,

     

     I need to access a sharepoint list through javascript. I am making a making an xmlhttprequest to the site. While making a call i need to pass the logged in user credentials. Is it possible to achieve this in javascript??? Pls suggest...

     

    Thanks

    Anil

    Wednesday, July 16, 2008 10:29 PM

Answers

  • Hi,

     You are right...the XMLHttpRequest sends the current user credentials for intranet site...Thanks...
    Monday, July 28, 2008 2:34 AM

All replies

  • the Open method of the XmlHttpRequest can accept the Username and Password as the forth and fifth parameters.

     

    However if the site you are accessing is added to IEs intranet zone you will find the XmlHttpRequest will send the current user credentials if the site asks for them. 

    Sunday, July 27, 2008 7:04 AM
  • Hi,

     You are right...the XMLHttpRequest sends the current user credentials for intranet site...Thanks...
    Monday, July 28, 2008 2:34 AM