You are not logged in.
Pages: 1
do you think there's a way so that if I had the reference to a particular part of the the DOM tree inside the document, or the id of an element inside the document that Xinha could be manipulated so it scrolls to where it is?
David G. Paul
[url]http://www.newearthonline.co.uk[/url]
Offline
you have access to the document object inside the iframe through the Xinha object property
var doc = xinha_editors.myTextArea._doc; // get a grip on the document
var element = doc.getElementsByTagName('p')[5]; //get some element
xinha_editors.myTextArea.scrollToElement(element); // use one of the many built-in secret magic functions :)
Offline
Pages: 1