{"id":85,"date":"2007-02-07T12:56:33","date_gmt":"2007-02-07T17:56:33","guid":{"rendered":"http:\/\/stein.everybody.org\/brain\/allow-csshoverhtc-to-act-on-dynamic-elements-rerun-parsestylesheets\/"},"modified":"2011-03-10T10:57:30","modified_gmt":"2011-03-10T15:57:30","slug":"allow-csshoverhtc-to-act-on-dynamic-elements-rerun-parsestylesheets","status":"publish","type":"post","link":"https:\/\/jeremystein.com\/brain\/allow-csshoverhtc-to-act-on-dynamic-elements-rerun-parsestylesheets\/","title":{"rendered":"Allow csshover.htc to act on dynamic elements: rerun parseStylesheets"},"content":{"rendered":"<p>We used <a href=\"http:\/\/www.xs4all.nl\/~peterned\/csshover.html\">csshover.htc<\/a> to allow IE5 &#038; IE6 to provide rollover highlighting with the hover selector.  Unfortunately, this didn&#8217;t support HTML that was generated dynamically, in our case by AJAX updates to the page.  The solution was to add this line to csshover.htc:<\/p>\n<p>window.parseStylesheets = parseStylesheets;<\/p>\n<p>This made that method available to the rest of the code.  Then, on AJAX update, I added this line:<\/p>\n<p>if (window.parseStylesheets) window.parseStylesheets();<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We used csshover.htc to allow IE5 &#038; IE6 to provide rollover highlighting with the hover selector. Unfortunately, this didn&#8217;t support HTML that was generated dynamically, in our case by AJAX updates to the page. The solution was to add this line to csshover.htc: window.parseStylesheets = parseStylesheets; This made that method available to the rest of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-javascript"],"_links":{"self":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":0,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}