2

I have a site wich consist of many different html pages, some of them compiled by angular1, some of them uses jQuery, some not. But now, I need to make one spa of this pages.

I have very much modals and tables, so how can I do it by peaces?

I prefer to use iframe tag. How can I realise 2-ways event bindings? For example, if i click a button(show modal) inside iframe page, modal must open from the parent page.

Or maybe there is the best solution to solve this problem? Thank you.

georgeawg
  • 46,994
  • 13
  • 63
  • 85
Belouccio
  • 85
  • 1
  • 12
  • it will be angular 4 app – Belouccio Jul 15 '17 at 21:07
  • I do not think that you will be able to find any high level event abstraction layer here. What are you looking for is HTML5 Web Messaging specification. Here is good start: https://stackoverflow.com/questions/9153445/how-to-communicate-between-iframe-and-the-parent-site P.S. Your project seems to be nightmare. I'd recommend changing workplace ;) – rzelek Jul 15 '17 at 22:03
  • I agree with you about this project, but i wanna do it)) Thank you, Arek:) – Belouccio Jul 15 '17 at 23:20

0 Answers0