Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Questions for FogCreek

When I copy and paste the HTML source of www.yourmortgagedoctor.com/ into a template, it takes two minutes to switch from Normal mode to HTML mode in the template editor.

When I copy and paste the HTML source of www.yourmortgagedoctor.com/ into a document, it takes less than a second to switch from Normal mode to HTML mode in the article editor but much of the page is gone.

My questions:
1) Why does it take so long to switch between modes in the template editor?  This isn't a large page.  Isn't HTMLTidy C code which should be speedy?

2) Why are I am getting different results in the article editor as opposed to the template editor, don't they use the same code?  Shouldn't they use the same code?

David Burch
Friday, July 30, 2004

FYI:  I am running CityDesk 2.0 on Windows XP installed on a Pentium 4 with a 2GHz CPU and 1GM RAM.

David Burch
Friday, July 30, 2004

I'm not the authority on this but:

If the HTLM is too complicated, CityDesk will choke on it and bomb when you switch views.  I wish I knew the specific things that make the swithch slow in some cases and I hope the Fog folks are going to make it better.

What I have done is to remove stuff from the HTML until the switch is bearable. If I really needed that stuff, I'll put it in a vairable and put the variable into the template.

I think most folks simply avoid normal view for complicated HTML. They might also use "edit with" to edit the HTML in another program.

Finally if you copy a whole page of HTML into an article, I think CityDesk will remove everything outside the body tags. That might remove some of the offending HTML.

tk
Friday, July 30, 2004

The reason why it is slow, is because you are pasting a whole bunch of text such as


some html
some stuff
<img src="http://foo.com/image.jpg">
blah

So when you switch to Normal mode it has to download all the images to show you them in the viewer.  You should use the Import web page feature, instead of copy and pasting.

Your img tags should be pointing to Magic Names, or local files in your citydesk site.

Also, you can't put HTML HEAD and BODY tags in articles... This are only for templates.  I think you are pasting the entire page of your site into an article, but you should only be pasting the part inside the BODY tag if its going into an article.

Michael H. Pryor
Fog Creek Software
Friday, July 30, 2004

Okay, that answered my first question.  Why does the article editor act differently than the template editor.  They are doing the same thing aren't they?  Shouldn't they use the same code?

David Burch
Saturday, July 31, 2004

Okay, I guess the HTML tags don't belong in articles addresses the second part, but shouldn't articles be having the same problem with the pasted <img> tags to external links if that is the problem?

David Burch
Saturday, July 31, 2004

Probably not, because when CD wraps what you wrote with its own HTML HEAD BODY tags, and shoves that into the Microsoft DHTML Editor DOM, MS DOM says, oh, I see two bodies.  Here.. let me throw away the other body and just use the empty one.  So that happens before the imgs try to load, which means, no slowness (and no body.)

Michael H. Pryor
Fog Creek Software
Saturday, July 31, 2004

Gotcha.  Thanks.

David Burch
Saturday, July 31, 2004

Similar issue - and very annoying.

Imported a site recently - ~20 pages and then copied relevant part from HTML files into newly set up articles.

All fine, except just closing the HTML window took an age. I assume it's validating or whatever it does but would it not be smarter if it only did that if "Save changes: Yes" selected. As Joel has pointed out, usability is about removing little annoyances. When you know you're going to have a further 19 times a minute's wait for no value - that can be more than a little annoying!

Mike Osborne
Saturday, July 31, 2004

*  Recent Topics

*  Fog Creek Home