> I wonder if I understand what you wrote correctly:::
Apparently not. Please don't take offense, but...
I realize that you are trying your best, and that you earnestly want
to learn how to do what you are doing... it just seems that sometimes
you are trying to do things that are *way* over your head (in terms of
technical comprehension), at which point you begin to 'thrash about',
as evidenced by your creative attempts to 'bash' different syntax
together in ways that either don't make sense or simply were never
suggested (or even implied) by my examples.
I really *do* want to help, but, despite my best attempts to provide
clear examples of correct syntax, you don't seem to be developing any
kind of consistent understanding of the syntax being used.
In all honesty, the need for repeated clarifications are getting to be
quite frustrating and even a bit annoying at times... your questions
are starting to wear me out, and I find myself becoming hesitant to
respond because of the lengthy, frequent back-and-forth followup
exchanges that seems to occur regardless of how clearly I think I've
explained things.
For example, one example of the <<tiddler>> macro that I included in
my previous message was:
<<tiddler MoodleFrame with: "1.2.3.4">>
You responded by asking:
> Can I make a tiddler called [[ipGoesHere]] containing: <<tiddler
> Moodle, MediaWiki, Elgg, TiddlyHome, TiddlySpeck with: "1.2.3.4">>
> Then I make the other tiddlers called [[Moodle]], [[MediaWiki]],
> [[Elgg]], [[TiddlyHome]] and [[TiddlySpeck]] containing:
> Moodle: <html><div align="center"><iframe src="http://$1/moodle/"
> frameborder="0" width="100%" height="600"></iframe></div></html>
> MediaWiki: <html><div align="center"><iframe src="http://$1/
> mediawiki/"
> frameborder="0" width="100%" height="600"></iframe></div></html>
No where in this did I indicate that a **comma-separated list of
tiddlers** (a syntax that is not used in any other TiddlyWiki macro)
would somehow be valid usage or that you should put multiple HTML
IFRAME definitions into a single tiddler.
That having been said...
PLEASE DO CONTINUE TO ASK QUESTIONS (shouting for emphasis!)... it's
the only way to learn!... Just try a bit harder to understand the
responses before thrashing about. Actually enter the posted examples
to see how they work, and then, following the pattern they suggest,
experiment with variations yourself before coming back to ask more
questions.
I will try one more time to explain the current IFRAME 'problem':
---------------------------------------------
Based on your previous statements, your goals seem to be:
You need to render an IFRAME, but want to substitute different URLs,
depending upon what site you want to view, and you also want to have
different tiddlers to display the IFRAME for each a specific URL.
So...
First, create a tiddler called [[MyFrame]] containing:
----------------
<html><div align="center"><iframe src="$1"
frameborder="0" width="100%" height="600"></iframe></div></html>
----------------
This will be used as a 'fill-in-the-blank' **exemplar** for rendering
ALL the specific IFRAMEs you want to display. The $1 marks the place
where a *single* parameter value, passed in via the <<tiddler
TiddlerName with: param>> macro syntax, will be substituted before
rendering the content.
Next, create separate tiddlers for each desired IFRAME:
[[Moodle]], [[MediaWiki]], [[Elgg]], [[TiddlyHome]] and
[[TiddlySpeck]]
where the content in *each* of these tiddlers follows this format:
<<tiddler MyFrame with: "URL">>
For example, [[Moodle]] would contain just:
<<tiddler MyFrame with: "http://1.2.3.4/moodle">>
while [[MediaWiki]] would contain just:
<<tiddler MyFrame with: "http://www.mediawiki.com/">>
Thus defined, when [[Moodle]] is displayed, the contents from
[[MyFrame]] are retrieved and the "$1" is replaced by "http://1.2.3.4/
moodle" so that the rendered content **appears** as if it had been
directly entered into [[Moodle]] as:
----------------
<html><div align="center"><iframe src="http://1.2.3.4/moodle"
frameborder="0" width="100%" height="600"></iframe></div></html>
----------------
Similarly, when [[MediaWiki]] is displayed, the contents from
[[MyFrame]] are retrieved and the "$1" is replaced by "http://
www.mediawiki.com/" so that the rendered content **appears** as if it
had been directly entered into [[MediaWiki]] as:
----------------
<html><div align="center"><iframe src="http://www.mediawiki.com/"
frameborder="0" width="100%" height="600"></iframe></div></html>
----------------
Hopefully, the above explanation has 'clicked' with you, and you can
start to see the consistent pattern of usage for defining "exemplar
tiddlers" that are then transcluded with parameter substitutions using
the <<tiddler>> macro.
-e
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---