[tw5] Re: Accessing result of html embed in TiddlyWiki

2019-03-09 Thread Mat
On Saturday, March 9, 2019 at 12:11:18 PM UTC+1, Mat wrote:
>
> ...AND it is actually possible to open the hosting TW from within the 
> iframe (i.e open the TW inside itself) and then make changes in the iframed 
> "copy" and save (using same file name of course)... and then refresh the 
> hosting TW to update and get the changes!
>


So no misunderstanding: that saving is done INSIDE the iframe. Obviously, 
if you thereafter save the outer TW before the refresh, then the "iframed 
save" is overwritten. I'm guessing the nodejs version would avoid this 
restriction.

Note that media queries, and maybe other techniques, could (probably) be 
used to sense if the wiki is presented as the outer TW or an iframed one so 
that e.g the save wiki button is shown in the iframe without need to scroll 
the iframe. The tiddlers could probably also be styled so that you only see 
the desired fields.

BTW, if I recall, the current implementation of the editor actually has it 
in an iframe in native TW (but I'm not sure why). I'm thinking we should be 
able to take advantage of this and point the content of that TW to wherever 
we want.

<:-)


-- 
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/6b50f1b2-0daa-4c5c-8517-e47c0a9d7d5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Accessing result of html embed in TiddlyWiki

2019-03-09 Thread Mat
Actually...

...it IS possible the browser as a file explorer and open local files in a 
local TW in an iframe: At least in Windows 10, Chrome and FF:
Open a local copy of, say, empty.html. Copy-paste the local file path to a 
directory into the browser url field. At least in Windows 10, Chrome and FF 
(attached image. The "file:///" prefix is automatically added as you paste 
the path). There, you can navigate between folders and also open files, 
still within the browser, e.g json files (seen as text) and html files 
(executing it so it shows as normal local webpage) and mp3 files play using 
the browser player.



[image: Skärmklipp.PNG]




And this can be iframed in TW. Here, in the local folder, I clicked a link 
to a local copy of "full.html". You can also open individual tiddlers, if 
they are saved as such, but for it to be a nice looking tiddler it must(?) 
be a static html tiddler.

[image: Skärmklipp.PNG]
:

...AND it is actually possible to open the hosting TW from within the 
iframe (i.e open the TW inside itself) and then make changes in the iframed 
"copy" and save (using same file name of course)... and then refresh the 
hosting TW to update and get the changes!


<:-)

-- 
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/437b9302-616c-4727-b233-c5a34a785131%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Accessing result of html embed in TiddlyWiki

2019-03-09 Thread PMario
On Friday, March 8, 2019 at 2:26:06 AM UTC+1, TonyM wrote:
>
> This should be possible even if with a plugin since file save and backup 
> tools can save backup files, and presumably check for the existence of 
> existing backups.
>

Hi Tony,
You can __not__ check the filesystem, if a file exists. All what you get is 
some info from the browser download history, which has noting to do with 
the real file. 

-m

-- 
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/cd94c8be-2836-40b3-9f51-188572651fcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Accessing result of html embed in TiddlyWiki

2019-03-08 Thread TonyM
Chun

Thanks for the lead bit I cant see the method as its too far off whay I am 
looking for.

But thanks
Tony

-- 
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/7ccaa6ef-a723-413f-b288-5eae11beb971%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Accessing result of html embed in TiddlyWiki

2019-03-07 Thread CHUN LI
Hi Tony,

I am looking for the same thing! See someone did it this way.

https://itnext.io/vuidget-how-to-create-an-embeddable-vue-js-widget-with-vue-custom-element-674bdcb96b97

Sorry if I misunderstood what you want as I didn’t read the details in all
your posts. But let me know if this works or not.

Kind regards,

Chun

On Fri, 8 Mar 2019 at 7:55 PM, TonyM  wrote:

> Also I note that the HTML Object tag also displays external content
>
>  "1" > 
>
> Definition and Usage
>
> The  tag defines an embedded object within an HTML document. Use
> this element to embed multimedia (like audio, video, Java applets, ActiveX,
> PDF, and Flash) in your web pages.
>
> You can also use the  tag to embed another webpage into your HTML
> document.
>
> You can use the  
> tag to pass parameters to plugins that have been embedded with the 
> tag.
>
>
> Regards
>
> Tony
>
> --
> 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/82a912b3-e94e-4a3e-abc9-761e8554924c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BYJGLm9peboshucn2kTKg_MntLdRgW6quBUFPsHC9P6z6gR1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Accessing result of html embed in TiddlyWiki

2019-03-07 Thread TonyM
Also I note that the HTML Object tag also displays external content

 

Definition and Usage 

The  tag defines an embedded object within an HTML document. Use 
this element to embed multimedia (like audio, video, Java applets, ActiveX, 
PDF, and Flash) in your web pages.

You can also use the  tag to embed another webpage into your HTML 
document.

You can use the   tag 
to pass parameters to plugins that have been embedded with the  tag.


Regards

Tony

-- 
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/82a912b3-e94e-4a3e-abc9-761e8554924c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Accessing result of html embed in TiddlyWiki

2019-03-07 Thread TonyM
Post Script

This should be possible even if with a plugin since file save and backup 
tools can save backup files, and presumably check for the existence of 
existing backups.

I am not sure people have recognised how powerful it would be to allow 
serial edit via a checking process for single file wikis since they do not 
allow simultaneous edit directly.

Such files could also be set to be marked read only if not in their 
original location.

Regards
Tony


On Friday, March 8, 2019 at 12:02:05 PM UTC+11, TonyM wrote:
>
> Folks,
>
> *Accessing result of html embed in TiddlyWiki*
>
>- With the advent of HTML5 there is the embed tag 
>https://www.w3schools.com/tags/tag_embed.asp
>- I can use this and reference a file in the local directory to my 
>single File Tiddlywiki. CSS Text and JSON can be included and can be 
>subsequently transcluded.
>- I can see the content of the file rendered in front of my eyes
>- However I have not yet being able to find a way to wikify the 
>content, or query a json tiddler so referenced contents.
>
> Eg
>  
>
>  
>
>
> Can anyone give me some tips on how to make use of such data?
>
> This is in an attempt to interrogate the contents of a file in the wikis 
> current folder to see if that file is "Checked out"
>
> SImilarly
> *I want to find a method to write to such a file*,
>  to checkout or check in. The assumption is the user must have read/write 
> access but also check it out to themself before being permitted to save.
>
> Regards
> Tony
>

-- 
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/006cb645-56b6-488d-a314-6794625cc3f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.