PDA

View Full Version : JS code switching DIV blocks - problem with Firefox/WYSIWYG interface


Valter
11-13-2006, 01:21 PM
I have some problem with my Cyb - Prevent Newbies from Posting to Wrong Forum (https://vborg.vbsupport.ru/showthread.php?t=122994) hack.

I've put simple javascript code which is switching two DIV blocks.

When newthread page loads there is destination forum confirmation dialog. When you click Continue button that DIV block is closed and then standard newthread form is opened. This works with no problems in IE but there is a problem with Firefox when member is using WYSIWYG interface. Message area is grayed out and all functions are disabled. You can't click anything.

I see no reason why this is happening? Is this vB bug or I'm missing something here?

I'll be very thankful if someone can provide some idea on how to solve this problem.


Cyb

PS: First DIV is opened after $navbar and closed before $footer.

Valter
11-15-2006, 12:52 AM
Sorry for bumping thread. Anyone knows if this is vB bug or there is some trick to have this working properly?

Ntfu2
11-15-2006, 04:05 AM
Its casue firefox sucks.

Im having a similar issue with some things on my forum like random ads in the first post and ajax. But its only in FireFox and not IE for some off the wall reason.

Valter
11-15-2006, 11:30 AM
OK but i really see no reason for this to happen. It's just switching DIVs.

itsid
11-16-2006, 01:54 AM
If I got it right
wysiwyg is init onload, if there is no such editor, ff doesn't know what to init at all.

So, why not just add both div-blocks at the same time setting the editor display to none, and after clicking that button just switch visibility ?
this way it should do ..

Or did i misunderstood?

'sid