I don't need it myself, but it's good to have the option of actual comments within the alternate content.
I'm going to do a bit more testing, but plan to put this variation to use in a project before the end of October. I'll post here if I notice any problems in the meantime. mab wrote: >> Are you basing this off of SwfObject 2.2 or an earlier version? I had to >> alter your code a bit to get it to work. >> > > Yes, I neglected to say I was working with 2.1 because of a version > incompatibility between 2.2 and the version of SWFAddress I was using. > Thanks for reworking this! > > BTW, I've noticed that with some browsers it's not enough to just > escape the end comment tags; they will still parse the commented start > comment tag. So if you want this functionality then you should also > escape the start comment tags. In my local version I added this to the > customization: > > value = value.replace ( new RegExp ( "__escaped_start_comment__", > "g" ), "<!--" ); > > You may ask why I bother - it's because my alternate content is > automatically generated and so out of my control whether or not an > HTML comment slips in. Obviously I still need to escape the comment > tags on the server side but I feel better doing that than removing the > comments altogether. But there's no real functionality being added. > > -Mike > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
