?
Solved

FrontPage strips tags...

Posted on 2005-04-12
10
Medium Priority
?
242 Views
Last Modified: 2013-12-24
I have the following on a page.
<li id="nav1"><a href="#">text</a></li>

When I include that page in another using the Include Page Component, the html now looks like this when I view the source in a browser:

<li><a href="#">text</a></li>

For some reason, FrontPage is removing the id's from the <li> tag when it's called from an include file. Have you ever heard of FP removing code like that?
I am at a complete loss here :-(

HELP!!!

Thanks,
Sean
0
Comment
Question by:seanpowell
  • 6
  • 4
10 Comments
 
LVL 14

Expert Comment

by:hhammash
ID: 13769828
Hi,

By having an "id" it means that you are using CSS.  Where is the CSS code?  Is it in a file (external) or in the page itself?

hhammash
0
 
LVL 14

Expert Comment

by:hhammash
ID: 13769965
Hi Sean,

If you use the Insert > Web Component > Include Content > Page and select a page it create a WebBot.  WebBots do not appear in the browsers view source.  Frontpage is not stripping the code for you, it is hiding it under the webbot.  If you use ASP include file, and view the source you will see the code without stripping when you view the source in the browser.

When I use ASP include file, I get the following when I view the source in the browser:

<style type="text/css">
#nav { text-decoration: none; color: #FF0066 }
</style>

<body>
<ul id=nav>
<li><a href="#">Hi</a></li>
<li>Try</li>
</ul>

When I use Insert > Web Component ...etc,  I get:
<!--webbot bot="Include" U-Include="LI.htm" TAG="BODY" startspan -->
<ul id=nav>
<li><a href="#">Hi</a></li>
<li>Try</li>
</ul>
<!--webbot bot="Include" i-checksum="18299" endspan -->

The stripped code is actually inside the Webbot bot.

hhammash

0
 
LVL 31

Author Comment

by:seanpowell
ID: 13770527
Hi hhammash - thanks for your reply :-)

Your code is slightly different - it's not <ul id="nav"> but <li id="nav"> that's the problem.

Try this:

Create li.htm

<ul>
    <li id="nav"><a href="#">text</a></li>
</ul>

Insert it with the include page component into test.htm
View test.htm in the browser and then view the source.

Can you let me kow what you see?

Thanks,
Sean
0
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
LVL 14

Expert Comment

by:hhammash
ID: 13773976
Hi Sean,

This is what I get.

<!--webbot bot="Include" U-Include="li.htm" TAG="BODY" startspan -->
<ul>
      <li><a href="#">Hi</a></li>
      <li>Try</li>
</ul>

<body>

<!--webbot bot="Include" i-checksum="6133" endspan --></html>


You do not see the part because it is included in the webbot.  Webbot page shows you the results at hand.

Now if I include using ASP and name the page as test.asp,  I get:

<style type="text/css">
#nav { text-decoration: none; color: #FF0066 }
</style>
</head>

<body>
<ul>
      <li id="nav"><a href="#">Hi</a></li>
      <li id="nav">Try</li>
</ul>

This is the difference.  Webbot hides the code.

hhammash

0
 
LVL 31

Author Comment

by:seanpowell
ID: 13774205
I think you may be misunderstanding me...

I know that when you view the page "In FrontPage", you only see the webbot code.
When you view it in the browser, you see the "generated" code.

If you look at the generated code you posted above:
<ul>
     <li><a href="#">Hi</a></li>
     <li>Try</li>
</ul>

You'll see that id="nav" has been removed from the <li> tag - and that's what I'm trying to figure out :-)

Sean
0
 
LVL 14

Expert Comment

by:hhammash
ID: 13776681
Hi Sean,

I understand,  I know that the id="nav" is removed when you select View > Source from the browser.  I am not viewing the page in Frontpage I am viewing it in the browser.

But I noticed something,  I don't know if it is occuring with you too.  The effect of the id="nav" is not working. I put the font in red,  when I used Insert > Web Component,  the font is displayed in black because the id="nav" is disregarded somehow.  I tried an example using ASP include and I got the id and the effect of the id.  

Maybe this is the case with you too.  You have coded a certain effect in id="nav",  but when you include the page the effect is not as you programmed because id="nav" is stripped.


hhammash
0
 
LVL 31

Author Comment

by:seanpowell
ID: 13776731
>>I don't know if it is occuring with you too.

Absolutely - the problem is that FP is removing id="nav" and so the CSS is not being applied when the page renders.

Do you have any idea why FP is doing that? Is it because the CSS engine it has thinks an id tag in an li tag is not correct?

Thanks,
Sean
0
 
LVL 14

Accepted Solution

by:
hhammash earned 2000 total points
ID: 13776958
Hi Sean,

This might answer the question.

http://support.microsoft.com/kb/328189

hhammash
0
 
LVL 31

Author Comment

by:seanpowell
ID: 13777029
That's the ticket - I tried searching but didn't see that one...
I love the software, but it really drives me nuts sometimes :-(

Thanks for all your help hhammash,
Sean
0
 
LVL 14

Expert Comment

by:hhammash
ID: 13777091
Hi Sean,

You are most welcome.

I love the software too,  but Microsoft have to improve it to fit all levels of developers.

hhammash
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question