Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. echo "<my_big_dom_structure_using_many_lines_of_php_code>...</...>";
  2.  
  3. //in php we write little
  4. echo "<div setup_function='myJSSetupFunction'></div>";
  5.  
  6.  
  7. //in js we find the elements need setup and we call the functions:
  8. funtion myJSSetupFunction(elem)
  9. {
  10. [a lot of document.createElement, elem.appendChild etc]
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement