Re: [WSG] Marking up company logo

2008-05-29 Thread Anton Babushkin
I concur.

Having it as a p is a much better way of dealing with it rather than
having it as an image or h1.

To me its less about SEO and much more about usability. People don't really
care about your company, they're simply after the major headlines. Having a
company logo take up the majority of the real-estate is less user-friendly
and much more spammy. Maybe I am just a minimalist.


On Thu, May 29, 2008 at 2:32 PM, Jens-Uwe Korff 
[EMAIL PROTECTED] wrote:

  The H1 should be used for the most important heading, usually the name
 of the page

 I second that.

 We used to have lots of logos in h1s too, and after a thorough SEO
 discussion we changed that to a p.

 The h1 now holds the page title.


 Cheers,

 Jens

 The information contained in this e-mail message and any accompanying files
 is or may be confidential. If you are not the intended recipient, any use,
 dissemination, reliance, forwarding, printing or copying of this e-mail or
 any attached files is unauthorised. This e-mail is subject to copyright. No
 part of it should be reproduced, adapted or communicated without the written
 consent of the copyright owner. If you have received this e-mail in error
 please advise the sender immediately by return e-mail or telephone and
 delete all copies. Fairfax does not guarantee the accuracy or completeness
 of any information contained in this e-mail or attached files. Internet
 communications are not secure, therefore Fairfax does not accept legal
 responsibility for the contents of this message or attached files.


 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***




-- 
- Anton Babushkin


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

Re: [WSG] Marking up company logo

2008-05-29 Thread Rick Lecoat

On 29 May 2008, at 05:32, Jens-Uwe Korff wrote:


We used to have lots of logos in h1s too, and after a thorough SEO
discussion we changed that to a p.


Out of curiosity, is a logo img at the top of the page more  
semantically correct when wrapped in a p than when it's just on it's  
own (ie. not wrapped in anything other than, say, a 'header' div)?


--
Rick Lecoat



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Marking up company logo

2008-05-29 Thread Adam Martin
I would personally not be using a p tag too hold the logo? Why would you 
want too? you can position as you want without the need for extra 
markup. img src=logo.png alt=My company logo width=150px 
height=300px id=logo / - that makes it pretty obvious. of course if 
you only have 1 image in the header then you don't need the id either. 
Semantically I don't think it needs to be in any other tags at all.


I think if people start think UO rather than SEO then the answers to 
most questions become a lot clearer - UO is a term I coined just the 
other day - UO = user optimisation.


Cheers
Adam



Rick Lecoat wrote:

On 29 May 2008, at 05:32, Jens-Uwe Korff wrote:


We used to have lots of logos in h1s too, and after a thorough SEO
discussion we changed that to a p.


Out of curiosity, is a logo img at the top of the page more 
semantically correct when wrapped in a p than when it's just on it's 
own (ie. not wrapped in anything other than, say, a 'header' div)?


--
Rick Lecoat



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Marking up company logo

2008-05-29 Thread Matt Fellows
 Out of curiosity, is a logo img at the top of the page more semantically
 correct when wrapped in a p than when it's just on it's own (ie. not
 wrapped in anything other than, say, a 'header' div)?

Easy! A p tag is supposed to hold a paragraph of text.  If it is
only holding an image, then there is no need for the surrounding p
tag. Some people (including myself)  feel uncomfortable with the img
floating by itself, so wrapping it in a div id=header or something
 is a nice alternative.

-- 
Matt Fellows
http://www.onegeek.com.au/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Marking up company logo

2008-05-29 Thread Mark Harris

Adam Martin wrote:



I think if people start think UO rather than SEO then the answers to 
most questions become a lot clearer - UO is a term I coined just the 
other day - UO = user optimisation.




How excellent! I'm sure we can build a whole consulting industry around 
that!


;-)

cheers

mark


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Marking up company logo

2008-05-29 Thread Adam Martin
I intend too - as of tomorrow I am officially unemployed and working on 
launching my new business www.internetconsultants.com.au (site not even 
close too completion).


Mark Harris wrote:

Adam Martin wrote:



I think if people start think UO rather than SEO then the answers 
to most questions become a lot clearer - UO is a term I coined just 
the other day - UO = user optimisation.




How excellent! I'm sure we can build a whole consulting industry 
around that!


;-)

cheers

mark


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



[WSG] Re: Marking up company logo

2008-05-29 Thread roxanne sutton

There are several things to consider for the logo markup
1. it is a heading semantically, and if the image was not present, it  
would be a top level heading h1 as far as the information it provides
2. Search Engines only recognize/ rank the h1 and h2 headings  
(currently).
3. The older systems of using a logo image in the h1 as a background  
- are also not SEO friendly, either. So...


If you want an accessible, browser friendly and findable website,  
there is the system that www.alistapart.com is now using for their logo.
Using an h1 with an added id. sample: h1 id=masthead. This will  
distinguish it from the page titles, which are also h1 and keep it  
in heading order semantically. Also note, keep the image in the markup.



Roxanne Sutton




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

RE: [WSG] Marking up company logo

2008-05-29 Thread Elizabeth Spiegel
Hi Chris

 

I'm not convinced that h1 is semantically correct for a logo (or even
banner).  I would normally expect the h1 to be similar to the title - it
indicates what the whole page is about (but not the whole site).

 

 

Elizabeth Spiegel

Web editing

topleft

0409 986 158

GPO Box 729, Hobart TAS 7001

www.spiegelweb.com.au

 

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Pearce
Sent: Wednesday, 28 May 2008 5:49 PM
To: wsg@webstandardsgroup.org
Subject: [WSG] Marking up company logo

 

Hi,

 

For a few years now I've been marking up a clients company logo as a h1. I
just wanted to get an idea of how many people actually do this compared to
using a html image tag? I believe a h1 is more semantically correct
however I'd be interested in seeing what other people on this list think.

 

Cheers

 

 


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*** 



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***image001.gif

RE: [WSG] Marking up company logo

2008-05-29 Thread Chris Pearce
Thanks for all the feedback regarding this.

I'm actually beginning to think an html image tag would be better suited to 
mark-up a company logo and reserving the h1 for the main page title, this 
seems to make more sense to me after giving it more thought. Also most of the 
sites I build use CMS's and clients will go ahead and use a h1 anyway for the 
top level heading in the editable area therefore the logical order of headers 
is broken. At the end of the day semantics means a lot more to me than SEO.

On a side note I find I have to insert an image tag (for the logo) for the 
print version as most clients aren't happy about showing plain text from the 
h1 as we all know that printing background images is turned off by default.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Pearce
Sent: Wednesday, 28 May 2008 5:49 PM
To: wsg@webstandardsgroup.org
Subject: [WSG] Marking up company logo

Hi,

For a few years now I've been marking up a clients company logo as a h1. I 
just wanted to get an idea of how many people actually do this compared to 
using a html image tag? I believe a h1 is more semantically correct however 
I'd be interested in seeing what other people on this list think.

Cheers



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***


Re: [WSG] Marking up company logo

2008-05-29 Thread Jason Grant
I am surprised that we are even discussing this topic here.
This issue is mentioned in the last sentence of this blog post:
http://www.flexewebs.com/semantix/?p=5
Please follow the link provided in there to W3C site which mentions what 
h1  is there for.

Kind regards,

Jason
www.flexewebs.com -- see also here where  h1  appears on the page and how
logo is done.

On Thu, May 29, 2008 at 11:38 PM, Chris Pearce 
[EMAIL PROTECTED] wrote:

  Thanks for all the feedback regarding this.



 I'm actually beginning to think an html image tag would be better suited to
 mark-up a company logo and reserving the h1 for the main page title, this
 seems to make more sense to me after giving it more thought. Also most of
 the sites I build use CMS's and clients will go ahead and use a h1 anyway
 for the top level heading in the editable area therefore the logical order
 of headers is broken. At the end of the day semantics means a lot more to me
 than SEO.



 On a side note I find I have to insert an image tag (for the logo) for the
 print version as most clients aren't happy about showing plain text from the
 h1 as we all know that printing background images is turned off by
 default.



 *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Chris Pearce
 *Sent:* Wednesday, 28 May 2008 5:49 PM
 *To:* wsg@webstandardsgroup.org
 *Subject:* [WSG] Marking up company logo



 Hi,



 For a few years now I've been marking up a clients company logo as a h1.
 I just wanted to get an idea of how many people actually do this compared to
 using a html image tag? I believe a h1 is more semantically correct
 however I'd be interested in seeing what other people on this list think.



 Cheers






 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***


 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***

 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

[WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Skip Evans

Hey all,

I have a table set up with a main content cell in 
the center column of three, basically like this:


table
tr
td colspan=3header/td
/tr

tr
tdstuff/td
tdthe most stuff/td
tdstuff/td
/tr

tr
td colspan=3footer/td
/tr
table

On the server side I build a content page and user 
innerHMTL=content;


..in JS code to insert the content into the column 
labeled the most stuff.


The problem is when that column has less content, 
and then shifts to more content the latter part of 
the content runs over the footer below the main 
content row.


This is ONLY happening in Firefox, IE on windows 
works fine. Firefox has the problem on both Linux 
and Windows.


Any help would greatly, greatly appreciated.
--
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison, WI 53703
608-250-2720
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL, AJAX  DHTML development framework.
http://phpenguin.bigskypenguin.com/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Adam Martin
Just put a clear both on the footer,

i.e

#footer {

}

On Fri, May 30, 2008 at 9:40 AM, Skip Evans [EMAIL PROTECTED] wrote:

 Hey all,

 I have a table set up with a main content cell in the center column of
 three, basically like this:

 table
tr
td colspan=3header/td
/tr

tr
tdstuff/td
tdthe most stuff/td
tdstuff/td
/tr

tr
td colspan=3footer/td
/tr
 table

 On the server side I build a content page and user innerHMTL=content;

 ..in JS code to insert the content into the column labeled the most
 stuff.

 The problem is when that column has less content, and then shifts to more
 content the latter part of the content runs over the footer below the main
 content row.

 This is ONLY happening in Firefox, IE on windows works fine. Firefox has
 the problem on both Linux and Windows.

 Any help would greatly, greatly appreciated.
 --
 Skip Evans
 Big Sky Penguin, LLC
 503 S Baldwin St, #1
 Madison, WI 53703
 608-250-2720
 http://bigskypenguin.com
 =-=-=-=-=-=-=-=-=-=
 Check out PHPenguin, a lightweight and versatile
 PHP/MySQL, AJAX  DHTML development framework.
 http://phpenguin.bigskypenguin.com/


 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***




-- 
-
http://myfitness.ning.com
A community of people that care about their health and fitness
Free fitness videos, recipes, blogs, photos etc.
--


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Adam Martin
Sorry pushed return to quickly

#footer {
  clear: both;
}
On Fri, May 30, 2008 at 9:40 AM, Skip Evans [EMAIL PROTECTED] wrote:

 Hey all,

 I have a table set up with a main content cell in the center column of
 three, basically like this:

 table
tr
td colspan=3header/td
/tr

tr
tdstuff/td
tdthe most stuff/td
tdstuff/td
/tr

tr
td colspan=3footer/td
/tr
 table

 On the server side I build a content page and user innerHMTL=content;

 ..in JS code to insert the content into the column labeled the most
 stuff.

 The problem is when that column has less content, and then shifts to more
 content the latter part of the content runs over the footer below the main
 content row.

 This is ONLY happening in Firefox, IE on windows works fine. Firefox has
 the problem on both Linux and Windows.

 Any help would greatly, greatly appreciated.
 --
 Skip Evans
 Big Sky Penguin, LLC
 503 S Baldwin St, #1
 Madison, WI 53703
 608-250-2720
 http://bigskypenguin.com
 =-=-=-=-=-=-=-=-=-=
 Check out PHPenguin, a lightweight and versatile
 PHP/MySQL, AJAX  DHTML development framework.
 http://phpenguin.bigskypenguin.com/


 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***




-- 
-
http://myfitness.ning.com
A community of people that care about their health and fitness
Free fitness videos, recipes, blogs, photos etc.
--


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Skip Evans

Hey,

We tried that just before you sent the message 
through. Same results.


Skip

Adam Martin wrote:

Sorry pushed return to quickly

#footer {
  clear: both;
}
On Fri, May 30, 2008 at 9:40 AM, Skip Evans [EMAIL PROTECTED] wrote:


Hey all,

I have a table set up with a main content cell in the center column of
three, basically like this:

table
   tr
   td colspan=3header/td
   /tr

   tr
   tdstuff/td
   tdthe most stuff/td
   tdstuff/td
   /tr

   tr
   td colspan=3footer/td
   /tr
table

On the server side I build a content page and user innerHMTL=content;

..in JS code to insert the content into the column labeled the most
stuff.

The problem is when that column has less content, and then shifts to more
content the latter part of the content runs over the footer below the main
content row.

This is ONLY happening in Firefox, IE on windows works fine. Firefox has
the problem on both Linux and Windows.

Any help would greatly, greatly appreciated.
--
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison, WI 53703
608-250-2720
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL, AJAX  DHTML development framework.
http://phpenguin.bigskypenguin.com/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***







--
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison, WI 53703
608-250-2720
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL, AJAX  DHTML development framework.
http://phpenguin.bigskypenguin.com/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Marking up company logo

2008-05-29 Thread Ben Buchanan

 For a few years now I've been marking up a clients company logo as a h1.
 I just wanted to get an idea of how many people actually do this compared to
 using a html image tag? I believe a h1 is more semantically correct
 however I'd be interested in seeing what other people on this list think.


My take is that only the homepage should have the company name/logo as the
h1. As you move through the site, the h1 should shift to the more specific
top heading on the page - on a category/index page it would be that
category's name; on a specific content page it should be the headline on the
content.

On these other pages the logo/name just goes in a div, usually with a
strong. That way, you build a logical structure across the site. Each page
will have a logical h1.

That's the ideal of course. If your system doesn't allow for that sort of
thing, having the logo as the h1 on every page isn't the end of the world,
although you really need to make sure your title and h2 combination is
accurate to make up for it :)

cheers,
Ben

-- 
--- http://weblog.200ok.com.au/
--- The future has arrived; it's just not
--- evenly distributed. - William Gibson


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

RE: [WSG] Marking up company logo

2008-05-29 Thread Thierry Koblentz
 I am surprised that we are even discussing this topic here.
 This issue is mentioned in the last sentence of this blog post:
http://www.flexewebs.com/semantix/?p=5
 Please follow the link provided in there to W3C site which mentions what 
h1  is there for.

It's almost Friday, so here goes ;)

I may be wrong, but with the millions of web sites out there
identity/branding is a big deal. If I consider the name of the site being
the most important piece of information in the document, then I have no
problem putting it in a H1.

As a side note, the URL you posted links to a document that does not mention
your company/site name which is not in the TITLE element either, so I think
this explains our different stances ;-)


-- 
Regards,
Thierry | http://www.TJKDesign.com






***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] Marking up company logo

2008-05-29 Thread Thierry Koblentz
 For a few years now I've been marking up a clients company logo as a
h1. 
 I just wanted to get an idea of how many people actually do this compared
to using a html image tag? 
 I believe a h1 is more semantically correct however I'd be interested
in seeing 
 what other people on this list think.

 My take is that only the homepage should have the company name/logo as the
h1. As you move through the site, 
 the h1 should shift to the more specific top heading on the page - on a
category/index page it would be that 
 category's name; on a specific content page it should be the headline on
the content.

fwiw, I don't see it that way. A web site is not a book, there is no cover.
People can visit pages in a site without ever going through the home page.


-- 
Regards,
Thierry | http://www.TJKDesign.com






***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Marking up company logo

2008-05-29 Thread jen
An h1 is definitely not for marking up the company logo. A logo in  
a banner would go in a div, div id=logo. h1 is reserved for the  
semantically correct information for the main heading. Alistapart  
must have it wrong. Actually, looking through their code, they do  
appear to have it wrong. The h# tags are odd. When in doubt, see  
what Dan Cederholm at simplebits.com does, or the Happy Cog folks  
( img id=logo src=/i/hc_logo_print.png alt=Happy Cog logo / 
 ). They've never steered me wrong.


j


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Thierry Koblentz
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Skip Evans
 Sent: Thursday, May 29, 2008 4:41 PM
 To: wsg@webstandardsgroup.org
 Subject: [WSG] innerHTML assignment overflows TD cell in FF
 
 Hey all,
 
 I have a table set up with a main content cell in
 the center column of three, basically like this:
 
 table
   tr
   td colspan=3header/td
   /tr
 
   tr
   tdstuff/td
   tdthe most stuff/td
   tdstuff/td
   /tr
 
   tr
   td colspan=3footer/td
   /tr
 table
 
 On the server side I build a content page and user
 innerHMTL=content;

Did you try without using innerHTML?
http://www.w3.org/TR/DOM-Level-3-Core/introduction.html


-- 
Regards,
Thierry | http://www.TJKDesign.com







***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Skip Evans

Hey,

I see from reading up that innerHTML is not really 
standard, and not the best way to go. Was not 
aware of that and from the doc you send am now 
working on this:


var maincontent=document.getElementById('newsnode');
maincontent.firstChild.nodeValue=ret;

And the node looks like this:

div id=newsnode!!main_content!!/div

But this is not working. I guess the node itself 
is not the first node? Will keep working at it, 
but any hint would sure be appreciated.


Incidentally, !!main_content!! is a placeholder 
value replaced via PHP with the initial content on 
page load.


Thanks!
Skip


Thierry Koblentz wrote:


Did you try without using innerHTML?
http://www.w3.org/TR/DOM-Level-3-Core/introduction.html




--
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison, WI 53703
608-250-2720
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL, AJAX  DHTML development framework.
http://phpenguin.bigskypenguin.com/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Skip Evans

Hey all,

I got a little further with the following:

var ret=serverFunction(url);
var newsnode=document.getElementById('newsnode');
while(newsnode.firstChild)
newsnode.removeChild(newsnode.firstChild);
var txt = document.createTextNode(ret);
newsnode.appendChild(txt);

1) I got the completed formatted HTML page back 
from serverFunction in the variable ret.


2) Then I cleared out all the child nodes in the div

3) Created a text node

4) Appended the new text to the node.

Except, as those of you more experienced than I 
already knew, the HTML was not formatted.


I guess that's why some people still prefer innerHTML?

And I guess the only alternative is to create each 
element, including tags like strong, i, etc?


So is this common? Format the whole page via JS code?

Yikes!

Thanks for any advice or comments,
Skip

Skip Evans wrote:

Hey,

I see from reading up that innerHTML is not really standard, and not the 
best way to go. Was not aware of that and from the doc you send am now 
working on this:


var maincontent=document.getElementById('newsnode');
maincontent.firstChild.nodeValue=ret;

And the node looks like this:

div id=newsnode!!main_content!!/div

But this is not working. I guess the node itself is not the first node? 
Will keep working at it, but any hint would sure be appreciated.


Incidentally, !!main_content!! is a placeholder value replaced via PHP 
with the initial content on page load.


Thanks!
Skip


Thierry Koblentz wrote:


Did you try without using innerHTML?
http://www.w3.org/TR/DOM-Level-3-Core/introduction.html






--
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison, WI 53703
608-250-2720
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL, AJAX  DHTML development framework.
http://phpenguin.bigskypenguin.com/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Jason Ray
This isn't necessarily answering your question, but in the interest of
standards I thought I should point out that your table is not well formed.
There are header (thead and th), body (tbody), and footer (tfoot)
elements that you can and should use, as well as a caption (optional).

Your table should look something like this:

table
captionDescription of the Table/caption
thead
  thead
 tr
 th colspan=3Header/th
 /tr
  /thead
  tbody
 tr
 tdstuff/td
 tdthe most stuff/td
 tdstuff/td
 /tr
  /tbody
  tfoot
tr
 td colspan=3footer/td
 /tr
  /tfoot
table

Cheers,
Jason

On Fri, May 30, 2008 at 11:58 AM, Skip Evans [EMAIL PROTECTED] wrote:

 Hey,

 I see from reading up that innerHTML is not really standard, and not the
 best way to go. Was not aware of that and from the doc you send am now
 working on this:

 var maincontent=document.getElementById('newsnode');
 maincontent.firstChild.nodeValue=ret;

 And the node looks like this:

 div id=newsnode!!main_content!!/div

 But this is not working. I guess the node itself is not the first node?
 Will keep working at it, but any hint would sure be appreciated.

 Incidentally, !!main_content!! is a placeholder value replaced via PHP with
 the initial content on page load.

 Thanks!
 Skip


 Thierry Koblentz wrote:


 Did you try without using innerHTML?
 http://www.w3.org/TR/DOM-Level-3-Core/introduction.html



 --
 Skip Evans
 Big Sky Penguin, LLC
 503 S Baldwin St, #1
 Madison, WI 53703
 608-250-2720
 http://bigskypenguin.com
 =-=-=-=-=-=-=-=-=-=
 Check out PHPenguin, a lightweight and versatile
 PHP/MySQL, AJAX  DHTML development framework.
 http://phpenguin.bigskypenguin.com/



 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

RE: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Thierry Koblentz
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Skip Evans
 Sent: Thursday, May 29, 2008 6:58 PM
 To: wsg@webstandardsgroup.org
 Subject: Re: [WSG] innerHTML assignment overflows TD cell in FF
 
 Hey,
 
 I see from reading up that innerHTML is not really
 standard, and not the best way to go. Was not
 aware of that and from the doc you send am now
 working on this:
 
 var maincontent=document.getElementById('newsnode');
 maincontent.firstChild.nodeValue=ret;
 
 And the node looks like this:
 
 div id=newsnode!!main_content!!/div

Try this:

var maincontent=document.getElementById('newsnode');
maincontent.firstChild.data=Hello World!;


-- 
Regards,
Thierry | http://www.TJKDesign.com






***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Skip Evans

Thierry Koblentz wrote:

And the node looks like this:

div id=newsnode!!main_content!!/div


Try this:

var maincontent=document.getElementById('newsnode');
maincontent.firstChild.data=Hello World!;



That is not changing the content of the div tag, 
or anything on the screen.



--
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison, WI 53703
608-250-2720
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL, AJAX  DHTML development framework.
http://phpenguin.bigskypenguin.com/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Thierry Koblentz
  And the node looks like this:
 
  div id=newsnode!!main_content!!/div
 
  Try this:
 
  var maincontent=document.getElementById('newsnode');
  maincontent.firstChild.data=Hello World!;
 
 
 That is not changing the content of the div tag,
 or anything on the screen.

It should. What happens when you run the following in the Firebug console?

$('newsnode').firstChild.data=Hello World!;


-- 
Regards,
Thierry | http://www.TJKDesign.com








***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***