navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

RE: include content and charset problem

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Expression Web Help >> RE: include content and charset problem
Page: <<   < prev  1 2 [3]
 
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: include content and charset problem - 10/9/2007 8:35:10   

quote:

ORIGINAL: torobravo
Your idea of asp script that would convert all include FP bots into SSI seems very interesting at the first glance. The problem is that I am unfortunately totally unable to write such a script and I have no idea of the problems it could eventually generate. If you have a good programer at hand...

Please let us know if any solution shows up !


Reminded of Tina's deaf old ladies, it seems the deaf old ladies are a little short-sighted as well! The answer's staring you in the face - you're making this needlessly complicated!

1 - Use find and replace or whatever FP calls it to replace all your FP includes with SSIs

2 - Install a web server on your computer. It really is as simple as installing any other software on your computer. Check where the www root for your new server is within your file structure and put your website files there. Voila! You can now 'see' those all important includes and everything else in your browser without even being connected to the internet, let alone ftp-ing any files onto your hosting server. As Donkey said earlier, that also gets round the problem of finding that the site that looks right in FP's slightly wrong way, works properly in the real world.


_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to torobravo)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: include content and charset problem - 10/9/2007 13:22:19   
quote:

ORIGINAL: torobravo


Your idea of asp script that would convert all include FP bots into SSI seems very interesting at the first glance. The problem is that I am unfortunately totally unable to write such a script and I have no idea of the problems it could eventually generate. If you have a good programer at hand...


(Ignores the womble :))
torobravo amigo, this script shouldn't be too difficult for an intermediate ASP person. Using FileSystemObject in ASP, it can be accomplished without much agony. :)

Couple of questions:

1) Do you use nested includes, meaning a FP Include inside another FP include.

2) Do you still use FP, and if yes do you work live on the server? (Best not to)

3) Do you use FP include in the Head tag?

I am doing this just for kick's sake, one of those stuffs that the majority is not interested but the minority might( only 2 of us?:))

Alternatively, I am considering working on a FP client macro that will show an .inc file in the Design pane. Its just the other way round. I learnt a lot from the Spooky Diet macro that Stephen Travis wrote,which he allowed me to introduce into OutFront.

So again, it is doable. Stay tuned!






_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to torobravo)
Donkey

 

Posts: 3917
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: online

 
RE: include content and charset problem - 10/9/2007 14:00:39   
quote:

(Ignores the womble :))
Do so at your peril...

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to William Lee)
coreybryant

 

Posts: 2492
Joined: 3/17/2002
From: Castle Rock CO USA
Status: offline

 
RE: include content and charset problem - 10/9/2007 15:56:32   

quote:

ORIGINAL: tinaalice

From reading through the thread it sounds like a bunch of deaf old ladies .. none of you are reading what the the other wrote... hence the SSI mistake and more.
That;'s why I only try to respond to the OP because of my memory problems.

Unfortunately when my question does not get answered, it just seems that more problems are created. I have two servers that never have had FPSE installed on them and I actually did Working with Frontpage Includes the other day but don't remember it.

I just did Frontpage Includes but I still prefer SSI over that.

If the OP would provide the source code, maybe we could go over it, but after another review, I could not find it. And I think I got this thread mixed up with another post on includes because I could have sworn the source code was provided.

I'll be the first to admit I might have made a mistake because my memory is failing unfortunately but I am trying my best to still help people before I have to be completely bed-ridden

_____________________________

Corey R. Bryant
Merchant Accounts | Toll Free Numbers | Expression Web Blog

(in reply to tinaalice)
torobravo

 

Posts: 26
Joined: 9/25/2007
Status: offline

 
RE: include content and charset problem - 10/9/2007 17:18:59   

quote:

ORIGINAL: William Lee

quote:

1) Do you use nested includes, meaning a FP Include inside another FP include.

2) Do you still use FP, and if yes do you work live on the server? (Best not to)

3) Do you use FP include in the Head tag?


I don't understand why some people want to force everybody on earth to forget the way includes worked in Frontpage with fpse. Perhaps they think everybody should do everything like they do.

William Lee, keep up the good work ! Here are my responses to your questions:

1). No I don't use nested includes.
2). Despite the fact that I am still using FP on the production server where the FPSE are still activated, my goal is to get rid of it and switch definitely to EW which provides better support for other features like CSS, and code compliance. I am planning to develop the new FPSE-less website within EW from the extant website files. And no I never work live on the server (not that I have any idea on the bads of this practice but it has no interest for me).
3). No I don't use include in the head tag.

Let me know if you have any other question. I'd be really happy to help.

(in reply to William Lee)
torobravo

 

Posts: 26
Joined: 9/25/2007
Status: offline

 
RE: include content and charset problem - 10/9/2007 17:29:57   

quote:

ORIGINAL: coreybryant


quote:

I'll be the first to admit I might have made a mistake because my memory is failing unfortunately but I am trying my best to still help people before I have to be completely bed-ridden


Don't worry coreybryant, you are not alone with your memory problem: William Lee is as stubborn as a mule and I am a little short-sighted... we make the perfect team for a problem no one seems to care about except us (which is basically enough to keep going, isn't it?).

(in reply to coreybryant)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: include content and charset problem - 10/9/2007 21:13:36   

quote:

ORIGINAL: Donkey

quote:

(Ignores the womble :))
Do so at your peril...


Warning noted. :)
I know you folks. On the surface, you appear to be discouraging because you wanted to be sure we know what we are doing.

_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to Donkey)
jurgen

 

Posts: 385
Joined: 1/9/2007
From: Castle Rock, Colorado
Status: offline

 
RE: include content and charset problem - 10/9/2007 22:18:30   
quote:

I don't understand why some people want to force everybody on earth to forget the way includes worked in Frontpage with fpse. Perhaps they think everybody should do everything like they do.


Nobody is forcing you to anything at all. Just helping to get you going. You can do whatever your heart desires. It's just a matter of fact that SSI is sooooooo much simpler than any FP includes in the first place. The time you guys used talking about this I could have change 100+ pages to SSI already.

You go on changing to EW and eventually you will find out how it is done the easy way.

PS: And I don't understand why some people are holding on to FP no matter what. MS has let you down guys, it's time to go on and do it the right way. And no offence to anybody...... :)

_____________________________

Wedding Dresses Colorado

(in reply to torobravo)
Donkey

 

Posts: 3917
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: online

 
RE: include content and charset problem - 10/10/2007 6:59:09   
William, Listen to Jurgen he is spot on. You are solving a problem that doen't exist.

FP preview is no faster than having an Fx window open with the page in it. Then you see the real page not the FP slightly wrong page.


Preview Bad.


Browser Good.

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to jurgen)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: include content and charset problem - 10/10/2007 7:11:24   
quote:

ORIGINAL: Donkey


FP preview is no faster than having an Fx window open with the page in it. Then you see the real page not the FP slightly wrong page.


Preview Bad.


Browser Good.


No, no. It is not the Preview that matters so much. I don't use the Preview pane. For Preview, I go to File>Preview in Browser and select Firefox and screen resolutions.

Its the "Normal" design pane, the WYSIWYG where the FP Include page will show up. SSI simply won't show in there.

It is important/useful for me when I work with graphics layout, the ability to see ALL.

_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to Donkey)
Donkey

 

Posts: 3917
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: online

 
RE: include content and charset problem - 10/10/2007 8:22:50   
You could still just switch to the browser every time you make a change to see what you've done.

Personally I find working in WSIWG view too limiting. IMHO if you design in code view you learn more quickly.

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to William Lee)
caz

 

Posts: 3586
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: include content and charset problem - 10/10/2007 9:07:51   

quote:

ORIGINAL: William Lee

Its the "Normal" design pane, the WYSIWYG where the FP Include page will show up.


William if you use the Design View it is even more "off kilter" than any thing else. Many people drag and drop when designing there - have you ever looked at the resulting code? If you carry on like that, especially when using doctypes and css, you will be tearing your hair out because your pages won't work cross browser and are not easily read by screen readers.

(Apologies if you don't work like this, but it sounded as if you do.)

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to William Lee)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: include content and charset problem - 10/10/2007 11:51:52   

quote:

ORIGINAL: Donkey

Personally I find working in WSIWG view too limiting. IMHO if you design in code view you learn more quickly.


I use "Normal" ( aka WYSIWYG) view for layout of sliced images in tables. For coding, esp ASP, I can't do it in the WYSIWYG. Its done in the HTML pane.

_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to Donkey)
caz

 

Posts: 3586
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: include content and charset problem - 10/10/2007 13:07:50   
I say again: "have you ever looked at the resulting code? " :)

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to William Lee)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: include content and charset problem - 10/10/2007 13:10:23   
quote:

ORIGINAL: caz


William if you use the Design View it is even more "off kilter" than any thing else. Many people drag and

drop when designing there - have you ever looked at the resulting code?


I did a research on the word "off kilter" just to make sure it is not what I think a Scotsman walking around with his kilt dropping off.

Yes I use Design view to drag and drop sliced images in table cells. I am a Table person.
How differently will the code be if I were to drag/drop images as opposed to handwritten?

quote:


If you carry on like that, especially when using doctypes and css, you will be tearing your hair out

because your pages won't work cross browser and are not easily read by screen readers.


Doctypes, css and screen reader, good point here. Thanks for alerting me to this. I am a Table person but I will keep this in mind in the macro I am working on though I don't see it will adversely affect any of these.


quote:

(Apologies if you don't work like this, but it sounded as if you do.)


No apologies needed:) I work like this and there is a good reason. I come from a background of VB6 programming. I develop desktop apps and automate Office tasks. For some of the things I did, I used Visual Studio 6.0 as the Rapid Applications Development(RAD) tool. I work in what they call the IDE, Integrated Development Environment. There, I simply drag-and-stick-it-there. Things that got dragged are buttons, images, grids etc. The habits simply got carried over. It is not necessary bad though I respect your opinion on it.

Donkey is not for the Preview, you are not for the Design(Normal), so we are left only with the HTML pane.

:)

I do agree HTML view is the best place where we tweaked things to satisfaction. But FP provides those 3 views for good purposes, its up to the user to make full use of them.

Incidentally, does EW have these panes as well?

_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to caz)
caz

 

Posts: 3586
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: include content and charset problem - 10/10/2007 13:17:53   
quote:

I am a Table person


This explains a lot. :)

quote:

Doctypes, css and screen reader, good point here. Thanks for alerting me to this. I am a Table person but I will keep this in mind in the macro I am working on though I don't see it will adversely affect any of these.


It will with designs that don't use tables for layout but use css and semantic code, which is currently the way the web is going.

< Message edited by caz -- 10/10/2007 13:23:14 >


_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to William Lee)
Donkey

 

Posts: 3917
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: online

 
RE: include content and charset problem - 10/10/2007 13:54:04   
quote:

layout of sliced images in tables
I thought sliced images went out of favour years ago.

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to William Lee)
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: include content and charset problem - 10/10/2007 15:01:46   
They did. Some people just haven't moved into the 21st century yet and realised there's more to web design than making things look nice - like making sure their "masterpiece" is accessible to those with neither images or javascript enabled and ensuring their creation bears some sort of a relationship however tenuous with semantics.

Sliced and diced images aren't much use to someone using a screenreader for example, or someone on a slow dial-up connection. I can see why it would be rather essential to see the aforementioned images though when designing such a site, though the easy way of installing a local web server and using SSIs would still be preferable to reinventing the wheel when there's absolutely nothing wrong with the round shape already in existence IMHO.

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to Donkey)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: include content and charset problem - 10/11/2007 3:30:07   
quote:

ORIGINAL: William Lee


I have thought out this idea, can you follow along and see if it is feasible.

It goes like this:

I will have one ASP script at the server. When I run this script, it will remove in ALL selected  published pages anything between
<!--Webbot Bot="Include" U-Include="/include_page1.htm  ..... startspan -->

and

<!--webbot bot="Include" .... endspan -->

Then in their place, response.write the SSI equivalent, eg
<!--#Include virtual="include_page1.htm"-->

Looks like this script neededs also to strip away the the <html><head><body> tags leaving only the body content in the include_page1.htm

That is the work to be carried out at the server - by running ONE script.



I threw this out of the window. Since I do reverse publish, it'll screw things up.

Instead, concentrating on a FP macro that will show the content of SSI in the "Normal" view.

So one needs only to upload the changed include page.


I'll call it SSI Viewer for the time being.

OK, talk is cheap.


If you have something that can help make my task easier to produce a better macro or you are a FP Include user and interested to know the outcome of this SSI Viewer , feel free to mail me.
Edit: My email is as below:







Thumbnail Image
:)

Attachment (1)

< Message edited by William Lee -- 10/12/2007 5:24:08 >


_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to William Lee)
Donkey

 

Posts: 3917
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: online

 
RE: include content and charset problem - 10/11/2007 4:16:30   
quote:

So one needs only to upload the changed include page.
With server side includes that is all you have to do anyway?

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to William Lee)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: include content and charset problem - 10/11/2007 4:33:10   
quote:

ORIGINAL: Donkey

quote:

So one needs only to upload the changed include page.
With server side includes that is all you have to do anyway?


Yessir! FP Page Include is good for me as long as FPSE is installed AND clients are using FP to maintain the website.

I need to move to SSI but if my clients do not see the included contents in Normal view, chances are they'll delete the includes by accident when they edit/update the calling pages.

I need a way to SEE the content of the SSI in the "Normal" pane of FP.

< Message edited by William Lee -- 10/13/2007 0:14:17 >


_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to Donkey)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: include content and charset problem - 10/11/2007 22:18:36   
quote:

ORIGINAL: Donkey

quote:

layout of sliced images in tables
I thought sliced images went out of favour years ago.


Sorry cousin, I overlooked your post and don't mean to ignore you:)
Can't help asking how are things done differently in CSS if you have a large image, don't you cut it up into smaller ones and postion them? I do see, in general, CSS sites have much more white spaces, less graphics ... is this for accessibility issue?


I swear I never ignored womble too :) It is just impossible, to do that :)




_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to Donkey)
jurgen

 

Posts: 385
Joined: 1/9/2007
From: Castle Rock, Colorado
Status: offline

 
RE: include content and charset problem - 10/11/2007 22:40:43   
Nope.... you just make the apropriate div with css and asign a background image to it. No need to slice anything..... IMHO.... :)

PS: looks like torobravo left us.....

PPS: and than you take that div and put it in an SSI..... :):):):):)

_____________________________

Wedding Dresses Colorado

(in reply to William Lee)
torobravo

 

Posts: 26
Joined: 9/25/2007
Status: offline

 
RE: include content and charset problem - 10/12/2007 4:28:22   
I'm still there folks... and reading with much interest what you experts of the 21st century have to say...
CSS is very powerful and one of the interesting points in switching from Frontpage to Expression Web is to have the oportunity to learn more about it and use it more extensively. So all right, this is the good direction to go but please let the web be a free space and let the older websites make the transition at their convenience. After all, what makes a website successful is certainly not the expert's judgement but its visitors.

(in reply to jurgen)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: include content and charset problem - 10/13/2007 14:52:41   
Here is some progress I made.

I have come up with a Proof of Concept for the SSI Viewer.


This is a workable thing, and you can use it right away.I have included some sample files here and you can download to test.


The Proof of Concept is as follows:

For each calling page, there are 2 sets of include code, both calling the same include as below:
<!--#include file="ssi.shtml"-->
<!--webbot bot="Include" U-Include="ssi.shtml" TAG="BODY" -->


ssi.shtml is really just an ordinary SSI file. Since there is no preventing anyone from inserting it as a FP Include, FP will still display the contents of this SSI in the Normal view during design time, even without the HTML and BODY tags. Like it so far?:)

The SSI code will be the only set executing as usual when parsed by the server. At the server, the FP Include will fail because checksum = 0 for the bot code due to the missing html and body tags. There is no repeating.:)

So the webbot functions only to show the content of ssi.shtml in the Normal view of FP.


The drawbacks of this simple solution are:

  • both sets of include will fail when you preview locally in the browser,
  • the dysfunctional webbot code is an eyesore especially if you have many includes and nested includes(unless your pages are .asp and server supports ASP)
  • it is not elegant.


These can be thoroughly addressed by the macro I am currently working on. Meantime, this serves as a proof of concept for the SSI Viewer, the objectives of which are:

1) to enable FP users to see SSI file in the Normal view just as they would see a FP Include

2) removes the need to upload all the calling pages when changes are done to the includes. Simply uploading the changed include pages will suffice.

Having the best of SSI and WYSIWYG in Normal view.

Basically, to quote one email that I received, " the idea of SSI Viewer is definitely the most attractive as it *fully* re-establishes the way FP Includes used to work with FPSE installed."

Thats how it'll work.

Edit: I have downloaded a trial version of EW and this method is working in EW too.

< Message edited by William Lee -- 10/18/2007 6:26:06 >


_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to William Lee)
Page:   <<   < prev  1 2 [3]

All Forums >> Web Development >> Expression Web Help >> RE: include content and charset problem
Page: <<   < prev  1 2 [3]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts