Frontpage 2003 appears to be manipulating code when publishing

They have: 2 posts

Joined: Jun 2005

I have been working on a new website http://www.crfc.net/new_site it uses a javascript to produce the menu that sits in the left hand shared border. The code that creates and runs the menu is
<script>
var menuTest1 = new CMenu(MenuDef, 'menuTest1');
menuTest1.create();
menuTest1.run();
</script>

when I added this to my HTML the menu was displayed but only after appearing in the top left hand corner of the screen and then dropping down in to the correct position. I raised this issue with the writers and was told that I needed to split the code like such

<script>
var menuTest1 = new CMenu(MenuDef, 'menuTest1');
menuTest1.create();
</script>

and then insert
<script>
menuTest1.run();
</script>
immediately before the tag

I have made this change and now when the website is run the menu is in the correct position from the start.
The problem I am now having is when I update any page in MS Frontpage 2003 and publish my pages to the web it is changing the position of the .run part of the script to be higher up the html and this is causing the menu drop problem to reappear, to get round this problem I am having to edit the html in notepad or similar and FTP the pages to the site, this again fixes the problem until I use publish function and it puts me back to square one.

Does anyone know how to get round this "feature" of frontpage.

The menu drop problem is illustrated if you go to the website http://www.crfc.net/new_site and then select 'history of the club' from the menu. if you view the source you will see where FP has moved the .run to, before it was published it was just before the

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

msquires wrote: Does anyone know how to get round this "feature" of frontpage.

Uninstall it.

Seriously, I use FP 2002, and it's terrible about doing things like that. I've never found any way around it but switching to an HTML/CSS combo and using a text editor. It can be a huge pain if your only option is FP.

Not what you wanted to hear, I'm sure...

Roo's picture

She has: 840 posts

Joined: Apr 1999

FP is notorious for inserting bad and bloated code. If you *must* use this awful beast then do like Tim says and run a text editor alongside it.

They have: 2 posts

Joined: Jun 2005

I have spoken to Microsoft about this, and although the chap was helpful he couldn't suggest how to fix it, only a work around and the fact it is javascript gives MS a way out of sorting it. If I use the script on the index page and don't use shared borders it works fine, as soon as I use shared borders frontpage starts playing "musical code". I have tried getting to grips with dreamweaver but it isn't as easy to get my head round as FP.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

The only thing I can suggest is uninstalling it, I believe the editor of choice at the moment is Dreamweaver. The joy of Dreamweaver is that it'll do as much as you want, but swiftly move out of your way when you want to code something yourself.

If you need free then go for something like HTML Kit, a very good little text-editor with plenty of plugins for all your (X)HTML needs Smiling

There are of course lots of different choices out there, I just hope your not limited to Frontpage.

a Padded Cell our articles site!

demonhale's picture

He has: 3,278 posts

Joined: May 2005

FP usually adjusts code for itself; it does not consider other coding process; that is why, different code/scripts is edited or appended by FP...

You could search for other Web development programs made with the same usability as FP in mind, only limited by support, but works quite well and not alter your code....

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

You might want to give nvu a try. It is "made by" the same people who brought us Firefox Smiling

...I think...

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Quote: Now anyone can create web pages and manage a website with no technical expertise or knowledge of HTML.

lol, heard it all before! Laughing out loud

demonhale's picture

He has: 3,278 posts

Joined: May 2005

I think you still need technical expertise; it just make it a little bit easier???
I heard or read a new one "bluevoda"; "blue voda", something like that...

He has: 490 posts

Joined: May 2005

Dump it, use notepad or something else.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Hehehe, notepad is hardcore! Break the poor guy in slowly, at least something like Dreamweaver formats your code with pretty colours Smiling

demonhale's picture

He has: 3,278 posts

Joined: May 2005

I have been using notepad eversince; i teach html by notepad too...
Html-Kit would be great for a beginner though...
Dreamweaver for those over-eager to start making pages...
FP... Sucks
I even have one friend using MS word; the Other Power Point... Dang! Sticking out tongue

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Word/Powerpoint... I've seen friends using these Apps before for web sites and was unashamedly rude to them about it (bless them, they did look a bit hurt). There is just no need for that kind of behaviour though!!

(Probably too passionate, but just can't help it Smiling )

a Padded Cell our articles site!

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Since I'm the one who originally suggested you dump FP, I thought I'd jump back in with my plain text editor of choice, just in case you decide to go that route:

http://www.scintilla.org/SciTE.html

Scite is a great little editor. It can be used with minimal customization if you don't want to mess with its plain text config files. If you decide to learn how to configure it, however, it is well worth the effort. It can be set up to "know" any programming language, which is very useful.

Of course, it comes preconfigured with many standards. I believe the distro comes with the following already set up: C#, C++, Perl, PHP, Javascript, CSS, HTML, SQL, XML, VB. I know there's many more, I just personally removed the ones I didn't think I would be using all that often.

He has: 490 posts

Joined: May 2005

I've looked at dreamweaver, and it is so full of junk that it is intimidating. Note pad would be easier. Smiling I use coffee cup, I only use it like note pad though, I like having the lines numbered, makes editing a lot easier. Also the split browser view might be handy for some.

It will start you out with the basic page tags, and has some scripts if you want to use them. I've been using it for years now, and like the do it yourself simplicity of CC. While keeping things orderly. I think they have a shareware version now for download?. I believe CC is probably one of the best for a beginner, has enough pre-built stuff, plus the freedom to be creative, and do it all yourself. Without being a hard to learn editor; it's not drop and drag though. Smiling

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

Quote: I use coffee cup, I only use it like note pad though, I like having the lines numbered, makes editing a lot easier

Funnily enough that's exactly how I use DW. DW is simple. If you never bother with the WYSIWYG stuff and the auto generate gibberish on demand "wizards", and simply use it as a code editor with good syntax colouring and very useful site and project views it works perfectly.

Now if only Edit+ had the site management features I'd never open DW again. Laughing out loud

Chris

Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples

He has: 490 posts

Joined: May 2005

I just downloaded a site mapper from "free site mapper" . This thing does not come with any documentary, is anybody familiar with it. Or have any suggestions on using it, as it might blow my pc up!. Wouldnt be the first time!!. Laughing out loud

CptAwesome's picture

He has: 370 posts

Joined: Dec 2004

I use Notepad++ (from sourceforge) it's pretty awesome, but I mostly use it for sorting out if statements in PHP.

I would suggest trying to put the javascript in the option.

They have: 6 posts

Joined: Sep 2005

Hey msquires, I use FP 03 and had the same issue and how I fixed it was to insert a single row table and in the left border and put the FP generated buttons in the table. Look at this and maybe it will help. http://www.sitemanagementservices.com/

They have: 27 posts

Joined: Sep 2005

Yeah... FP is pretty bad.

I would also suggest using a basic text editor, such as Notepad or TextEdit (the Mac program), as you do seem to have quite a lot of knowledge of coding - more than I do, at least. I only do HTML/CSS, and find TextEdit to be just right for what I do...

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.