[Moo] Re: Just in case you haven't

2010-03-10 Thread Gary Hussey
APTANA is WIN! but it's falling short in the image manipulation department. On Wed, Oct 1, 2008 at 10:57 AM, mar...@gmail.com wrote: > > Looks like the beta is out. I have one word for you. APTANA. > > M > > On Sep 25, 12:20 am, "Gary Hussey" wrote: > > A a new CS is out... Everyone PANIC!

Re: [Moo] Request.JSON ?

2010-03-10 Thread Barry van Oudtshoorn
Are you running your example in IE? I have, in the past, had a few issues with MooTools trying to execute JSON sent back from the server because of a misinterpretation of the content-type in IE. Unfortunately, I don't have an example to hand -- I'll see if I can dig one up for you if you're sti

Re: [Moo] Request.JSON ?

2010-03-10 Thread Sanford Whiteman
Here is your JSON data placed within a working MooShell -- feel free to customize until you can figure out why yours breaks and this doesn't: http://mootools.net/shell/64Cs5/ -- Sandy

[Moo] Request.JSON ?

2010-03-10 Thread Plair
Hi everyone, I'm new to Mootools, i try to use JSON to get data from a server. I made a little CGI which send this when i call it : printf("Content-Type: application/json\n\n{\"data\":[\n{\n\"x1\": 159,\n\"y1\": 1110,\n\"width\": 840,\n\"height\": 2412\n},\n{\n\"x1\": 180,\n\"y1\": 3540,\n\"w

Re: [Moo] Re: Convert Date to and from UTC

2010-03-10 Thread Aaron Newton
you have a date object when you parse the date. Date.parse(yourUTCString) gives you a date object. On Wed, Mar 10, 2010 at 6:31 AM, woomla wrote: > Thanks for your effort, but that's not UTC. And I really want a Date > object, not a string. > > On 10 mrt, 14:58, "Matthew Hazlett" wrote: > > The

Re: [Moo] Re: Cookie behaves different when URL ends with slash or not

2010-03-10 Thread Aaron Newton
> > 2. Use cookie.write always with path information (/ or /CookieTest/). This is the correct option in my opinion.

[Moo] Re: Cookie behaves different when URL ends with slash or not

2010-03-10 Thread woomla
I was working on this http://mootools.net/shell/b2csd/ (B and D don't work) and thought path did not work. But then I realized if I change the path, the document can not see the cookie. The problem in my example is this. If I open the page at http://mywebserver/CookieTest/, with slash, a cookie w

RE: [Moo] Re: Convert Date to and from UTC

2010-03-10 Thread Matthew Hazlett
Flip the month and day: date = new Date(); date.format("%Y-%m-%d %H:%M:%S.") + date.get("ms"); that's a UTC date. Its derived from a date object or you could do this and add it to the date class: http://mootools.net/shell/tfREh/2/ -Original Message- From: mootools-users@googlegroups.

[Moo] Re: Cookie behaves different when URL ends with slash or not

2010-03-10 Thread woomla
On 10 mrt, 15:38, woomla wrote: > I don't mind adding options, and in fact, by setting the path I'm sure > the cookie is read always correct. This is a good workaround. Whoops, not good because Cookie.read doesn't accept options.

[Moo] Re: Cookie behaves different when URL ends with slash or not

2010-03-10 Thread woomla
On 10 mrt, 14:06, rasmusfl0e wrote: > The MooTools docs state: > >  * In order to share the Cookie with pages located in a different > path, the Cookie.options.domain value must be set. I don't want to share the Cookie from several paths. What happens here is that Cookie.write writes to the corr

[Moo] Re: Convert Date to and from UTC

2010-03-10 Thread woomla
Thanks for your effort, but that's not UTC. And I really want a Date object, not a string. On 10 mrt, 14:58, "Matthew Hazlett" wrote: > Then you can do it with date.format: > > http://mootools.net/shell/tfREh/ > > -Original Message- > From: mootools-users@googlegroups.com > > [mailto:moot

RE: [Moo] Re: Convert Date to and from UTC

2010-03-10 Thread Matthew Hazlett
Then you can do it with date.format: http://mootools.net/shell/tfREh/ -Original Message- From: mootools-users@googlegroups.com [mailto:mootools-us...@googlegroups.com] On Behalf Of woomla Sent: Wednesday, March 10, 2010 3:43 AM To: MooTools Users Subject: [Moo] Re: Convert Date to and fr

[Moo] Re: Cookie behaves different when URL ends with slash or not

2010-03-10 Thread rasmusfl0e
The MooTools docs state: * In order to share the Cookie with pages located in a different path, the Cookie.options.domain value must be set. Read The Friendly Manual :P On Mar 10, 1:21 pm, woomla wrote: > If I have a cookie in a subdirectory, this cookie is read from even > when I'm in the roo

[Moo] Cookie behaves different when URL ends with slash or not

2010-03-10 Thread woomla
If I have a cookie in a subdirectory, this cookie is read from even when I'm in the root. When I write the cookie, the cookie's path is the root. So reading and writing goes to different cookies (same name, different path). Here's how: When I browse to a directory on my webserver it automatically

[Moo] Re: Convert Date to and from UTC

2010-03-10 Thread woomla
No, this gives me the UTC day. I don't need the day, I need the complete UTC Date (year, month, day, hour, min, sec, msec). Example: I receive this UTC date from the server: 2010-03-10 08:39:12.123. I need to display it as local time. I.e on my system that is in GMT+1 it should display: 2