sympmarc / SPServices

SPServices is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities. It works entirely client side and requires no server install.
MIT License
207 stars 62 forks source link

User profile Property fields are not auto populatng with SPServices #81

Open Dileep349 opened 4 years ago

Dileep349 commented 4 years ago

Hello,

I have been using SPServices in conjunction with Jquery min.js library on content editor web parts. however auto-populating feature for {User name, User department, ser contact no. etc.) are not working since last week.

Have been using jquery-3.2.1.min.Js

Any suggestions. Please help !!!

sympmarc commented 4 years ago

Nothing has changed in the library for years, so I'm not sure what would have caused something to stop working unless it's on your end. Did you change something right before it stopped working?

Dileep349 commented 4 years ago

Hi,

No, There was no recent changes on my end. Getting the following warnings in chrome Dev tools:

jquery-3.2.1.min.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

Are these warnings something we can ignore?

sympmarc commented 4 years ago

That warning (or a similar one) has been in Chrome for years. It indicates you're making synschronous calls rather than asynchronous. You can use jQuery promises to both improve your code and get rid of that error.

If you had working code and it stopped working, something must have changed.

Dileep349 commented 4 years ago

Oh.. ok. Did you hapen to see that the code only works for certain users only, even though all the people have the same access level.

I just found out that its working on my machine with different accounts, but noton other machines.

Thanks

sympmarc commented 4 years ago

You hadn't mentioned it was only working for some users. Given that, it must be a permissions issue. You should be able to see what the error is in the dev tools.

Dileep349 commented 4 years ago

No sir, Everyone does have the same permissions, but this auto pre-fill of fields working for some users only. And i don't see any errors in Devtools other than those chrome warnings i meantioned earlier