Frontpage 2003 appears to be manipulating code when publishing
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 posted this at 20:12 — 17th June 2005.
He has: 2,667 posts
Joined: Dec 2004
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...
Tim
http://www.tandswebdesign.com
Roo posted this at 21:09 — 17th June 2005.
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.
msquires posted this at 15:25 — 23rd June 2005.
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 posted this at 18:11 — 23rd June 2005.
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
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 posted this at 08:21 — 24th June 2005.
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 posted this at 09:38 — 24th June 2005.
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
...I think...
JeevesBond posted this at 16:10 — 24th June 2005.
He has: 3,956 posts
Joined: Jun 2002
lol, heard it all before!
demonhale posted this at 03:06 — 25th June 2005.
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...
steve40 posted this at 21:13 — 26th June 2005.
He has: 490 posts
Joined: May 2005
Dump it, use notepad or something else.
JeevesBond posted this at 12:03 — 27th June 2005.
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
demonhale posted this at 12:59 — 27th June 2005.
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!
JeevesBond posted this at 11:47 — 28th June 2005.
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 )
a Padded Cell our articles site!
timjpriebe posted this at 12:23 — 28th June 2005.
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.
Tim
http://www.tandswebdesign.com
steve40 posted this at 12:34 — 28th June 2005.
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. 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.
chrishirst posted this at 13:44 — 28th June 2005.
He has: 379 posts
Joined: Apr 2005
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.
Chris
Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples
steve40 posted this at 15:16 — 28th June 2005.
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!!.
CptAwesome posted this at 04:36 — 29th June 2005.
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.
hypergecko posted this at 03:54 — 30th September 2005.
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/
technostick posted this at 17:31 — 30th September 2005.
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.