Hi!
I've done some more investigating. It turns out that my problem is
actually several problems and it's not my plugins messing up anything.
I simply reimported my wikis into fresh wikis and they worked again.
Another problem was that in my InfoboxTablesPlugin (4), I hadn't
defined the defaul display mode for the table and the normally hidden
div, so "inherit" apparently didn't know what to inherit. So that's
fixed.
But the remaining problem is that the table rows still aren't hidden
in IE. Each row has its own unique ID, which is used by setStylesheet
to either hide the row or display it. The other browsers hide the rows
correctly, but IE doesn't.
What's more, in example (3), there are multiple tables and the first
table behaves differently (hides the rows, but not section rows) than
the other tables of the same type.
On top of that, example (3) is actually a copy of (2), where the first
table behaves like the rest and doesn't hide anything.
Every single row has a unique ID.
This is my function for hiding the rows (beware googlewrap):
if ((param === "unknown") && (paramListParsed[k].indexOf("Section-")
=== -1)) {
setStylesheet("#" + TTIX + paramListParsed[k].replace(/Image-|\(\([\w
\s]*?\)\)| /g, "") + " {display: none;}", "Infobox" + TTIX +
paramListParsed[k].replace(/Image-|\(\([\w\s]*?\)\)| /g, ""));
} else {
setStylesheet("#" + TTIX + paramListParsed[k].replace(/Image-|\(\([\w
\s]*?\)\)| /g, "") + " {display: inherit;}", "Infobox" + TTIX +
paramListParsed[k].replace(/Image-|\(\([\w\s]*?\)\)| /g, ""));
}
So basically:
setStylesheet("#UniqueRowID {display: none;}", "InfoboxUniqueRowID");
TTIX is short for title, type and ID.
paramListParsed[k](...) is the name of the parameter.
The ID's are generated correctly, but the dispaly value is apparently
not passed along.
I even set up a special class
.InfoboxTableRow {display: inline;}
and applied it to all rows, so that there would be a default mode, but
nothing.
Can someone explain the setStylesheet function? I was checking it out
on Eric's insideTW (1) and I noticed it takes three parameters. Am I
missing something? Does IE require some special treatment?
(1) http://www.tiddlytools.com/insideTW
(2) http://infoboxes.tiddlyspot.com/#[[Example with six infoboxes with
different amount of data]]
(3) http://infoboxes.tiddlyspot.com/#[[Example with six infoboxes with
different amount of data (1)-COPY]]
(4) http://infoboxes.tiddlyspot.com/
w
On 11 jul., 21:35, whatever <[email protected]> wrote:
> Hmm, I tested on vanila TW265 with ToggleTiddlerTags and it works, so
> I'm guessing the problem is somewhere else. I imported the
> ToggleTiddlerTags into another TW265 where I'm working on my
> CrewListPlugin (2) (which also uses the setStylesheet function and
> which I used initially to test with ToggleTiddlerTags) and
> ToggleTiddlerTags broke again. I also have this issue with my
> InfoboxTablesPlugin (1) and it appears in one of my other wikis, where
> I have the CrewListPlugin, but not in another, which uses none of my
> plugins.
> I know ToggleTiddlerTags isn't the problem, but something breaks the
> setStylesheet function with "display:none;" in IE and I can't figure
> out what. It seems I'm using it incorrectly. Can someone point me in
> the right direction?
>
> (1)http://infoboxes.tiddlyspot.com/
> (2)http://crewlist.tiddlyspot.com
>
> w
>
> On 11 jul., 21:11, whatever <[email protected]> wrote:
>
>
>
> > Hi!
>
> > It seems that Internet Explorer 9 has an issue with:
> > setStylesheet(".YourClass {display: none;}", "YourClass");
> > The "display" works in Internet Explorer with "inherit", "block",
> > "inline", "table-cell" and others, but it seems to break on "none". I
> > have this problem with a plugin I'm working on and I also noticed it
> > when I was testing Vincent's TableEdit plugin (1). The function hides
> > stuff correctly in other browsers, but breaks in Internet Explorer. I
> > checked with Eric's ToggleTiddlerTags (2), which also uses this
> > function, and it also breaks in IE (32-bit and 64-bit). I use TW 2.6.5
> > on Windows 7. Am I missing something or is it a bug?
>
> > (1)http://groups.google.com/group/tiddlywiki/browse_thread/thread/c27569...
> > (2)http://www.tiddlytools.com/#ToggleTiddlerTags
>
> > w
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.