Re: import in backstage
It hasn't worked for me for ages. When I select a locally, i
automatically adds the file i am importing into. when this doesn't
happen the import often freezes. I cut and paste stuff in and have
done for ages.

Re selecting lists
jQuery selectors [1] is a good place to start. I think that the jQuery
documentation will be easy to follow and that writing tiddlywiki
documentation before the full jQueryification might be a waste of
time. jQuery is a lot easier to learn than TW.

<<tiddler nameOfTiddlerWithjQuery>>
Morris said: Assuming I know nothing about jQuery (which is nearly true;-) how
would one go about to implementing what you put here?

The discovery came from when I went down to the Osmoplex, I saw Simon
McMannus using jQuery in Firebug. I didn't understand what he was
doing at the time but found out that  you can type jQuery into the
firebug console to test it out. The breakthough came from jQuery help
that FND put me onto [2] where the recommendation is to try the code
in Firebug.

First i tried stuff like
jQuery("#mainMenu").hide();
jQuery("#mainMenu").show();

I wanted to get certain menus to show and others to hide after a
particular tiddler had been read. I also experimented with
jQuery(".tiddler").fadeIn(slow);

I then put them into tiddlers between script tags -- something you can
do when you have inlinescriptplugin
<script>
code here
</script>

Then once this works, and i want to use it again, I cut and paste it
into a new tiddler. Then each time i want to use it i can use tiddler
transclusion;
<<tiddler nameOfTiddlerWithjQuery>>

Its a bit like a macro I guess, but you have to have the prefix tiddler.


[1] http://docs.jquery.com/Selectors
[2] http://docs.jquery.com/Types


ALex

>> Probably one fix would be to wrap the targeted list in a class
>> {{myclass{...list}}} and then specify that list in the jQuery selector
>> (e.g. jQuery("myclass ul").dragsort() ;) ...

Or use another jQuery selector to pick up the tiddler  by id.


> I was going to run some tests but I can't import anything into
> https://files.getdropbox.com/u/1316865/DragSortTW.html
> because it is version 2.5.2
>
> FND says he can using backstage but I can't.  No one else has
> responded to posts on the import problems I am experiencing so I guess
> it's just my system.
>
> Morris
>
>
> On Jul 9, 3:41 pm, "Mark S." <[email protected]> wrote:
>> Actually, I was wondering if there wouldn't be some sort of clash. The
>> sample code should work on ALL unordered lists -- not just the lists
>> inside the current tiddler. Once you've activated the sample code, it
>> applies to the entries in the sidebar, which are actually list items.
>> I'm guessing that instead of working as links, the code is grabbing
>> the focus in preparation for drop-sort. If you click on the "getting
>> started" from the left menu, you can open up a tiddler still.
>>
>> Probably one fix would be to wrap the targeted list in a class
>> {{myclass{...list}}} and then specify that list in the jQuery selector
>> (e.g. jQuery("myclass ul").dragsort() ;) ... but I'm too lazy to
>> try ;-)
>>
>> -- Mark
>>
>> On Jul 8, 8:45 pm, Ken Girard <[email protected]> wrote:
>>
>> > Oddness found.
>> > I tried out the Example1 demo, closed all tiddlers, and then couldn't
>> > get any tiddlers to open after that. The screen just shimmied a
>> > little, but no tiddlers showed up.
>> > Once I refreshed it was working just fine, so then I duplicated what i
>> > had done the last time with the same results.
>> > This was in Firefox 3.5b4pre on Ubuntu.
>>
>> > Ken Girard
>>
>> > On Jul 8, 7:44 pm, Morris Gray <[email protected]> wrote:
>>
>> > > On Jul 8, 11:35 pm, Alex Hough <[email protected]> wrote:
>>
>> > > > Mark,
>>
>> > > > I looked at your tree plugin to work out where to include the plugin
>> > > > (PostbodyMarkup)
>>
>> > > Another step:
>>
>> > >https://files.getdropbox.com/u/1316865/DragSortTW.html
>>
>> > > I was thinking that MarkupPostBody could get pretty crowded after a
>> > > while.  Why not take the <script> tags off of it and run it as a
>> > > systemConfig plugin.
>>
>> > > Cut the code from MarkupPostBody create a tiddler called
>> > > DragSortPlugin and tag it systemConfig - save and reload.
>>
>> > > Now it's not such a drag on MarkupPostBody;-)
>>
>> > > Morris
>>
>> > > On Jul 8, 11:35 pm, Alex Hough <[email protected]> wrote:
>>
>> > > > Mark,
>>
>> > > > I looked at your tree plugin to work out where to include the plugin
>> > > > (PostbodyMarkup)
>> > > > I this plugin, there is an external link to make it persistent.
>> > > > Perhaps something similar for this one?
>>
>> > > > Alex
>>
>> > > > 2009/7/8 Mark S. <[email protected]>:
>>
>> > > > > Interesting, and with only one line of code!
>>
>> > > > > Is there a way to make the effect permanent? It seems to disappear 
>> > > > > the
>> > > > > moment the tiddler is open. Even if you save the file and reload, it
>> > > > > disappears. I think to be useful, the effect would need to stick
>> > > > > around.
>>
>> > > > > -- Mark
>>
>> > > > > On Jul 8, 1:17 am, Alex Hough <[email protected]> wrote:
>> > > > >> Following Moris's suggestion [1] here is a small  a demonstration 
>> > > > >> [2]
>> > > > >> using a jQuery plugin - DropSort.
>>
>> > > > >> Alex
>>
>> > > > >> [1]http://groups.google.com/group/TiddlyWiki/msg/a9139b194e7f2139
>> > > > >> [2]https://files.getdropbox.com/u/1316865/DragSortTW.html
>>
>> > > > --http://www.multiurl.com/g/64
> >
>



-- 
http://www.multiurl.com/g/64

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

Reply via email to