Re: [tw] Re: Writing a plugin...

2011-12-22 Thread Alex S. Garcia
Hey guys,

I've been meaning to respond for a while now, but I was delayed by an 
unexpected family emergency :-o

In any case, I wished to thank you both, Mans and PMario, for your responses. 
I'm not sure yet if they will really help me solve the problem I mentioned 
(I've bookmarked those links and shall study them more thoroughly) but they 
should at the least help me better understand JS, which can't hurt in the long 
run ;-)



Alex.

-

On Tuesday 13 December 2011, Måns wrote:
 I haven't got a clue if this will help you - it seems to be a good
 ressource though:
 
 http://dochub.io/#jquery/after
 
 Cheers Måns Mårtensson
 
 On 13 Dec., 09:43, Måns humam...@gmail.com wrote:
  This might help as well:
  
  http://www.tiddlytools.com/insideTW/
  
  Cheers Måns Mårtensson
  
  On 13 Dec., 09:38, Måns humam...@gmail.com wrote:
   Hi Alex
   
   Pmario made this:http://helloworld.tiddlyspace.com/
   This might answer some of your
   questions:http://helloworld.tiddlyspace.com/#HelloWorldManyParamsPlugi
   n Maybe you'll find some usefull information at
   tiddlywiki.org:http://tiddlywiki.org/#%5B%5BBest%20Practices%5D%5D
   
   Cheers Måns Mårtensson
   
   On 10 Dec., 20:07, Alex S. Garcia a...@mvdbase.com wrote:
Hello everyone,

I'm noew to this list, though I have been using TW for about a year
now and absolutely love it.

I've recently thought of a feature it doesn't have and which would be
extremely useful to me. So I figured I'd write a plugin to add the
functionality.

However, I've never written anything in JavaScript, LOL. I do have
some solid experience with HTML and php/MySQL, which helps a bit, as
there are some similarities. And I spent a lot of time last night
and today learning JS basics (gotta start somewhere) and looking at
the TW source code.

So I wrote my plugin and I *think* it should work, except of course
it doesn't ;-)

My main problem is finding the bits and pieces I need in the code,
since it's fairly complex and spread all over. Plus, I'm not really
finding any developing tutorials on the web that are specifically
aimed at TW. The best resource I've found so far is tiddlywiki.org,
which is great, but far from complete at the moment and so doesn't
quite answer (yet) all of my questions.

For instance, I can't figure out how to append some text at the end
of the tagPrompt string. Can it even be done?

Also, when you first define a function at the beginning of a plugin,
I see the standard format is to use
function(place,macroName,params,wikifier,paramString,tiddler). I
figured out place, macroName, params... and tiddler is obvious, but
what are the other two?

And, also, how do I know what exactly is going into params?

Alex.
--
-
http://www.alexsgarcia.com/http://www.myspace.com/asglyrics Music
Videos
:http://mvdbase.com[database]http://www.freelists.org/list/mv[mailin
g-list]

-


-- 
-
http://www.alexsgarcia.com/
http://www.myspace.com/asglyrics
Music Videos : http://mvdbase.com [database]
http://www.freelists.org/list/mv [mailing-list]
-

-- 
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: Writing a plugin...

2011-12-13 Thread PMario
On Dec 10, 8:07 pm, Alex S. Garcia a...@mvdbase.com wrote:
 My main problem is finding the bits and pieces I need in the code, since it's
 fairly complex and spread all over. Plus, I'm not really finding any
 developing tutorials on the web that are specifically aimed at TW. The best
 resource I've found so far is tiddlywiki.org, which is great, but far from
 complete at the moment and so doesn't quite answer (yet) all of my questions.

This may be a hint: http://oldwiki.tiddlywiki.org/wiki/Dev:Core_Code_Overview
-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.