Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "<my_big_dom_structure_using_many_lines_of_php_code>...</...>";
- //in php we write little
- echo "<div setup_function='myJSSetupFunction'></div>";
- //in js we find the elements need setup and we call the functions:
- funtion myJSSetupFunction(elem)
- {
- [a lot of document.createElement, elem.appendChild etc]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement