Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Dileep349 opened this issue Dec 3, 2019 · 6 comments
Open

Comments

@Dileep349
Copy link

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
Copy link
Owner

sympmarc commented Dec 3, 2019

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
Copy link
Author

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
Copy link
Owner

sympmarc commented Dec 3, 2019

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
Copy link
Author

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
Copy link
Owner

sympmarc commented Dec 3, 2019

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants