problem with preview (General)

by Uwe Loyal @, Thursday, January 10, 2008, 10:07 (5949 days ago) @ Uwe Loyal

The Error is in Javascripts.js:

function updatepage(id,xml){
 
//var subject = xml.getElementsByTagName('subject')[0].firstChild.data;
var content = xml.getElementsByTagName('content')[0].firstChild.data;    
if(content=='') content = '<p>-</p>';
document.getElementById("ajax-preview-content").innerHTML = content;

...

Does anyone know why?

Rgds
Uwe Loyal

--
Edit: Syntax-highlighting added to get rid of the smilie-bug.
The reported error is in line 410 (2.0beta19) starting with   var content... [Alfie]

My reported error was in version is 2.0beta20.

In 2.0beta19 my error is in line 401, but the same code like above.
I don't see the error. What I have to change/correct?

Rgds
Uwe Loyal

locked
3096 views

Complete thread:

 RSS Feed of thread