[tw] Re: [TW5] Feature Request: FramedLinksPlugin for TW5

2016-05-25 Thread TiddlyWiker


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$">
> 
> 
> \end
>
> Then, invoke it like this:
>> 
>
> 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
>

 

another question.


In the twc version of framedlinks If you have a number of links in the same 
tiddler then you can open and close them independently. But with the TW5 
version that you offered if you have a number of links on the same tiddler 
opening and closing one opens and closes them all
Is there a way to have the same functionality in the TW5 version as in the 
twc classic version. Or am I missing something?

Thanks for your attention. 


Regards,

TiddlyWikier


 

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4930a039-7116-4f26-9aa3-8f2f159e073e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Feature Request: FramedLinksPlugin for TW5

2015-07-20 Thread Eric Shulman
On Monday, July 20, 2015 at 2:05:48 AM UTC-7, TiddlyWiker wrote:
>
> 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
> > 
> it doesn't open in the tiddler. 
> The same thing happens for the tiddlywiki classic 
> version.
> Is it some security issue?
>

Some sites are written to specifically detect and exclude display in a 
iframe.  This is most common for "portal" sites, search engines, and 
media/news sites that monetize your eyeballs with banner ads and such. 
 They don't want their site to be embedded on someone else's page because 
then they can't control the overall viewing experience, and thus can't 
ensure the context in which their advertiser's content will appear.

-e

-- 
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/4d6d6ed5-586c-46ba-90a6-dd64ccbf2932%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Feature Request: FramedLinksPlugin for TW5

2015-07-20 Thread TiddlyWiker


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$">
> 
> 
> \end
>
> Then, invoke it like this:
>> 
>
> 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

> 

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.


[tw] Re: [TW5] Feature Request: FramedLinksPlugin for TW5

2015-07-19 Thread Eric Shulman
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$">


\end

Then, invoke it like this:
   > 

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

-- 
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/b10a6e17-0951-4727-8c14-de956d05ffe9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.