problem with preview (General)

by Uwe Loyal @, Monday, January 07, 2008, 19:01 (5953 days ago)

Hi Alex!

I get an error in preview in IE7 with the following message:

Zeile: 411
Zeichen: 5
Fehler: Objekt erforderlich
Code: 0
URL: http://localhost/forum_v2/forum/index.php?mode=index

Where is the problem?
Sometime it shows me a preview and sometime not!

Rgds
Uwe Loyal

locked
3666 views

problem with preview

by Uwe Loyal @, Wednesday, January 09, 2008, 09:04 (5951 days ago) @ Uwe Loyal
edited by Alfie, Wednesday, January 09, 2008, 23:41

Hi Alex!

I get an error in preview in IE7 with the following message:

Zeile: 411
Zeichen: 5
Fehler: Objekt erforderlich
Code: 0
URL: http://localhost/forum_v2/forum/index.php?mode=index

Where is the problem?
Sometime it shows me a preview and sometime not!

Rgds
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]

locked
3209 views

problem with preview

by Uwe Loyal @, Thursday, January 10, 2008, 10:07 (5950 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
3099 views

RSS Feed of thread