Skip to Main Content
Third-Party JavaScript
book

Third-Party JavaScript

by Anton Kovalyov, Ben Vinegar
March 2013
Intermediate to advanced content levelIntermediate to advanced
288 pages
9h 44m
English
Manning Publications
Content preview from Third-Party JavaScript

Chapter 3. Rendering HTML and CSS

This chapter covers

  • Outputting HTML to the publisher’s page
  • Methods for loading styles
  • Writing conflict-free HTML and CSS
  • Techniques for presenting content using iframes

In the previous chapter, you learned how to load your third-party JavaScript code on the publisher’s page, load supporting JavaScript files, and pass parameters from the publisher’s page to your script. At this point, there’s still nothing to see; your code is executing on the publisher’s page, but you haven’t added a single visual element to the DOM. It’s time to fix that. In this chapter, we’ll cover the steps involved in actually rendering HTML and CSS on the publisher’s page.

Now, not all third-party scripts will make use of rendering. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ajax: The Definitive Guide

Ajax: The Definitive Guide

Anthony T. Holdener III

Publisher Resources

ISBN: 9781617290541Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link