On Sunday, July 19, 2015 at 10:05:57 PM UTC+2, Eric Shulman wrote:
>
> On Sunday, July 19, 2015 at 12:24:54 AM UTC-7, TiddlyWiker wrote:
>>
>> I have found the FramedLinksPlugin in tw classic very useful.
>>
>> Clicking an external link opens an IFRAME following the link instead of
>> opening a new tab/window.
>>
>> http://www.tiddlytools.com/#FramedLinksPlugin
>>
>> Is it possible to have the same plugin or a similar one for
>> TW5?
>>
>
> You can create a simple "framed link" using TW5 native syntax, without any 
> plugin.
>
> First, define the following TW5 macro:
> \define framedlink(url)
> <$button popup="$:/temp/framedlink/$url$" class="tc-btn-invisible">$url$<
> /$button>
> <$reveal type="nomatch" text="" state="$:/temp/framedlink/$url$">
> <iframe src="$url$" width="100%" height="600px"></iframe>
> </$reveal>
> \end
>
> Then, invoke it like this:
>    <<framedlink "http://tiddlywiki.com";>> 
>
> This creates a $button that, when clicked, $reveals the iframe.  Clicking 
> the $button text again hides the iframe.
>
> enjoy,
> -e
> Eric Shulman
> ELS Design Studios
> TiddlyTools - "Small Tools for Big Ideas!"
> InsideTiddlyWiki: The Missing Manuals
>
> YOUR DONATIONS ARE VERY IMPORTANT!
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
>    http://TiddlyTools.github.com/fundraising.html#MakeADonation
>
> Professional TiddlyWiki Consulting Services...
> Analysis, Design, and Custom Solutions:
>    http://www.TiddlyTools.com/#Contact
>

 
Dear Eric,

Thanks a lot!  It worked like a charm.

I do have one question though. 

It seems the framedlink
in tiddlywiki classic and also here in TW5 both work for most urls.
but for some they don't work. for example:

http://www.reddit.com/r/worldnews/

when I put it straight into a tiddler it
opens ok in the browser window.

But using the macro and the framed link

<<framedlink "http://www.reddit.com/r/worldnews/";>> 

it doesn't open in the tiddler. 

The same thing happens for the tiddlywiki classic 
version.

Is it some security issue?

Regards,

Tiddlywiker

 
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/56935436-b9b0-4bf3-a95d-17c89bf8946e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to