Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
srowe3 #1
DOM meta tags
Hi there!
I'm writing an extension for DW8 that retrieves the contents of a meta tag
from the current XHTML document:
<meta name="SKU_Condition" content="some_name" />
So I've got the following from the Extending DW help and the API ref:
var dom = dw.getDocumentDOM(); //get the dom of the current document
var skuCondMeta = dom.getElementsByTagName(???);
I see that the getElements function returns a list of child tags for a given
tag type like DIV, IMG, etc.
Where do I go from here?
-Scott
srowe3 Guest
-
Meta Tags
I'm using Publisher 2002 sp2. How do I add title, description and keyword meta tags so they get picked up by search engines? I've tried editing... -
Meta Tags???
I made a web page a while back and I remember reading about adding meta tags to the body of page. It was done by opening another small window. Now... -
How to use ph to set meta tags ?
Daniel Szasz <danysz@yahoo.com> wrote: You might also want to make sure that it is quoted: <META NAME="mAuthor" CONTENT="<?echo mAuthor() ?>"... -
[PHP] How to use ph to set meta tags ?
You're close but instead of <? mAuthor() ?> try <?php print mAuthor(); ?> That will print the return value of your function - which by example... -
meta tags...
Hey all, I've put keywords into my .dwt (template files) but I'm curious if the search bots actually see them in the .dwt? Should they be in the... -
srowe3 #2
Re: DOM meta tags
Okay, here's the solution:
var dom = dw.getDocumentDOM(); //get the dom of the current document
var skuCondMeta = dom.getElementsByTagName("meta");
for ( counter = 0; counter < skuCondMeta.length; counter++)
{
if (skuCondMeta[counter].name == "some_name")
alert(skuCondMeta[counter].content);
}
srowe3 Guest



Reply With Quote

