Working with HTML Fragments in jQuery (www.moretechtips.net)

submitted by MikeMoreMikeMore(298) 9 months, 14 days ago

When you are working in jQuery with generated HTML fragments that are returned from AJAX, It is interesting to note these cases..

1 comment |category: |Views: 9

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4392) 9 months, 11 days ago 0

I would add that rather than using an attribute like tempsrc, to use the HTML5 "data" attributes http://ejohn.org/blog/html-5-data-attributes/.
So the example then becomes data-src.
Essentially, since you're going to be using a non-standard attribute anyway, why not use one that would validate in an HTML5 compatible browser?

Reply

information Login or create an account to comment on this story