問題:
I have looked for a while, but I can't find a solution for this.我已經尋找了一段時間,但我找不到解決方案。 I want the following:我想要以下內容:
- Open an URL inside a Bootstrap modal.在 Bootstrap 模式中打開一個 URL。 I have this working off course.我有這個工作。 So the content is loaded dynamically.所以內容是動態加載的。
- When an user pushes a button inside this modal, I want the current modal to hide, and immediately after that, I want a new modal to open with the new URL (which the user clicked on).當用戶按下此模式內的按鈕時,我希望隱藏當前模式,然後立即使用新 URL(用戶單擊的 URL)打開一個新模式。 This content of the 2nd modal is also loaded dynamically.第二個模態的內容也是動態加載的。
- If the user then closes that 2nd modal, the first modal must come back again.如果用戶隨後關閉了第二個模態,則第一個模態必須再次返回。
I have been staring at this for days, hope someone can help me.我已經盯着這個好幾天了,希望有人能幫助我。
Thanks in advance.提前致謝。