[tw] Re: Implementing touch gestures with hammer.js

2013-05-09 Thread Eric Shulman
> I'm trying to implement hammer.js[1] (jQuery plugin) in TiddlyWiki in order
> (function($) {
>     $("#sidebarRightButton").hammer().on("touch", function(ev) {
>         alert('Hallo!');
>     });
> });
> After a restart clicking on my sidebar trigger button (#sidebarRightButton)
> didn't show me any alerts.
> What did I wrong?

This is just a guess:

In TW, the "jQuery(...)" shorthand "$(...)" is disabled to permit
compatibility with other libraries that also define a "$" shorthand
function.  In your code above, you need to pass the explicit jQuery
object into the wrapper function, like this:
--
(function($) {
    $("#sidebarRightButton").hammer().on("touch", function(ev) {
        alert('Hallo!');
    });
})(jQuery);
--

Alternatively, you could skip the wrapper entirely and just write:
--
jQuery("#sidebarRightButton").hammer().on("touch", function(ev) {
    alert('Hallo!');
});
--

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://www.TiddlyTools.com/#Donations

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Implementing touch gestures with hammer.js

2013-05-09 Thread Albert Riedinger
Hi,

I'm trying to implement hammer.js[1] (jQuery plugin) in TiddlyWiki in order 
to use it with some elements (swiping sidebars etc.), but I have very 
rudimentary JavaScript and TiddlyWiki skills. All I did so far is to import 
the jQuery plugin script[2] into my TiddlyWiki (tagged with systemConfig).
I wrote this test script and put it into another tiddler tagged with 
systemConfig:

(function($) {
$("#sidebarRightButton").hammer().on("touch", function(ev) {
alert('Hallo!');
});
});

After a restart clicking on my sidebar trigger button (#sidebarRightButton) 
didn't show me any alerts.

What did I wrong?

I use TiddlyWiki 2.7.1 on Android 4.2.2 with Firefox Beta. The examples[3] 
from hammer.js page are working flawlessly (Ubuntu and Android).

Best Regards,
Albert

[1] https://github.com/EightMedia/hammer.js / 
http://eightmedia.github.io/hammer.js/
[2] 
https://github.com/EightMedia/hammer.js/blob/master/dist/jquery.hammer.min.js
[3] like this one > 
http://eightmedia.github.io/hammer.js/examples/events.html

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: Unable to Save on Another Computer

2013-05-09 Thread Eric Shulman
> I copied the .jar and empty.html file to one of our servers in the office.
>  When i open the empty.html on IE on the hosted server, I am able to edit
> and make changes that save to the empty.html file.

Note: IE uses ActiveX controls to perform local file I/O.  You don't
need TiddlySaver.jar when using IE.

> However, when I open the .html file on another computer, I am able to open
> the edit box for the tiddler but it prevents me from typing or saving into
> it.
> I checked the permission settings on the .html file to allow read/write
> access for the other computers but am lost. Please advise, thank you!

When a TW document is opened remotely (via http:// protocol), the
default is to be in "readOnly" mode, which allows you to "view" the
tiddler source, but with a disabled edit field, so you cannot make
changes.  The rationale for this default is that TW does not include
any built-in methods for saving to a remote server, so editing and
saving a remotely viewed document is not possible.  Note: there are
several plugins that you can use to extend TW to provide "upload and
save" abilities.  These plugins typically change the setting for
"readOnly" to FALSE, so that editing and saving remotely is permitted
by default.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://www.TiddlyTools.com/#Donations

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: Unable to Save on Another Computer

2013-05-09 Thread PMario
IE version?
which browser do you use on the second compuer?
-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 http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [tw] Re: Announcing TiddlyWiki version 2.7.2 BETA 1

2013-05-09 Thread PMario
ok. thx
-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 http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Unable to Save on Another Computer

2013-05-09 Thread Eric Shin
Hello!

I copied the .jar and empty.html file to one of our servers in the office. 
 When i open the empty.html on IE on the hosted server, I am able to edit 
and make changes that save to the empty.html file.
However, when I open the .html file on another computer, I am able to open 
the edit box for the tiddler but it prevents me from typing or saving into 
it.  

I checked the permission settings on the .html file to allow read/write 
access for the other computers but am lost. Please advise, thank you!

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [tw] Re: Announcing TiddlyWiki version 2.7.2 BETA 1

2013-05-09 Thread chris . dent

On Thu, 9 May 2013, PMario wrote:


On Wednesday, May 8, 2013 10:27:34 PM UTC+2, Chris Dent wrote:


The query string argument is appended to the url that loads a
tiddlywiki, for example for one of my spaces:

   http://cdent-t13.tiddlyspace.com/?twrelease=beta



I did test this with my @pmario space. But <> macro says 2.7.1.
The github repo should have 2.7.2 (beta) allready.


Your use of "external" in ServerSettings is confusing the system. You
need to get rid of that in order for you to be able to access the
beta (for which there is currently no externalized version, so it
fails during the "which empty.html do I use" stage of the code).
--
Chris Dent   http://burningchrome.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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: Announcing TiddlyWiki version 2.7.2 BETA 1

2013-05-09 Thread PMario
On Wednesday, May 8, 2013 10:27:34 PM UTC+2, Chris Dent wrote:
>
> The query string argument is appended to the url that loads a 
> tiddlywiki, for example for one of my spaces: 
>
>http://cdent-t13.tiddlyspace.com/?twrelease=beta 
>

I did test this with my @pmario space. But <> macro says 2.7.1. 
The github repo should have 2.7.2 (beta) allready.
-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 http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.