Solved

DW: ElementById Available?

Posted on 2004-10-06
1
181 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Free website editor 10 559
Why am I not able to make changes on my local machine to a website? 6 333
change form target with jquery 2 402
drop down button disappears 12 102
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…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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