Hmm. Sorted. Binding a function to the page's load event did the trick.
Seems document.ready and page.load are two different beasts.
Very useful for cleaning up legacy HTML content containing deprecated tags. 
Equally useful for enforcing compliance upon those users who have only just 
discovered all those buttons on the HTML editor. :)
$(function() {
  $(window).bind('load', function() {
    $('#content td div font').each(function(a) {
      $(this).replaceWith($(this).text());
    });
  });
});
Regards,

Paul

--
Online Developer/SharePoint Administrator,
ICT Infrastructure Team
CEO Sydney

From: [email protected] [mailto:[email protected]] On Behalf Of 
Paul Noone
Sent: Monday, 22 August 2011 9:54 AM
To: ozMOSS ([email protected])
Subject: [2007] Announcement List Delayed DOM Updates

Hi all,
I have a very unusual problem. I had added a very simple jQuery call to a page 
with an Announcements list view web part on it. All it did was locate and 
remove any FONT tags within the specified selector.
This was working flawlessly until a few days ago. After trying a few variations 
I checked the raw source for the page and noticed that the Announcement 
description text is now wrapped in a script tag that post-renders the contents. 
See below.
<script>
if (typeof(_spDelayedDomUpdates) == "undefined")
        window._spDelayedDomUpdates = new Object();
        _spDelayedDomUpdates[ "{6314B9CE-FC4E-4E0F-94BB-736944ED311D}43" ]= 
"\u003cdiv 
class=ExternalClass179D44B10EC34F6FB81E875B190E0D37\u003e\r\n\[Announcement 
Goes Here]\u003c\u002fdiv\u003e";
</script>

I can find nothing on this function, nor how or why it is suddenly being 
called. Has anyone seen this before??
Instead of document.ready is there another event I can use that comes later??
Kind regards,

Paul Noone

---------------------------------------------------
Online Developer/SharePoint Administrator
Infrastructure Team, ICT
Catholic Education Office, Sydney
p: (02) 9568 8461
f: (02) 9568 8483
e: [email protected]<mailto:[email protected]>
w: http://www.ceosyd.catholic.edu.au/

_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to