picture load asynchronously
-
06-12-2019 - |
Question
I have a picture that is larger than the viewable area... and I need to add a scrollbar to the picture so that I can load the picture as per the scrollbar. I need to show the picture in a visual web part.
I cannot load the whole picture at once .. but load it in part with scrollbar as the control!!
I believe I need to use Ajax to load the picture and add scrollbar for it. I need to use visual web part and building a web part.
La solution
Why don't you use jquery:
Scroll to detect the page scrolling:
Offset to determine page position:
Ajax Get to load the picture:
api.jquery.com/jQuery.ajax/
Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange