<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can not access ADViewer object in JavaScript in Autodesk Viewers Forum</title>
    <link>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3373605#M262</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went through the links, but this only helps displaying the dwf file in mozilla/chrome, there is no way described to access the ADR control and access its controls programmatically. Please help over it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2012 05:55:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-16T05:55:42Z</dc:date>
    <item>
      <title>Can not access ADViewer object in JavaScript</title>
      <link>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3231606#M260</link>
      <description>&lt;PRE&gt;Hi All,

I am try use your below code in JavaScript but it does't work.

I am refer Autodesk Design Review 2012 API Reference
I am try to Execute code in "Embedding a DWF File in a Web Page" this topic.
but not able to
execute, some thing is missing and i am not able to find what is missing or
what is wrong. Help
me.

Please try to execute my Code.

[code]

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
"&lt;A rel="nofollow" target="_blank" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/A&gt;"&amp;gt;
&amp;lt;html xmlns="&lt;A rel="nofollow" target="_blank" href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;" &amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;script language="javascript" type="text/javascript"&amp;gt;
function getElements()
  {
          var ADViewer = document.getElementById("ADViewer"); // 2nd Way
        alert(ADViewer);
        var ECompViewer = ADViewer.ECompositeViewer;     // 1st Way
        alert(ECompViewer);
        var Sections = ECompViewer.Sections;
        var secList = document.getElementById("SectionList");
        for (iSection = 1;(iSection &amp;lt;= Sections.Count); iSection++)
        {
                var Section = Sections(iSection); //Set the section to a
separate object
                alert(Section.Title);
                secList.innerHTML += Section.Title + "&amp;lt;BR&amp;gt;";
        }
  }
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;


&amp;lt;input type="text" size="20" /&amp;gt;&amp;lt;br /&amp;gt;
&amp;lt;input type="text" size="20" /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;
&amp;lt;input id="abc" type="button" onClick="getElements()" value="How many input
elements?" /&amp;gt;
        &amp;lt;object id="ADViewer" type="application/x-Autodesk-DWF" width="400"
height="400"

                        data="application/DWF085825-1-zobell_residence.dwf"&amp;gt;
                &amp;lt;param name="Src"
value="&lt;A rel="nofollow" target="_blank" href="http://50.57.86.168:8181/cat/DwfFile/DWF085825-1-zobell_residence.dwf"&gt;http://50.57.86.168:8181/cat/DwfFile/DWF085825-1-zobell_residence.dwf&lt;/A&gt;
" /&amp;gt;
        &amp;lt;/object&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

[/code]

In my PC this code execute in Google Crome but below issue.
Please try this code to execute.
In my Code there are 3 alert boxes.
  In 1 alert box shows [object HTMLObjectElement]
  In 2 alert box shows undefined
  3 rd alert box not executed.

Another thing is that this JavaScript code only run in Google Crome. not in
IE 8.0 or FireFox  3.6.12

When i am using [ classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF" ]
this code it will not
execute in Google Crome not IE 8.0 not in FireFox 3.6.12 also not loaded DWF
Viewer in browser.

My PC Configuration is :
      Windows 7 Ultimate
      1 GB RAM
      64-bit OS
      Autodesk Design Review Browser Add-on for NPAPI browser v 1.2
      Autodesk Design Review 2012 Software v 12.0.0.98 installed in PC.

Reply as early as possible.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Nov 2011 17:03:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3231606#M260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T17:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access ADViewer object in JavaScript</title>
      <link>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3232358#M261</link>
      <description>&lt;P&gt;Thank you for your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To insure your script works in both IE and Chrome/Firefox, please refer to this port for solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://forums.autodesk.com/t5/Autodesk-Design-Review/DWF-won-t-load-in-Firefox-nor-Chrome-but-will-in-IE-and-Safari/td-p/3222178" target="_blank"&gt;http://forums.autodesk.com/t5/Autodesk-Design-Review/DWF-won-t-load-in-Firefox-nor-Chrome-but-will-in-IE-and-Safari/td-p/3222178&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if I can be of any further assistance.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2011 02:17:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3232358#M261</guid>
      <dc:creator>herbert.he</dc:creator>
      <dc:date>2011-11-18T02:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access ADViewer object in JavaScript</title>
      <link>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3373605#M262</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went through the links, but this only helps displaying the dwf file in mozilla/chrome, there is no way described to access the ADR control and access its controls programmatically. Please help over it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 05:55:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3373605#M262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-16T05:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access ADViewer object in JavaScript</title>
      <link>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3373719#M263</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;usheokand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I solve my problem and also access ADViewer and with some my related funcationality.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What you want? Please elobrate your problem. So i can help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kkcnkc&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="author-role-icon"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Mar 2012 09:11:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3373719#M263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-16T09:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access ADViewer object in JavaScript</title>
      <link>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3373723#M264</link>
      <description>&lt;P&gt;Hello &lt;SPAN&gt;&lt;SPAN&gt;kkcnkc&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for replying back.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will explain my situation here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to display dwf files in web browser.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I followed the API provided for ADR and embeded the control.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The display work is fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to hide some of the commands, in IE am able to hide/show the command buttons over toolbar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But in non IE browser such as Mozilla &amp;amp; Chrome, I cannot access the commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The IE version of accessing EComposisteViewer does not work with Mozilla.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I was wondering did you try to acess the command or any other child control of the ADR?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks Again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 09:18:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/3373723#M264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-16T09:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access ADViewer object in JavaScript</title>
      <link>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/4422601#M265</link>
      <description>&lt;P&gt;I am also facing the same problem.&lt;/P&gt;&lt;P&gt;I could not access the&amp;nbsp;&lt;SPAN&gt;EComposisteViewer object in FireFox or Chrome, but works fine in IE. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did you find the solution for your problem ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vkathir.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 23:04:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autodesk-viewers-forum/can-not-access-adviewer-object-in-javascript/m-p/4422601#M265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-12T23:04:34Z</dc:date>
    </item>
  </channel>
</rss>

