[tw] Re: sticky popup / show popup plugin

2012-04-24 Thread Wim
Hi Måns,

thanks for your answer, but that's not really what I want.

I tried to change the ShowPopupPlugin like... Popup.show(1,1,{x:
650,y:400});

This shows the popup on another place on the screen, BUT relative to
the link.   I want to have the popup on a fixed place (like it is
possible with the ScrollBox - plugin) i.e. given x, y, w, h

Or can ScrollBox could be combined with ShopPopup?

Wim

On 23 apr, 17:19, Måns humam...@gmail.com wrote:
 HiWim









  Is it possible to put a sticky popup-box (tiddler) on a particular
  place on the screen?  Like you can do with ScrollboxPlugin?

  I want to have 2 boxes on my screen; on the left side a scrollbox
  with keywords (OK, I can do that...) and on the right side a
  popupbox with the explanation of the keyword a users has clicked on.
  The explanation-box should stay on the same place.  And should
  display another explanation when a user chooses another keyword.

  But with ShowpopupPlugin, it is only possible to choose above or
  not.

  Or is there another solution?  Like filling a ScrollBox with the
  tiddler of the choosen keyword.

  LIKE: if there's a keyword Tiddlywiki in my left box, with a link to
  the tiddler named Beginners, clicking on that link should display
  the tiddler Beginners in my right Scrollbox.

 You can have a scrolling tabs effect in the sidebartabs tiddler with
 Tobias' tabscroll macro:http://tobibeer.tiddlyspace.com/#TabScroll

 It has been setup to work only with the sidebarTabs div - maybe we
 could convice Tobias to make it more generic??

 Cheers Måns Mårtensson

-- 
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, nested tabs extension?

2012-04-24 Thread wolfgang
Sorry for not being more clear. It is an inline script and only works if 
Eric's InlineJavascriptPlugin (TiddlyTools) is installed.

Next create a tiddler with the script and name it for example:

SectionTabs

script
var here = window.story.findContainingTiddler(place);  
var tiddler = store.getTiddler(here.getAttribute(tiddler));  
var title = tiddler.title;  
var pattern=/(^|\n)!{1,6}([^eE\n][^nN\n][^dD\n])[^\n]*\n/g;
var matches=store.getTiddlerText(title).match(pattern);
var out='tabs txtCurrentTab ';
for (var i=0;imatches.length;i++) {
var 
m=matches[i].replace(/!{1,6}|\n/g,'').replace(//g,'\\x22').replace(//g,'\\').replace(/\}\}\}/g,'}\\}\\}');
out+= '{{'+m+'}} {{'+m+'}} {{'+title+'##'+m+'}} ';
}
out += '';
return out;
/script


No tags are required for this SectionTab tiddler. Then simple add tiddler 
SectionTab transclusion at the beginning of a tiddler, and comment the 
main content of it out. eg.

tiddler SectionTab/%

! Chapter 1

text

! Chaper 2

some more text

%/


It will create a tab for each chapter of that tidder.

-- 
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/-/UAYcvYeMXsoJ.
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: Where to place the code (jQuery etc)?

2012-04-24 Thread PMario
On Apr 24, 12:54 am, twgrp matiasg...@gmail.com wrote:
 In deed incredible that you threw this together just like that! It
 appears to be exactly what I'm hoping for!
:)
 And clever to split it up like that for other possible applications.
 (BTW, maybe the coming G-drive [1] will even replace picasa! To some
 extent it already appears Google are trying to make Google+ replace
 it. )
IMO g-drive is similar to dropbox and the like. It allways depends on
the API that is available for 3rd parties to connect to such services.
The picasaweb API is well documented and available. So we'll see ...

 1) It is only possible to display fully public stuff with your setup,
 yes? Picasaweb also has the option to only show for those who have a
 direct link and it has the Public Gallery and Unlisted Gallery
 views.
There is some little documentation about, what's possible with the
gallery plugin. See [1]
there is the

  authkey :   'optional-picasa-authkey',

which imo is the one you get if you restrict access at picasaweb album
settings.

I did a test, but the plugin doesn't show the thumb. Needs some more
testing see [2]

 2) For the gallery tiddler call, it appears all album covers are
 displayed regardless if I specify an ALBUM_NAME or all
should be fixed, but now names are _case sensitive_!

 3) How did you create that user name? Mine is only a long number. On
 your picasa page, your actual name shows up, not that user name that
 you use as an argument in the tiddler call.
It's your google user name. mine is same as gmail name.

 4) Album ID.. in deed. Did you do what I did:
 right click on the very album page to look at the html code. Search
 albumid and find it in a link ...albumid/thisisthenumber then
 *drag* it into the tiddler and then cut from. Not purdy..
jup. it is part of the album page html metadata. As I said, painful.

 ...However, why is this ID necessay? - why isn't the album *name*
Names are not unique, these IDs are.

 enough, just like when calling for the album gallery? (BTW... did you
 code this or is was it part of that package?)
There is some description [1], how to call this stuff. And there is
the demo page [3]. Where I had a look at the html source code.

Using InlineJavascriptPlugin and TW transclusion, is quite nice for
prototyping, because you can call jQuery plugins allmost like in the
examples. But most of the time, some TW wrapping is needed. eg:
UNIQE_ID which needs to be there, if you want to open several tiddlers
at the same time ... This could be part of the script but it
would need more programming. 

The next step would be to create a stand allone plugin, with named
params. Because as you can see, at the moment, the transclusion stuff
[2], does a lot of code duplication, which makes code maintenance more
difficult. ...

Creating the transclusion prototype needed about an hour. Playing with
the possibilities, restructuring the with: params and writing
documentation needed about 2 hours.

IMO this wouldn't be possible without TW/TS as a app framework. That's
one of the reasons why I like the TiddlyVerse :)

-m

[1] http://picasagallery.tiddlyspace.com/#EmbedPicasaGallery.js
[2] http://picasagallery.tiddlyspace.com/#PicasaTest
[3] http://oss.oetiker.ch/jquery/jquery.EmbedPicasaGallery.html

-- 
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: Where to place the code (jQuery etc)?

2012-04-24 Thread Måns
Hi Mario

I'm really enjoying your picasagallery implementation :-)

http://synopse.tiddlyspace.gir.dk/#Skagensmalerne

Great job!!
Thanks for sharing it!

@twgrp

Thanks for giving @pmario this challenge - the result is *very*
useful :-D

Cheers Måns Mårtensson

On 23 Apr., 20:28, PMario pmari...@gmail.com wrote:
 OK,
 I did some prototyping at picasagallery [1] space. If you include the
 picasagallery space into your space, you'll get everything, you need
 to work with the Picasa transclusion. (Prototype using
 InlineJavascriptPlugin)

 tiddler Picasa##gallery with:  which lists all available
 albums.

 tiddler Picasa##album with:  which creates direct access to
 a known album. There is a little problem. I don't know an easy way to
 get the album ID. (needs some more investigation)

 The with: params can be seen at the space [1].

 I did split the different plugins into several -plugins spaces [2]
 [3]. This makes it possible, to use the slimbox plugin without picasa
 gallery. Picasa gallery also works without slimbox. It just creates a
 default link, which loads the pic into the browser. So other viewers
 should be possible too. (but this is brainstorming allready :)

 have fun!
 -mario

 [1]http://picasagallery.tiddlyspace.com/
 [2]http://picasagallery-plugins.tiddlyspace.com/
 [3]http://slimbox2-plugins.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: Where to place the code (jQuery etc)?

2012-04-24 Thread PMario
Hi Mans,
Nice page :)

I think your album ID is: 572688429144203 which is the second
number in your link [1].

This: 104494666267512549882 seems to be the user id.

Also check your transclusion it should be Picasa##album ... if you
directly want to connect to the album. If ##album is used, also the
144 thumb size should work. (didn't test it)

Thanks for giving @pmario this challenge - the result is *very*
useful :-D
Good to see, that there are several usecases.

But be aware, that the whole stuff isn't very well tested. So there
may be some changes ;)

-m

[1] 
https://plus.google.com/photos/104494666267512549882/albums/572688429144203?banner=pwa

-- 
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] Prevent browser freezing on runaway code

2012-04-24 Thread Craig in Calgary
When I experiment with code that loops through tiddlers, tags, etc., 
occasionally I (temporarily) create a monster: the browser freezes because 
javascript is running and not likely to finish until the computer runs out 
of memory. I would like to implement a wrapper I can place around test code 
that can be configured to halt the code after a pre-configured amount of 
time or if a pre-configured amount of memory is allocated. Halt after X ms 
would be a sufficient solution. Halt if memory allocation  X MB would be 
gravy.

1. Can such a safety net be coded and successfully implemented?
2. Who among you TW gurus would create such a masterpiece, knowing that 
while you will have my undying praise, the only other reward for your 
efforts will be the satisfaction of knowing you have made a valuable 
contribution to our community.

Thank you to anyone providing suggestions, feedback, and/or solutions.

Begging Craig in Calgary

-- 
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/-/8sgFZpyaI_kJ.
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: Where to place the code (jQuery etc)?

2012-04-24 Thread Måns
Hi Mario

 Nice page :)

 I think your album ID is: 572688429144203 which is the second
 number in your link [1].

 This: 104494666267512549882 seems to be the user id.

Thanks a lot :-D

Cheers Måns Mårtensson

-- 
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] Picasa gallery display in TW

2012-04-24 Thread twgrp
On Apr 24, 2:15 pm, PMario pmari...@gmail.com wrote:

       authkey :           'optional-picasa-authkey',
 ...
 I did a test, but the plugin doesn't show the thumb. Needs some more
 testing see [2]

Yeah, it would be great if it could work. (Apparently picasa is fully
connected to Google+ meaning that if you make a picture/album fully
public in picasa then it is so also in G+. Annoying to have anyone
watch the kids pics I store in Picasa, not to mention pics of the
sofa I'm selling etc.)


 examples. But most of the time, some TW wrapping is needed. eg:
 UNIQE_ID which needs to be there, if you want to open several tiddlers
 at the same time ... This could be part of the script but it
 would need more programming. 

With open several tiddlers do you mean with one pic/tumbnail per
tiddler, or why several tids?

Anyway, that is a great idea. If you allow me:
Having each loaded thumbnail be a link to an (eventual?) tiddler with
the picture. That current enlarge+black background display is very
good and deserves to stay, but it would be awesome if a gallery is
loaded and you're allowed to handle with one picture at a time in TW.
If it is at all possible (I'm going crazy here) there could be eg. a
small icon under each thumbnail. If the tumbnail itself is clicked
then that enlarged/black bgr is displayed but if the small icon is
clicked, the tiddler opens (is created?) showing the enlarged picture
(plus any additional tiddler content). And (going even crazier)
imagine if one could fET these things on tags and get a resulting list
of icons? That would really make for easy made galleries :-)

Considering how there are relatively few de facto products for photo
storage, and the enormous popularity of pics/clips, it is a bit
surprising these things are not very established in TiddlyVerse.
(...said the big-mouth who can't code...)


I'll try to find some easier way for that album ID at the picasa
forums.

:-)

-- 
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.