Похожие чаты

Hi Javachads I have an ajax call in one of my

pages that on each call receives 3 objects.
And I use .innerHTML += <html> to add new bootstrap cards to the page with the response of that ajax call.
Now my cards are fine, but each card, upon click opens a modal that has an iframe with empty src. I have a separate JS function that gets the data-src of the card and puts it in the iframe's src.
Problem is, for the new cards to show proper modal, I need to click the card twice (first modal popup is either empty or contains the previous card's src). What behaviour is causing this? Should I change the way I add cards to the dom?

3 ответов

15 просмотров

wtf

For your actual question we probably need a codepen

Hossein- Автор вопроса

Похожие вопросы

Обсуждают сегодня

Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
I love the passion, really do. I do think this is being blown way out of proportion. We are not deleting our Telegram or not allowing you to talk about anything you want, a...
Mike Herron
3
Did you guys see the latest tweet from TonGifts? 🚀
Mike
44
Hey guys, did you see the latest announcement about $FUN? 🔥
Brian
21
Question: when will have qnt holders a tool to stake tokens in lcx? Answer, Verdian: yes soon.
David Ch
14
Did kadena deliver anything on time?
Femboi Uwu
23
А как лучше конвертировать физический адрес в виртуальный при маппинге? В случае ядра у меня, например, direct mapping, первые 768МБ я как есть мапплю в higher half, а остальн...
Evg Resh
26
Всем привет, подскажите/посоветуйте пожалуйста. Фаердак компоненты, имею одно место где бизнес хочет видеть при открытии формы список всех клиентов, это порядка 30к. Мои дово...
Sasha Sch
14
Ребят, если кто в курсе - скажите, а в загранке такое же засилье маркетплейсов? или там простые сермяжные интернет-магазины живут попроще?
Андрей [aharito] Харитонов
14
Коллеги, доброе утро. Запустил на удаленном хосте приложение (ручками зашел туда по ssh и запустил, не командой удаленно). Создал потом ssh-туннель, и с моей машины приложение...
Δημήτηρ
9
Карта сайта