Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jithu ThomasRank #437 · 5.7K reputationPosted Mar 16, 2024, 2:39 AM EDT
To achieve displaying multiple images from URLs stored in a database in a single popup when a link button is clicked, you can use JavaScript to create a popup and dynamically load the images into it. Here's how you can do it:
GetDocumentUrlsis a server-side method that retrieves document URLs from the database and formats them as a JavaScript array.LoadDocumentsPopupis a JavaScript function that creates a popup window and writes HTML to display the images.LoadDocumentsPopupfunction is called with the array of document URLs as a parameter.Make sure to replace
GetDocumentUrlswith your server-side method that retrieves document URLs from the database. Also, ensure that the URLs retrieved from the database are properly formatted and accessible.