views:

435

answers:

3

I have a page where I'm fetching a Wordpress main index to handle my 'news feed', imported via jQuery.ajax. I'm also using typeface.js on the same page to have better typeface control. I want to call typeface.js on the elements in the Ajax'd HTML. The problem is that I'm not sure how to do that, since the structure of it is unfamiliar to me. It doesn't have functions to call in the normal sense, otherwise I'd just use those on success with the ajax request.

Does anyone have experience with typeface.js to help me out?

Thanks.

A: 

You could include typeface.js only after you've Ajax'd your contents, so it applies to that content as well.

To include files dynamically you could try this jQuery plugin.

Seb
A: 

I used images instead. Web typography just isn't where it needs to be. :)

b. e. hollenbeck
+2  A: 

Once you append the returned contents to your document you can call: _typeface_js.renderDocument() which will render the new content

Tim F