MovableType is Killing My ScriptsQuestion asked on January 22, 2007 11:16 PM :: Permalink :: Comments (0) :: TrackBacks (1)Setting the Text Formatting option to Convert Line Breaks is the default setting for MovableType and, most likely, all other blog software also. It allows the author to ignore the needed HTML code to separate paragraphs. As you have discovered, sometimes you don't want the blogging software to automatically add the HTML code. It would seem that setting the Text Formatting option to None would do the trick, but it isn't quite that easy. Whether it is a bug or a feature, MovableType will look at the contents of your entry, especially any HTML tags and use that as the deciding factor as to whether or not to convert line breaks. MovableType will stop converting line breaks when it encounters any of the following HTML tags:
This means you could wrap your JavaScript code inside of a <div> or <center> element, but you must be careful. If you have one blank line, MovableType will start converting line breaks again. Also, be sure you put all of the JavaScript code inside of element, including the JavaScript header, as shown below:
<center>
<script language="javascript" type="text/javascript"> <!-- function myFunction() { myCode } // --> </script> </center> CategoriesInternet/Web Services
1 TrackBacksListed below are links to blogs that reference this entry: MovableType is Killing My Scripts. TrackBack URL for this entry: http://www.askwestley.com/cgi-sys/cgiwrap/wannis/managed-mt/mt-tb.cgi/71
» AdultFriendFinder from AdultFriendFinder
I really enjoyed your topic and plan to share your blog with my friends! thanks for taking the time out to write your blog! If you want to learn how to get 100% free access to Adult Friend Finder check out my blog! Read More |
|
Leave a comment