Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 969
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Collapsible Portal Blocks on IE and FF - Not collapsing

Started by Cholo, January 14, 2010, 11:19:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cholo

I'm having a strange problem I can't seem to figure out.  When using Chrome and Safari everything works fine, but with FF and IE, collapsible portal blocks will not collapse.  (This is not limited to portal blocks, but all collapsibles in SP).

Also (and I'm not sure if this is related or not), but I can't get a bit of javascript to work in a custom html block in FF or IE either.  Once again, the script works fine in Chrome and Safari. Tested on Snow Leopard and Windows XP.

Collapsible SMF areas are working on all browsers.

Link is Here.

Any help is appreciated. 

H

There is a problem with your custom theme :). You're not defining some of the javascript that is part of the SMF default theme. I suggest you debug both by comparing your theme with the default and using the javascript error console in Firefox (Tools > Error Console)
-HFormer Simple Machines Support

Cholo

Thanks for the response H.

Another interesting thing about this is that while my blocks won't collapse/expand on mouseclick, they do expand/collapse on browser refresh.  The slideshow script I was trying to use was giving me a lot of errors, but I don't think that's the culprit.  It seems to me like this is:

document.getElementById("sp_collapse_" + id).src = smf_images_url + (mode ? "/collapse.gif" : "/expand.gif");

The strange thing is that I edited my index.template.php to this:

document.getElementById("sp_collapse_" + id).src = smf_images_url + (mode ? "/images/collapse.gif" : "/images/expand.gif");

but the error console is not recognizing the change.  It seems to me that this is the area of code causing the problem, but I could be wrong.  If you have any tips, I'd appreciate it a ton.  Thanks again.

I'm still confused as to why this problem only manifests itself on FF and IE too.

H

You're closing script tags using the same tag as the opening script. While this is technically valid XML/XHTML I wonder if this is causing a problem with IE and FFx? Perhaps this is why SMF doesn't use this method itself?

This might be a shot in the dark, however I just noticed that certain script portions weren't highlighted correctly in my source editor compared to the SMF default
-HFormer Simple Machines Support