Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-02-22 05:20:46

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

getElementById on elements inside Xinha

A plugin I've been writing inserts a placeholder into the document during editing time, and on save and load changes it between the actual content and the placeholder. In doing this I've been having trouble accessing elements inside the editors document though, I've been trying:

doc.body.getElementById(....

where doc is specified by this._doc and is a valid object.


Any ideas what I'm doing wrong?


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

#2 2007-02-22 07:13:41

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: getElementById on elements inside Xinha

it's only doc.getElementById()

Offline

#3 2007-02-22 07:45:48

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: getElementById on elements inside Xinha

d'oh! thanks a lot smile


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

#4 2007-02-22 07:53:03

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: getElementById on elements inside Xinha

Are you using FireBug? You should, it's a must for js development and could have answered your questions within a few clicks smile

Offline

Board footer

Powered by FluxBB