News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Preview Post bug?

Started by Amacythe, March 20, 2005, 10:31:10 PM

Previous topic - Next topic

Amacythe

QuotePreview post
Fetching preview...

I never see the preview... just that message.

[Unknown]

I've noticed, but I haven't yet figured out why...

-[Unknown]

Anguz

It's working for me... Tried it with this message.
Cristián Lávaque http://cristianlavaque.com

Aravot

It's only Internet Explorer problem and since SMF 1.1 beta 1, works OK on FireFox and Opera but not on IE, tested on three different systems (different configuration) same result.

I went for lunch, came back after 45min it still said


[Unknown]

It only doesn't work in Firefox for me, works fine in IE....

Anyway, I think I've got a fix in cvs.

-[Unknown]

Goosemoose

Is this fixed? I'm having the problem too. I am using the 1.1 default theme but I edited it.

[Unknown]

The Mambo integration is making it not work, I'm afraid.

-[Unknown]

rudoka

Can I file another bug related with the preview here?

The first time I click preview the page stays where it is the "fetching" message appears and then some later the preview. Everything is ok.

But after previewing a long post clicking again the preview strange things happen.
   First the whole page "jumps up", obviously because in the Preview 'window' the post is replace with "Fetching preview"...
   After a the post is displayed the page jumps back to the edit textbox where the preview button was. Seems that the actual position is random, nevertheless it's always the edit region, and the preview is never visible(except sometimes one or two from the last lines, on high res monitor ;)). It is so annoying this "jumping" of the page in case of long messages, and what is even worse is that I have to scroll up everytime I hit preview to actually see the preview.

   I realise that this is not actually an error in the code, it's simply the browsers' behaviour (it happens in FF and Avant! too) . Still it's bugging me a lot.  ;D
   It's not possible to make the page to jump to the "preview" after "fetching" it?

Rudolf

[Unknown]

I'm afraid it's just the browser trying to deal with the reflow.

-[Unknown]

rudoka

Yeah, I figured. :)
  It's not possible to add an anchor to  the preview title and after the fetching is done to instruct the browser to go to that anchor(link)?
   This wouldn't stop the jumping while it's fetching, but after it's done would go up to the very start of the preview table. At least I wouldn't have to scroll. It's not such a big deal, but it's still annoying a little. I am the only one who is bothered by this?
    Hmmm, in a future release? Maybe? Please!  :)

Rudolf

PremTech

#10
hi there..

I have just installed SMF and am an absolute beginner with this software  (it's brilliant...exactly what I want)

But I am having the same trouble in both FF and IE

The preview message just sits there saying Fetching Preview

I am using SMF1.1 Beta 3 Public

I get the error message in IE:

Line: 163
Char: 12
Error: 'getElementByTagName(...).0' is null or not an object
Code:0


This code snippet is from Themes/default/Post.template.php

// Show the preview section.
            var i, preview = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("preview")[0];
            setInnerHTML(document.getElementById("preview_subject"), preview.getElementsByTagName("subject")[0].firstChild.nodeValue);

            var bodyText = "";
            for (i = 0; i < preview.getElementsByTagName("body")[0].childNodes.length; i++)
               bodyText += preview.getElementsByTagName("body")[0].childNodes.nodeValue;

            setInnerHTML(document.getElementById("preview_body"), bodyText);
            document.getElementById("preview_body").className = "post";


it works on this forum ok but not on mine

any suggestions as I am not a proficient with JS

Cheers
Warren

[Unknown]

Can you post a link to your forum?

-[Unknown]

PremTech

#12
hi there...

thanks for the reply....here is the link to my forum

I am still setting it up at the moment..i would like to get this sorted before I do too much more....

hxxp:www.premtech.com.au/forum [nonactive]

cheers
Warren

[Unknown]


PremTech

Thanks heaps for that...I didnt realise it needed an upgrade...

All is well now.....

I havn't checked everything yet though


thanks guys for a brilliant forum package

I needed one that was xhtml compliant and CSS based cause my forum is for web accessibility...

Will recommend this forum package

Cheers
Warren



VTX

Dutch bike drivers, have a look @ http://www.limburgracingteam.nl

VTX

@unknown: Your account was approved and you now can have a look. I still haven't solved this issue.
Dutch bike drivers, have a look @ http://www.limburgracingteam.nl

[Unknown]

This is becayse MKPortal doesn't (properly) support SMF 1.1.

-[Unknown]

VTX

Quote from: [Unknown] on August 06, 2005, 01:07:53 PM
This is becayse MKPortal doesn't (properly) support SMF 1.1.

-[Unknown]

Too bad, any quick 'dirty' hack to solve this prob?
Dutch bike drivers, have a look @ http://www.limburgracingteam.nl

ahto

I'm having the same problem with IE and Firefox. I'm using SMF 1.1 RC2 updated from 1.0.5.

I can send forums address by private message.

Advertisement: