Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
srowe3 #1
document array has no properties
Why doesn't DW8 like document arrays assigned to variables? Using the syntax,
formInput = document.getElementsByTagName("input")
Returns an error saying "formInput has no properties."
Here's the full example:
var dom = dw.getDocumentDOM();
// get the current document's SKU_Condition meta tag
var skuCondMeta = dom.getElementsByTagName("meta");
for ( counter = 0; counter < skuCondMeta.length; counter++)
{
if (skuCondMeta[counter].name == "SKU_Condition") // so far so good
// get dom of the extension html form and assign the sku cond to the input
field value
/* why doesn't this code work?
var formInput = document.getElementsByTagName("input");
for ( iter = 0; iter < formInput.length; iter++)
{
if (formInput[iter].name == "sku_cond")
formInput[iter].value = skuCondMeta[counter].content;
*/
/* instead, I have to do this */
for ( iter = 0; iter < document.getElementsByTagName("input").length; iter++)
{
if (document.getElementsByTagName("input")[iter].name == "sku_cond")
document.getElementsByTagName("input")[iter].value =
skuCondMeta[counter].content;
}
Thanks for the help!
-Scott
srowe3 Guest
-
Document Properties using cos method
Hi, I want to get document properties like Page layout, Magnification and open number using Acrobat 6.0 SDK.I am able to get dictionary catalog.... -
Changing the Document Properties
Hi, I want to change the document properties like Page layout, Magnification... My code as shown below: AVPageView avPageView =... -
set document properties
How to set the document properties of pdf file like Author/Title using Acrobat IAC? I assigned the property GetJSObject to an object variable and... -
How to Save document properties
Hi, I am working on a project in which I have to set the properties in coding for a pdf document i.e Magnification, Initial view, pagelayout ,... -
Document properties default
Is there a way to have a custom set of document properties (initial view etc) applied to a set of PDFs - either by batch processing or just by...



Reply With Quote

