Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DW: ElementById Available?

Posted on 2004-10-06
1
Medium Priority
?
206 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 1500 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

704 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