Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Frontpage 2003 appears to be manipulating code when publishing
Old 06-16-2005, 08:39 AM Frontpage 2003 appears to be manipulating code when publishing
Junior Talker

Posts: 1
Location: Blackpool, UK
Trades: 0
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 </body> 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 </body>
msquires is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-27-2005, 12:03 PM
CasaPages's Avatar
SillyPhilly

Posts: 758
Location: between here an somewhere else
Trades: 0
Hmm thats interesting....Not sure how to fix it but I do know that instead of using notpad and FTPing the files you can just log into your site VIA frontpage and edit the files live...I personally do all my work that way with Frontpage completely avoiding the use of the publish it now feature...
__________________
It Happens

Please login or register to view this content. Registration is FREE
CasaPages is offline
Reply With Quote
View Public Profile Visit CasaPages's homepage!
 
Old 06-27-2005, 02:24 PM
sarge299's Avatar
Experienced Talker

Posts: 46
Trades: 0
have you tried using this as a "include page".
__________________

Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE
, and
Please login or register to view this content. Registration is FREE
sarge299 is offline
Reply With Quote
View Public Profile Visit sarge299's homepage!
 
Reply     « Reply to Frontpage 2003 appears to be manipulating code when publishing
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.14780 seconds with 12 queries