| Author |
Topic Search Topic Options
|
dj air
Senior Member
Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
|
Post Options
Thanks(0)
Quote Reply
Topic: Bug in V3 B2 WWF Forum version Posted: 18 February 2005 at 2:07pm |
|
hi -boRg-
theres a bug within the new RTE system
justr a mom ent ago i posted a message and then decided to edit.
and the edit returned no content within my post, even though i posted it.
also the edited by section is moved into te post area at normal size, you can see on the topic below
http://forums.webwiz.net/forum_posts.asp?TID=13848&PN=1
also when posting i tried without any content and it still alowed me to submit the post (edit version not new topic/post).
im using Firefox on XP SP2
i posted here as its a WWF coding Error
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 February 2005 at 5:26am |
|
I've just clicked on about 30 different 'Edit' buttons on verious posts and they all worked fine.
It sounds like Firefox just didn't fire the initilise for the RTE in
time as becuase of the header.asp file I couldn't use the body onLoad
event to start the RTE, instead I had to place it just after textarea
with a delay on it.
Hitting refresh should solve the problem for the moment till I can find a better solution.
|
|
|
 |
dj air
Senior Member
Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 February 2005 at 6:05am |
|
ok -boRg-.. i had to edit another of my posts yesterday and it was ok.. it seems to be as you said.
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 February 2005 at 7:20am |
|
I can still see there being problems with people with slow connections,
as for the RTE initialise function to run the external javascript file
needs to be loaded first.
Really the initialise command needs to be an onLoad event in the body of
the page, so that it is only fired when all elements and external
elements for the page have loaded.
The problem is due to the header.asp file in the forum to make customisation
simpler, that the body tag for all the pages is kept in this file.
It then makes it difficult to add the onLoad event required for the RTE
into the body tag of just those pages that have the RTE as they are all
sharing this same header.asp include file with the body tag being
within this file.
It then also makes customisation more difficult as it means if someone
customises the header.asp file so the forum fits in better with their
site, if they forget to place the onLoad event into the body tag the
RTE will fail to load correctly.
Does anyone know of anyway to get around this problem?
|
|
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 February 2005 at 9:28am |
|
not sure if this is to do with what you was talking about or not but...
just now i was about to post a suggestion
and as i use FireFox, when i typed it put wot i typed in the text box
as normal, and also in the "Find" box, maybe i just clicked this box to
fast to type, before it had loaded so firefox was confused and thought
i wanted to 'find' a word
|
 |
dj air
Senior Member
Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 February 2005 at 2:45pm |
-boRg- what about using a veriable .
have
if blnRTEActive = True then response.write ("onload='run RTE javascript'")
and on the pages that hold the RTE have the veriable set at the top of
the page before the is written/header.asp. that way you
can add it to the pages. that require it?
i mean use something like
response.write ("<body ")
if blnRTEActive = True then response.write (" onload='run RTE javascript'")
response.write(">")
|
Edited by dj air - 19 February 2005 at 2:47pm
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 February 2005 at 4:10pm |
|
It's a bit more complex than that deciding if the RTE will appear in
the page and sometimes can only been done after all the other code is
loaded, like the reply box on this page.
|
|
|
 |
dj air
Senior Member
Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 February 2005 at 4:26pm |
good point forgot them.
will keep on thinking.
|
 |