by grimtrigger · 13y ago · 0 comments
1) cross domain AJAX via CORS
2) Injecting HTML strings constructed in JS
For small amounts of HTML, I'd much rather go with option #2.
ps. Its unfortunately very common for developers to have little or no server side access to the applications they're building.
If you can easily avoid a call to the server, it might be a good idea.
You've described server-side libraries. Client-side do the exact same thing in JS on the client.