E
E
EVOSandru62015-03-31 04:21:10
JavaScript
EVOSandru6, 2015-03-31 04:21:10

How to organize a quick view of the product through Ajax?

Good afternoon,

Please tell me how you can combine the modal-dialog from Bootstrap or Jquery ui dialog with Ajax so that this is loaded into this modal window when clicking on a link. For example, the layout of a hidden modal window does not yet contain content, click on the link, get the element code somehow, POST or GET data flies through js to php , get a response, fill in the data and load it into the modal layout, or see the download icon until it is completely loaded. I don’t want to make hidden elements of modals already filled with information and heavy pictures in the cycle. I would like to do throughjQuery or Angular . The most worrying question is how to attach 2 handlers to one event. Are there examples of such an implementation anywhere? Not necessarily, but it's very cool if yii has a similar component.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-03-31
@EVOSandru6

You described how to do it yourself. What exactly is not clear? Why do you need two handlers specifically in this case?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question