Hi Stephan

Good catch. It seems to depend on the browser: Firefox seems to allow the
cross domain access, but Safari and Chrome do not allow it in my tests.
I'll investigate whether adding the sandbox attribute improves things.

Best wishes

Jeremy.


On Wed, Jan 28, 2015 at 1:32 PM, Stephan Hradek <stephan.hra...@gmail.com>
wrote:

>
>
> Am Mittwoch, 28. Januar 2015 12:49:27 UTC+1 schrieb Jeremy Ruston:
>>
>>
>> Note that script tags are allowed in text/html tiddlers because they are
>> safely sandboxed in an iframe.
>>
>
> I'm not sure, whether or not I understand "sandboxed" correctly.
>
> Please go to tiddlywiki.com
>
> Set a username
>
> Create a New Tiddler
>
> Paste this into the tiddler:
>
> <script type="text/javascript">
> alert("hooray!\n\n"
>   + "Your username is '"
>   + window.parent.$tw.wiki.getTiddlerText("$:/status/UserName") + "'\n\n"
> +
>   + "And this wiki is called '"
>   + window.parent.$tw.wiki.getTiddlerText("$:/SiteTitle")+"'");
> </script>
>
> Set the type to "text/html"
>
> Finish editing
>
> Hooray!
>
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to