473,379 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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 1945

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Jason | last post by:
Hey, I'm an experience programmer but new to Python. I'm doing a simple implementation of a field morphing techinique due to Beier and Neely (1992) and I have the simple case working in Python...
137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
9
by: Brett | last post by:
I'm developing with CF 5 and SQL Server 2000. I think they are both great products. The major draw is their cost. I don't develop stand alone products because anyone that wants to purchase them...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
2
by: Newbee Adam | last post by:
what exactly is the source safe used for -- Adam S
12
by: Steven T. Hatton | last post by:
This is something I've been looking at because it is central to a currently broken part of the KDevelop new application wizard. I'm not complaining about it being broken, It's a CVS images. ...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
43
by: Mountain Bikn' Guy | last post by:
I have a situation where an app writes data of various types (primitives and objects) into a single dimensional array of objects. (This array eventually becomes a row in a data table, but that's...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
0
by: andy6 via DotNetMonster.com | last post by:
I want to display a webpage. The user selects a value from a drop down. This value is put into a custom header and added to the http pipeline. Then the page is redirected in the EndRequest method...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.