Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 26th Nov 2013, 06:09 AM   #1
Super Warrior
War Room Member
 
MindReality's Avatar
 
Join Date: 2006
Location: Singapore
Posts: 325
Thanks: 56
Thanked 8 Times in 7 Posts
Default
How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

How do I prevent MS Frontpage from changing my code?

I pasted a tracking code from Bing Ads onto my page. But when I use MS Frontpage to edit it, the code changes.

Original code = <script id="mstag_tops" type="text/javascript" src="//flex.msn.com/mstag

Changed code = <script id="mstag_tops" type="text/javascript" src="file://flex.msn.com/mstag

MS Frontpage automatically adds the "file" word into code code. How can I prevent it from doing that?

This is the original tracking code I placed before the </body> tag of my page:

Code:
<script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script> <script id="mstag_tops" type="text/javascript" src="//flex.msn.com/mstag/site/1c68d240-7d70-4f9c-860f-43c891573b07/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"2646176",type:"1",actionid:"182453"})</script> <noscript> <iframe src="//flex.msn.com/mstag/tag/1c68d240-7d70-4f9c-860f-43c891573b07/analytics.html?dedup=1&domainId=2646176&type=1&actionid=182453" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript>
The word "file" is added when I use MS Frontpage to edit, which messes with the tracking:

Code:
<script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script> 
<script id="mstag_tops" type="text/javascript" src="file://flex.msn.com/mstag/site/1c68d240-7d70-4f9c-860f-43c891573b07/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"2646176",type:"1",actionid:"182453"})</script> <noscript> 
<iframe src="//flex.msn.com/mstag/tag/1c68d240-7d70-4f9c-860f-43c891573b07/analytics.html?dedup=1&domainId=2646176&type=1&actionid=182453" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe></noscript>
I am using MS Frontpage 2002 Service Pack 3

Discover The Greatest Secrets Of The Mind And Reality That Will Get You Anything You Desire, Almost Like Magic! Visit: http://www.MindReality.com
MindReality is offline  
Unread 26th Nov 2013, 06:31 AM   #2
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 39
Thanks: 5
Thanked 4 Times in 4 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Even in the early 2000's it was widely accepted that frontpage is a terrible solution for webpages because of the generated code.

Just look for a free html wyziwyg editor. there are tons of them that don't generate extra code in your behalf.

PS. many things have changed since 2002, like internet explorer is not longer the biggest browser and I wouldn't be suprised if frontpage has several IE specific implementations in it.

Be carefull when using frontpage, or better yet, don't use it at all!

hope this helps

neutralhatter is offline  
The Following User Says Thank You to neutralhatter For This Useful Post:
Unread 26th Nov 2013, 09:09 AM   #3
Advanced Warrior
War Room Member
 
Brandon Tanner's Avatar
 
Join Date: 2006
Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Agreed. Don't use Front Page -- it's awful. The code it spits out is very old and non-standards-compliant, which means that the webpages are not going to look/function correctly in many modern browsers.

If you already know how to code, then you can't go wrong with a good, basic HTML editor like Notepad++, Netbeans, Sublime Text, etc.

If you're set on using a WYSIWYG editor, then at least use one that outputs standards-compliant code, like a modern version of Dreamweaver. There are some free WYSIWYG editors out there too, but all the ones I've tried in the past weren't all that great. It's been a while since I've tried one though, so there may be a decent one out there now -- I don't know. You could try Google'ing "HTML5 WYSIWYG editor free", and see what pops up. Anything that supports HTML5 should be fairly decent.


Brandon Tanner is offline  
The Following User Says Thank You to Brandon Tanner For This Useful Post:
Unread 26th Nov 2013, 11:39 AM   #4
Super Warrior
War Room Member
 
MindReality's Avatar
 
Join Date: 2006
Location: Singapore
Posts: 325
Thanks: 56
Thanked 8 Times in 7 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Brandon Tanner View Post

Agreed. Don't use Front Page -- it's awful. The code it spits out is very old and non-standards-compliant, which means that the webpages are not going to look/function correctly in many modern browsers.

If you already know how to code, then you can't go wrong with a good, basic HTML editor like Notepad++, Netbeans, Sublime Text, etc.

If you're set on using a WYSIWYG editor, then at least use one that outputs standards-compliant code, like a modern version of Dreamweaver. There are some free WYSIWYG editors out there too, but all the ones I've tried in the past weren't all that great. It's been a while since I've tried one though, so there may be a decent one out there now -- I don't know. You could try Google'ing "HTML5 WYSIWYG editor free", and see what pops up. Anything that supports HTML5 should be fairly decent.
Which one do you use personally? I would like to use one that can view in normal mode, html source mode, and preview mode, just like MS Frontpage.

Discover The Greatest Secrets Of The Mind And Reality That Will Get You Anything You Desire, Almost Like Magic! Visit: http://www.MindReality.com
MindReality is offline  
Unread 26th Nov 2013, 12:31 PM   #5
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 39
Thanks: 5
Thanked 4 Times in 4 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

since you are in the microsoft atmosphere I would recommend WebMatrix

it's also from microsoft like frontpage, but it's updated and Free.

neutralhatter is offline  
Unread 26th Nov 2013, 12:57 PM   #6
HyperActive Warrior
 
bertyounger's Avatar
 
Join Date: 2010
Location: NY
Posts: 110
Thanks: 5
Thanked 10 Times in 9 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Wow, when I saw this post I thought I was in a time warp but now I remember how bad Front Page was ten years ago. Check out Dreamweaver, it's big improvement over FP.
bertyounger is offline  
Unread 26th Nov 2013, 02:10 PM   #7
Software Engineer
War Room Member
 
wayfarer's Avatar
 
Join Date: 2008
Location: Asheville, NC USA
Posts: 693
Thanks: 37
Thanked 112 Times in 100 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Haha, I had no idea Frontpage was even available any more! MS hasn't supported this product for years. Dreamweaver is fine, though a bit bloated in my opinion, but if you want a free product there are plenty of alternatives listed above, like Notepad++, or Netbeans.

If you REALLY need preview mode, Dreamweaver is probably best, but I warn you, relying on preview mode is generally bad, as it isn't guaranteed to match what is in a browser. Before you put things into production you need to preview in an actual browser, in fact several of them. Better yet, do your tweaks right in the browser, like with the Chrome Inspector, and paste your changes into your editor of choice. This is how most developers I know work, but it takes an essential understanding of the code to pull off.

I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs
wayfarer is offline  
Unread 26th Nov 2013, 03:42 PM   #8
Advanced Warrior
War Room Member
 
Brandon Tanner's Avatar
 
Join Date: 2006
Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Originally Posted by MindReality View Post

Which one do you use personally? I would like to use one that can view in normal mode, html source mode, and preview mode, just like MS Frontpage.
I normally use either Notepad++ or Netbeans, depending on the project. I don't much care for the WYSIWYG editors, for several reasons.


Brandon Tanner is offline  
Unread 29th Nov 2013, 06:15 PM   #9
VIP Warrior
War Room Member
 
Join Date: 2011
Posts: 1,632
Thanks: 1,211
Thanked 952 Times in 497 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Everyone loves to hate Microsoft software which is a boring and uninformed point of view.

Front page is fine (for basic uses) - I use it all the time for small things (like building tables quickly) and from about Office 2003 - XP) onwards it doesn't change your code at all and actually produces nice clean code and is a great way to learn html.

Just make sure that you're version of FrontPage is later than 2003 to avoid these kind of additions. I've been using it since about 2003 when they made changes to the way they write code and it's been fine since then.
Mr Bill is offline  
The Following User Says Thank You to Mr Bill For This Useful Post:
Unread 30th Nov 2013, 12:36 AM   #10
Super Warrior
War Room Member
 
MindReality's Avatar
 
Join Date: 2006
Location: Singapore
Posts: 325
Thanks: 56
Thanked 8 Times in 7 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Mr Bill View Post

Everyone loves to hate Microsoft software which is a boring and uninformed point of view.

Front page is fine (for basic uses) - I use it all the time for small things (like building tables quickly) and from about Office 2003 - XP) onwards it doesn't change your code at all and actually produces nice clean code and is a great way to learn html.

Just make sure that you're version of FrontPage is later than 2003 to avoid these kind of additions. I've been using it since about 2003 when they made changes to the way they write code and it's been fine since then.
Is there a Frontpage standalone edition instead of the full office pack?

Discover The Greatest Secrets Of The Mind And Reality That Will Get You Anything You Desire, Almost Like Magic! Visit: http://www.MindReality.com
MindReality is offline  
Unread 30th Nov 2013, 12:41 AM   #11
VIP Warrior
War Room Member
 
Join Date: 2011
Posts: 1,632
Thanks: 1,211
Thanked 952 Times in 497 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Yep.

frontpage 2003 on eBay
Mr Bill is offline  
The Following User Says Thank You to Mr Bill For This Useful Post:
Unread 11th Dec 2013, 08:32 PM   #12
Active Warrior
War Room Member
 
Join Date: 2013
Posts: 48
Thanks: 0
Thanked 9 Times in 9 Posts
Default
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Originally Posted by MindReality View Post

How do I prevent MS Frontpage from changing my code?

I pasted a tracking code from Bing Ads onto my page. But when I use MS Frontpage to edit it, the code changes.

Original code = <script id="mstag_tops" type="text/javascript" src="//flex.msn.com/mstag

Changed code = <script id="mstag_tops" type="text/javascript" src="file://flex.msn.com/mstag

MS Frontpage automatically adds the "file" word into code code. How can I prevent it from doing that?

This is the original tracking code I placed before the </body> tag of my page:

Code:
<script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script> <script id="mstag_tops" type="text/javascript" src="//flex.msn.com/mstag/site/1c68d240-7d70-4f9c-860f-43c891573b07/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"2646176",type:"1",actionid:"182453"})</script> <noscript> <iframe src="//flex.msn.com/mstag/tag/1c68d240-7d70-4f9c-860f-43c891573b07/analytics.html?dedup=1&domainId=2646176&type=1&actionid=182453" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript>
The word "file" is added when I use MS Frontpage to edit, which messes with the tracking:

Code:
<script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script> 
<script id="mstag_tops" type="text/javascript" src="file://flex.msn.com/mstag/site/1c68d240-7d70-4f9c-860f-43c891573b07/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"2646176",type:"1",actionid:"182453"})</script> <noscript> 
<iframe src="//flex.msn.com/mstag/tag/1c68d240-7d70-4f9c-860f-43c891573b07/analytics.html?dedup=1&domainId=2646176&type=1&actionid=182453" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe></noscript>
I am using MS Frontpage 2002 Service Pack 3
frontpage defaults to add file: on invalid urls and as the urls for the src attribute are not valid urls so I it adds file: as it think the url should be file try changing //flex.msn.com to http://flex.msn.com and it should not do that.
softwarewarden is offline  
Unread 12th Dec 2013, 12:56 AM   #13
IM Rocks!
War Room Member
 
shahriyar's Avatar
 
Join Date: 2010
Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
Arrow
Re: How do I prevent MS Frontpage from changing my code?
Share on: 
fb share twitter share gplus share more share

Originally Posted by MindReality View Post

I would like to use one that can view in normal mode, html source mode, and preview mode, just like MS Frontpage.
Dreamweaver can help you do that, you can view
- HTML Source Code Only
- Preview Mode Only
- or Both (Split screen)

I am using it for over 10 years. If you want a lighter alternative, you can try Notepad 2 or Notepad++, but it does not have preview mode.

shahriyar is offline  
Closed Thread


Bookmarks

Tags
changing, code, frontpage, prevent


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:36 PM.