468,740 Members | 2,146 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,740 developers. It's quick & easy.

What's all that stuff in the source code?


I've been asked to do a favor to a friend and fix the site at
http://www.cwrpartners.com/

I'm totally baffled by the amount of rubbish in the header section; is
that the kind of coding that Microsoft Publisher does in real life? I've
always written my code by hand with a text editor, so I have no idea
what's going on there.

(Not surprisingly, it is not valid HTML or CSS!)

Thanks,

Pierre
--
Pierre Jelenc | New on Home Office Records: Ethan Lipton
| www.homeofficerecords.com www.ethanlipton.com
The Gigometer | Pepper Of The Earth: the HO blog
www.gigometer.com | www.homeofficerecords.com/blog
Jul 20 '05 #1
7 1750

"Pierre Jelenc" <rc**@panix.com> wrote in message
news:cg**********@reader1.panix.com...

I've been asked to do a favor to a friend and fix the site at
http://www.cwrpartners.com/

I'm totally baffled by the amount of rubbish in the header section; is
that the kind of coding that Microsoft Publisher does in real life? I've
always written my code by hand with a text editor, so I have no idea
what's going on there.

(Not surprisingly, it is not valid HTML or CSS!)


All Microsoft Office products produce web pages like this. It's an elaborate
layout and data definition language. The proprietary attributes are ignored
by conforming browsers, and the non-HTML, non-CSS declarations and so on are
commented out so that non-IE browsers won't see them.

Jul 20 '05 #2
Harlan Messinger <h.*********@comcast.net> writes:

All Microsoft Office products produce web pages like this. It's an elaborate
layout and data definition language. The proprietary attributes are ignored
by conforming browsers, and the non-HTML, non-CSS declarations and so on are
commented out so that non-IE browsers won't see them.


Oy. Thanks; I think I'll beg off the project, I can feel too many
arguments coming!

Pierre
--
Pierre Jelenc | New on Home Office Records: Ethan Lipton
| www.homeofficerecords.com www.ethanlipton.com
The Gigometer | Pepper Of The Earth: the HO blog
www.gigometer.com | www.homeofficerecords.com/blog
Jul 20 '05 #3
> I think I'll beg off the project,

Just start from scratch? Re-write the thing, it wouldn't take too long, i'd
imagine.
Jul 20 '05 #4
Quoth the raven Pierre Jelenc:
I've been asked to do a favor to a friend and fix the site at
http://www.cwrpartners.com/
Yikes. 267KB for one page!
I'm totally baffled by the amount of rubbish in the header section; is
that the kind of coding that Microsoft Publisher does in real life? I've
always written my code by hand with a text editor, so I have no idea
what's going on there.
Feel free to snag this sample, which took me about 10 minutes of copy
and paste of your page's text.

http://home.rochester.rr.com/bshagnasty/cwr.html

Approximately 5KB for page and style sheet.
(Not surprisingly, it is not valid HTML or CSS!)


Not surprisingly, my sample is. <g> Play with the styles to taste.

--
-bts
-This space intentionally left blank.
Jul 20 '05 #5
Beauregard T. Shagnasty <a.*********@example.invalid> writes:

Feel free to snag this sample, which took me about 10 minutes of copy
and paste of your page's text.
http://home.rochester.rr.com/bshagnasty/cwr.html


Thanks! Oh so much more civilized...

Pierre
--
Pierre Jelenc | New on Home Office Records: Ethan Lipton
| www.homeofficerecords.com www.ethanlipton.com
The Gigometer | Pepper Of The Earth: the HO blog
www.gigometer.com | www.homeofficerecords.com/blog
Jul 20 '05 #6
this code you get when you convert a Word file to an html file (by doing
file -- save as web page..) it inserts all this rubbish code, which
only god knows what the purpose of it is.. open any Word file and do
file -- save as web page, then check out code for new html file, you
will see all this convoluted code in there.. I mean the stuff it puts
in is simply mind-boggling...

<b:OhMorphingContext priv="140e">290</b:OhMorphingContext>
<b:OhGallery priv="180e">259</b:OhGallery>
<b:OhFancyBorders priv="190e">261</b:OhFancyBorders>

anybody knows what all this is???

I strongly suggest -- as others have suggested here, and since you do
know hand-coding -- to recode the site from scratch.. you'll be doing
your friend a great favor... good luck... :) Frances
Pierre Jelenc wrote:
I've been asked to do a favor to a friend and fix the site at
http://www.cwrpartners.com/

I'm totally baffled by the amount of rubbish in the header section; is
that the kind of coding that Microsoft Publisher does in real life? I've
always written my code by hand with a text editor, so I have no idea
what's going on there.

(Not surprisingly, it is not valid HTML or CSS!)

Thanks,

Pierre


Jul 20 '05 #7
Quoth the raven Frances Del Rio:
this code you get when you convert a Word file to an html file (by
doing file -- save as web page..) it inserts all this rubbish
code, which only god knows what the purpose of it is..
Bill Gates knows. The purpose is so you can reimport it into the MS
product without losing formatting.

<snip>
I strongly suggest -- as others have suggested here, and since you
do know hand-coding -- to recode the site from scratch.. you'll be
doing your friend a great favor... good luck... :) Frances


Pierre seems happy with the 3.5KB sample rewrite I provided a couple
of days ago. <g>

--
-bts
-This space intentionally left blank.
Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Jason | last post: by
137 posts views Thread by Philippe C. Martin | last post: by
9 posts views Thread by Brett | last post: by
2 posts views Thread by Newbee Adam | last post: by
12 posts views Thread by Steven T. Hatton | last post: by
121 posts views Thread by typingcat | last post: by
43 posts views Thread by Mountain Bikn' Guy | last post: by
reply views Thread by andy6 via DotNetMonster.com | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.