[tw] Re: Show when tagged in tiddler content

2012-06-30 Thread Julio
Hello Eric,

That works...thanks a million!
I definitely knew something was amiss.


On Saturday, June 30, 2012 5:30:08 PM UTC-4, Eric Shulman wrote:
>
> > I tried to play around with this and follow on. 
> > I created a tiddler [[tagInTiddler1]] and then in my 
> > css tiddler [[jpen24_Css]] I put in your css code. 
> > For some odd reason the "work" portion will not stay hidden when not 
> tagged. 
> > The ''personal'' portion is hidden fine though. 
> > Did I do something wrong or am I overlooking something? 
>
> The problem is due to the notation you pasted into your CSS, 
> immediately preceding the definitions for .work and .personal CSS 
> classes.  You need to make sure that non-CSS content is properly 
> enclosed in CSS comment markers (i.e., /* and */).  In addition, to 
> allow wiki-formatted content within the note, you can use the TW 
> 'wikified comment' syntax (/*** and ***/, each on it's own line), like 
> this: 
>
> /*** 
> ''Reference:'' 
> https://groups.google.com/forum/?fromgroups#!topic/tiddlywiki/SEIPnAVxRA0 
>
> ↓
>  
>
> ***/ 
>
> With the stylesheet content properly commented, it no longer 
> interferes with the CSS definitions that follow it, and the selective 
> display of tiddler content within the CSS wrappers then works as 
> intended. 
>
> enjoy, 
> -e 
> Eric Shulman 
> TiddlyTools / ELS Design Studios 
>
> WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION 
>http://www.TiddlyTools.com/#Donations 
> Professional TiddlyWiki Consulting Services... 
> Analysis, Design, and Custom Solutions: 
>http://www.TiddlyTools.com/#Contact 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/g7H-iV4LTycJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] [concept] Method to hide/show bits of tiddler content. Other suggestions?

2012-06-30 Thread twgrp
Are there any suggestions how to hide and show *bits* of a tiddler?

For example, I want to show this first half of this sentence but this
second half only if some criteria is fulfilled.

A more practical application (that I use!) is to have a "+" (i.e a
newHere or similar) appear next to each item in forEach-generated
lists... but the "+" only appears for me, not to a visitor!

I achieve this with a simple macro call, for each item in the fET, to
a tiddler containing <> which is set as
private. The result is a that I can easily create subtiddlers to the
listed items but the visitor can't see any such button at all.

Are there other methods to show or hide bits on command?

I guess the ideal would be some kind of local tags like:
This is public but this is private and some things
are  only relevant for your eyes such as secrets...

There is Simons great HideWhenPlugin[1] but this is applied in
ViewTemplate and EditTemplate so it is not as specific inside tiddlers
and it has to be defined in advance. Or am I missing something? Here
are two examples from his plugin:

[[TaskToolbar]]


Other suggestions? Now with tiddlyspace, things are much more out in
the open so I see a need for greater control on this.

Thank you!



[1] http://mptw.tiddlyspot.com/#HideWhenPlugin



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Inline Editing of tables

2012-06-30 Thread Vincent Yeh
On my computer the only browser that works just as expected is Google 
Chrome and no one else.

   - FF doesn't respond to mouse clicking so no way to start editing.
   - IE9 doesn't respond correctly to  and  so the edit box 
   won't go away. Looks like it has problems saving the file.
   - TWEdit on the iPad gives me the rendered HTML codes instead of 
   wikitext. For example, the TableEdit plugin receives text in red instead of the expected 
   @@color:red;text in red@@.
   
Hm, I have no idea about these at all! I shall need a lot of time 
to fix them. If some has any idea to fix one of those, please help to speed 
up!. Thanks a lot!

Vincent

On Tuesday, June 26, 2012 9:09:22 AM UTC+8, Vincent Yeh wrote:
>
>
> Anthony, thank you for trying the plugin and giving feedbacks. And for 
> your last question on uploading, I have no idea how to do that currently (I 
> have experiences in programming but not much in javascript and the web 
> things.) It will take me sometime to figure out. If someone has answers and 
> would like to contribute, it will be highly appreciated.
>
> Eric, thank you for pointing out the key point which I never knew myself.
>
> I have been using Google Chrome for the development of this plugin 
> (inspired by and modified from TableSortingPlugin v2.0.2 by Saq Imtiaz 
> and GridPlugin v2.0.7 by Eric Shulman. Many thanks to them.) It seems to 
> work just fine for me and I turned out to forget about other browsers. Next 
> time I will try them out myself but as mentioned above most likely I do not 
> have the knowledge to fix the cross-browser things. I shall be relying on 
> more experienced people to do that.
>
> Vincent
>
> On Tuesday, June 26, 2012 2:05:25 AM UTC+8, anthony wrote:
>>
>> Last question...sorry for so much spam...
>>
>> I am using this wiki as a webbased system, when I edit the table I would 
>> like for it to upload to the web versus to a local file...is there anyway 
>> for that to be done?
>>
>> On Monday, June 25, 2012 12:55:56 PM UTC-5, anthony wrote:
>>>
>>> spamming...sorry
>>>
>>> I fixed the issue with IE, it was a version issue. I was using IE8 
>>> (preferred over here) but upgraded to 9 and it is working PERFECTLY. this 
>>> plugin is going to make our tiddlywiki amazing in terms of what we were 
>>> trying to do.
>>>
>>> So in short I think IE8 may not work properly with this plugin.
>>>
>>> On Monday, June 25, 2012 12:22:23 PM UTC-5, Eric Shulman wrote:



 On Jun 25, 8:23 am, anthony  wrote: 
 > Just tried your plugin...am I missing something? I loaded the plugin 
 and 
 > tried your example both on my tiddly and yours and neither were 
 > editable...maybe I am just missing something though. 

 The plugin works in IE, but not in FF or other browsers. 

 The reason is because IE uses a different method of processing 
 events.  In IE, all events are processed by first setting a global 
 variable "event" and then invoking the appropriate onclick handler to 
 process the event.  However, in other browsers, the event is *passed* 
 to the handler as a parameter. 

 The plugin problem arises due to this line of code: 

cell.onclick = function(){editInPlace(this,event);}; 

 In order to make this cross-browser compatible, it should be re- 
 written as: 

cell.onclick = function(ev){editInPlace(this,ev|event);}; 

 This allows non-IE browsers to properly use the passed in event as a 
 variable named 'ev', while IE continues to fallback to using the 
 global 'event' variable. 

 enjoy, 
 -e 
 Eric Shulman 
 TiddlyTools / ELS Design Studios 

 WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION 
http://www.TiddlyTools.com/#Donations 
 Professional TiddlyWiki Consulting Services... 
 Analysis, Design, and Custom Solutions: 
http://www.TiddlyTools.com/#Contact 





-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/k17Mva6yEgMJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Show when tagged in tiddler content

2012-06-30 Thread Eric Shulman
> I tried to play around with this and follow on.
> I created a tiddler [[tagInTiddler1]] and then in my
> css tiddler [[jpen24_Css]] I put in your css code.
> For some odd reason the "work" portion will not stay hidden when not tagged.
> The ''personal'' portion is hidden fine though.
> Did I do something wrong or am I overlooking something?

The problem is due to the notation you pasted into your CSS,
immediately preceding the definitions for .work and .personal CSS
classes.  You need to make sure that non-CSS content is properly
enclosed in CSS comment markers (i.e., /* and */).  In addition, to
allow wiki-formatted content within the note, you can use the TW
'wikified comment' syntax (/*** and ***/, each on it's own line), like
this:

/***
''Reference:'' 
https://groups.google.com/forum/?fromgroups#!topic/tiddlywiki/SEIPnAVxRA0
↓
***/

With the stylesheet content properly commented, it no longer
interferes with the CSS definitions that follow it, and the selective
display of tiddler content within the CSS wrappers then works as
intended.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION
   http://www.TiddlyTools.com/#Donations
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Show when tagged in tiddler content

2012-06-30 Thread Julio
Hello Eric and all,

I tried to play around with this and follow on.
I created a tiddler [[tagInTiddler1]] and then in my 
css tiddler [[jpen24_Css]] I put in your css code.

For some odd reason the "work" portion will not stay hidden when not tagged.
The ''personal'' portion is hidden fine though.

Did I do something wrong or am I overlooking something?
Below I will throw in a minimal test case to show you.

https://dl.dropbox.com/u/68910256/j_unplugged.html

Best regards,

Julio


On Wednesday, June 27, 2012 12:02:47 AM UTC-4, Eric Shulman wrote:
>
> > I have tiddlers tagged "work" and "personal" 
> > 
> > I would like to have part of a tiddler rendered if the tiddler is tagged 
> > work and another part if it is tagged personal. 
>
> Add the following CSS to your StyleSheet: 
>.work { display:none; } 
>div[tags~="work"].tiddler .work { display:inline; } 
>.personal { display:none; } 
>div[tags~="personal"].tiddler .personal { display:inline; } 
> Next, in your tiddler content, write something like this: 
>{{work{this is work content}}} 
>{{personal{this is personal content}}} 
> and tag the tiddler with either "work" or "personal" (or neither or 
> both!).  By default, the CSS-wrapped content is hidden, and will only 
> be displayed if the tiddler is tagged with the corresponding tag 
> value.  QED. 
>
> enjoy, 
> -e 
> Eric Shulman 
> TiddlyTools / ELS Design Studios 
>
> WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION 
>http://www.TiddlyTools.com/#Donations 
> Professional TiddlyWiki Consulting Services... 
> Analysis, Design, and Custom Solutions: 
>http://www.TiddlyTools.com/#Contact 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/udlab3vjkCcJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: TiddlySpot Support

2012-06-30 Thread Alvin
> Simon Baird is the guy who generously is providing tiddlyspot for us. 

Thank you, twgrp. I've written to Simon many times in the past, and yes, he 
is generous.

On Friday, June 29, 2012 7:05:49 AM UTC-5, Alvin wrote:
>
> My TiddlySpot file is coming up blank.  Who do I contact or what do I do 
> to correct this?  Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/8_WC97MXAwQJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Show when tagged in tiddler content

2012-06-30 Thread HansWobbe
A really neat and useful method that hadn't occurred to me, before this.  
Thanks for sharing!

On Wednesday, June 27, 2012 12:02:47 AM UTC-4, Eric Shulman wrote:
>
>
> Add the following CSS to your StyleSheet: 
>.work { display:none; } 
>div[tags~="work"].tiddler .work { display:inline; } 
>.personal { display:none; } 
>div[tags~="personal"].tiddler .personal { display:inline; } 
> Next, in your tiddler content, write something like this: 
>{{work{this is work content}}} 
>{{personal{this is personal content}}} 
> and tag the tiddler with either "work" or "personal" (or neither or 
> both!).  By default, the CSS-wrapped content is hidden, and will only 
> be displayed if the tiddler is tagged with the corresponding tag 
> value.  QED. 
>
> enjoy, 
> -e 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/tfWjLsUE9AEJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: TiddlySpot Support

2012-06-30 Thread twgrp
Please note there have been issues over the past week due to the host,
see info:
http://tiddlyspot.blogspot.com/
Simon Baird is the guy who generously is providing tiddlyspot for us.

:-)

On Jun 29, 2:05 pm, Alvin  wrote:
> My TiddlySpot file is coming up blank.  Who do I contact or what do I do to
> correct this?  Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: How indent all listed content, not only first paragraph

2012-06-30 Thread twgrp
Thank you Mario (as always), but I put up a simple test case
http://tabort4.tiddlyspace.com/#fet (pmario added)

> <>

yields the same result: second paragraph not indented. BTW, that's a
tiddler macro argument I'm not familiar with and was quite surprised
to see it work at all!

...but maybe it is a ".indent CSS" matter. I find it in
StyleSheetLayout where it says:

#contentWrapper
.indent {margin-left:3em;}

Not sure what to do...

:-)


On Jun 30, 4:37 pm, PMario  wrote:
> How does your .indent CSS look like?
>
> can yout try:
>
> <         write   '"* [["+tiddler.title+"]]\n< +"]] "indent">>\n\n"'
>
> Transcluding a tiddler like:
> <>
>
> is very similar to your snippet but imo produces a different HTML DOM
> structure.
>
> I didn't test it. so it is a hint only
> -m

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: How indent all listed content, not only first paragraph

2012-06-30 Thread PMario
How does your .indent CSS look like?

can yout try:

<>\n\n"'

Transcluding a tiddler like:
<>

is very similar to your snippet but imo produces a different HTML DOM
structure.

I didn't test it. so it is a hint only
-m

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Editing transcluded content

2012-06-30 Thread PMario
There is no general rule of thumb. If you work a some time with TW, it
will be relatively easy to find the tiddler you need to open for
editing.

So imo you'll need to find a way, to link to tiddlers for editing,
that fits best to your usecase.

As a new user, I can imagine I'd like to have something similar to a
"sorce: ... " link at the end of the transcluded text.

eg:
tab1 | tab2 | tab3

some text,  some text,
some text,  some text,

source: [[tabXTiddler]]

But this would need to manually add this type of link to every
tiddler :( and if the tiddler name changes it needs manual fixing
too :/

May be @others have better hints

have fun!
mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] How indent all listed content, not only first paragraph

2012-06-30 Thread twgrp
Via a simple forEach I'm generating a list to show the title and
contents of each listed tiddler.

For each listed item, the first paragraph indents nicely but the
indentation is lost once there is a new paragraph/line break, like
this:

-
* title1
__paragraph1, nicely indented

paragraph2, shood be indentated too... but, nope, ain't
-


<>

I figure there must be a solution because if I use eg. second level
bullets (**) all paragraphs indent properly. I've searched the
archives but I can't quite find anything discussing this particular
aspect.

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: How to hide plugin tiddlers?

2012-06-30 Thread PMario
tag them
excludeLists .. <> <> ... don't see them
excludeSearch .. search doesn't list it
excludeMissing .. not shown in missing tiddlers tab

If you want to hide excludeABC from the tags list you'll need to
create a tiddler eg: excludeLists and tag it excludeLists, exclude ...
to hide it too.

But  be aware, that an advanced TW user will have _no_ problem to
see stuff that is hidden like this. So it doesn't add any type of
security!

Some plugins may not care about excludeABC tags ... You'll need to
post an issue. So the plugin dev may fix it.

==

TiddlySpace specific
excludePublisher .. "batch handling" can's see them (local tiddlers)

have fun!
mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: TW and (Alex Gorbatchev's) SyntaxHighlighter

2012-06-30 Thread PMario
On Jun 30, 1:28 am, Bertrand Goetzmann 
wrote:
> Is someone succeeded to integrate TW with Alex Gorbatchev's
> SyntaxHighlighter (http://alexgorbatchev.com/SyntaxHighlighter/) with a
> plugin, or in an other way?
yup.
Do you only need syntax highlighting for documentation purpose only
[1] or do you want realtime syntax highlighting in edit mode [2] too?

Do you need it with for TiddlySpace or a file TW? I think I do have
File versions for sh [1] too. somewhere, may be ... :)

[1] http://syntaxhighlighter.tiddlyspace.com/
[2] http://codemirror.tiddlyspace.com/

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: html javascript not working in TW?

2012-06-30 Thread PMario
TiddlyWiki is more like an application, than an HTML page.

Everything in TW is stored inside a tiddler. While tiddlers are only
stored inside the HTML file, they are not automatically handeld by the
browsers script engine. They are handled by the TW core program. So
the "handling" is a bit different.

One common html way to acitvate libraries and scripts is similar to
this:


  
Some title text
a) 
b) 
...
c)
  

d)
externalLib.doSomething = function (externalGlobalVar)  {
   // do some stuff here.
}
  

  


If you copy this snippet into a tiddler it will __not__ work and it
shouldn't, because it doesn't fit TWs structure.



In TW terms: (see markers above)

a) is done with StyleSheet tiddlers, that are activated by the TW
core.

b) are library tiddlers tagged systemConfig.

d) is a plugin call

=
The TW way would be similar to this:

a)
Copy the content of the CSS (only if it is _really_ needed) to a
StyleSheetLibX tiddler. If it says eg: reset.css _don't_ use it. Only
use library specific css.

Call this tiddler from StyleSheet

eg: StyleSheet contains
[[StyleSheetLibX]]

b)
Copy the _content_ of the externalLibrary.js into a tiddler named
externalLibrary.js and tag it systemConfig

c) Go to tiddlytools.com and find InlineJavascriptPlugin [1] and
import it to your test TW. Be sure to read and understand
InlineJavascriptPluginInfo!
tag it systemConfig. IinlineJavascriptPlugin activates the use of
 tags inside a tiddler. This is super cool for fast
prototyping, since you can use most of externalLibraries
documentation. If you know how things work, you should create TW
plugins.

d) copy something similar to

externalLib.doSomething = function (externalGlobalVar)  {
   // do some stuff here.
}
  

into a tiddler. __don't__ tag it systemConfig


If the library documentation says something like:


externalLib.doSomething = function (externalGlobalVar)  {
   // do some stuff here.
}


_remove_ the src="bla bla" it is not needed with inline javascript
plugin, if you did step a) to c) right.


You can use



to create a button. This will make debugging easier.

For debugging you should use FireBug browser AddOn for FireFox or the
built in DevTools in Chrome and IE9+



If you would have added a link to your library of desire, the examples
could be more prezise but imo it will give you some hints :)

have fun!
mario

[1] http://www.tiddlytools.com/#InlineJavascriptPlugin

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] html javascript not working in TW?

2012-06-30 Thread tejjyid
I have a couple of functions in the head of an html page, which work fine 
when called from a script elsewhere on that page. I wanted to implement the 
same functionality in TW, so I copied the JS which defines the functions to 
a sysConfig-tagged tiddler, then tried using the functions in another 
tiddler. This fails with "string.match() is not a function".

This is all extremely new to me, so apologies if this is something 
blindingly obvious. I will keep nutting away at it, but maybe someone can 
save me some time? It's a (the jspos2) POS tagger, in case you're 
interested.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/k5JZ0884zegJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.