Solved

DW: ElementById Available?

Posted on 2004-10-06
1
203 Views
Last Modified: 2012-05-05
Hello,

I'm a newbie.

I'm customizing Dreamweaver for our developers.

I'm trying to access the DOM that's available in any web browser.

Does anyone know how I can access it?

I've used:
  var theDOM = dw.getDocumentDOM();

But this doesn't have the same API.

Specifically, it doesn't have document.getElementById or document.getElementByName.

Does anyone know of any alternaltives?

Thanks.
0
Comment
Question by:Vibe_2020
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
Saqib Khan earned 500 total points
ID: 12240356
> Specifically, it doesn't have document.getElementById or document.getElementByName.

Well it has nothing to DW, its your Browser Issuse.

What browser are you using for testing.?

if its IE 5/NS 6 + Then do the following for testing...

lets say you have a ID in your web page

<Div id="test">
Hello Test me
</div>

Then do the Following to grab it with javaScript

<Script>
function kk() {
alert("document.getElementById('test').innerHTML")
}
</Script>
<body onLoad = "kk()">




0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question