[Moo] mooto...@chrome

2009-09-13 Thread ken
I hope this is not a repost Anyone there thought of using mootools for firefox chrome? http://yks.exyks.org/?/Show/motivation Unfortunately the addon has not been updated to work for the current version of firefox.

[Moo] Re: Easy way to insert HTML code to an Element

2009-09-13 Thread Aaron Newton
Fabio, if you destroy the tmp div you'll destroy it's contents. You can't destroy it until after you've injected the child elements somewhere else. 2009/9/13 Fábio M. Costa > You can use the Element.From that Aaron showed, thats is more reliable or > use your function that won't work for some el

[Moo] Re: conflict between two js files

2009-09-13 Thread mona
No. It is simple php, no framework or anything. I am actually using the simplepie newsblocks demo. It can be found at this url: "http://simplepie.org/wiki/tutorial/how_to_replicate_popurls";. If required I can send my code in zip format. On Sep 12, 6:38 pm, Fábio M. Costa wrote: > Are you using

[Moo] Re: Easy way to insert HTML code to an Element

2009-09-13 Thread limodou
2009/9/14 Fábio M. Costa : > You can use the Element.From that Aaron showed, thats is more reliable or > use your function that won't work for some elements (table elements). > > var create_dom = function(html){ >    var tempDiv = new Element('div', {html: html}); >    var firstElement = tempDiv.g

[Moo] Re: Easy way to insert HTML code to an Element

2009-09-13 Thread Fábio M . Costa
You can use the Element.From that Aaron showed, thats is more reliable or use your function that won't work for some elements (table elements). var create_dom = function(html){ var tempDiv = new Element('div', {html: html}); var firstElement = tempDiv.getFirst(); tempDiv.destroy(); r

[Moo] Re: Easy way to insert HTML code to an Element

2009-09-13 Thread Aaron Newton
this will be in the next release of mootools more, but you can use it now (just add it to your javascript): http://github.com/mootools/mootools-more/tree/master/Source/Element/Elements.From.js the raw file: http://github.com/mootools/mootools-more/raw/master/Source/Element/Elements.From.js On Su

[Moo] Re: Easy way to insert HTML code to an Element

2009-09-13 Thread limodou
On Mon, Sep 14, 2009 at 10:24 AM, limodou wrote: > 2009/9/13 Fábio M. Costa : >> In this case you could use Request.HTML. It would give you an li node and >> you would just do: >> >> target.grab(response.elements, 'top'); >> >> http://mootools.net/docs/core/Request/Request.HTML >> >> Both the way

[Moo] Re: Easy way to insert HTML code to an Element

2009-09-13 Thread limodou
2009/9/13 Fábio M. Costa : > In this case you could use Request.HTML. It would give you an li node and > you would just do: > > target.grab(response.elements, 'top'); > > http://mootools.net/docs/core/Request/Request.HTML > > Both the ways you showed are fine, but i would do number 2 just because

[Moo] Re: PhatFusion Imagemenu doesnt' work in IE 7

2009-09-13 Thread Sanford Whiteman
> Hello ? http://mooshell.net/9GhnF/3 Make sure you don't have trailing commas in object literals (for IE 7-). -- Sandy

[Moo] mooflow issue

2009-09-13 Thread raul chinda
Hi all, I looked over the older postings and did not find anything on this ... hosting on squarespace.com I have mootools 1.2.3 and more according to the requirements on mooflow's documentation page injected the proper calls in the header, squarespace runs doctype strict (what we need) inserted t

[Moo] Re: mootools 2.0 timeline

2009-09-13 Thread itaymoav
TNX - looks promising On Sep 12, 6:32 pm, Aaron Newton wrote: > http://github.com/anutron/art/tree/master > some early demos: > > http://clientcide.com/temp/art/Tests/ > > On Sat, Sep 12, 2009 at 7:49 AM, itaymoav wrote: > > > Wow, > > > Can you say a few words on mootools ART? > > What will be

[Moo] Re: PhatFusion Imagemenu doesnt' work in IE 7

2009-09-13 Thread Fábio M . Costa
Sorry i haven't used it before. Have you tried talking to them? Try sending links because sometimes its hard to solve the problem by just looking at the code. You can try mooshell.net Cheers, -- Fábio Miranda Costa Solucione Sistemas Front-End Engineer http://meiocodigo.com On Sun, Sep 13, 2009

[Moo] Re: Easy way to insert HTML code to an Element

2009-09-13 Thread Fábio M . Costa
In this case you could use Request.HTML. It would give you an li node and you would just do: target.grab(response.elements, 'top'); http://mootools.net/docs/core/Request/Request.HTML Both the ways you showed are fine, but i would do number 2 just because its faster. Still you could do number 1

[Moo] Re: PhatFusion Imagemenu doesnt' work in IE 7

2009-09-13 Thread F2c
Hello ? On Sep 11, 2:52 pm, F2c wrote: > Hi, > > i'm working actually on my website, and i've added the imagemenu as > main navigation menu. > > I've encountered non problem to change images or change the alert as > in the demo to an a href. > > When i test it in IE7, the menu don't work at all

[Moo] Re: How to use nth-child?(solved)

2009-09-13 Thread limodou
On Sun, Sep 13, 2009 at 5:53 PM, limodou wrote: > Today I try to use nth-child selector to get the last child element > from a div, but I failed, and I can't get the last but the first, I > don't know why? > > Here is a test: > > HTML file: > > "http://www.w3.org/TR/html4/strict.dtd";> > > >  

[Moo] How to use nth-child?

2009-09-13 Thread limodou
Today I try to use nth-child selector to get the last child element from a div, but I failed, and I can't get the last but the first, I don't know why? Here is a test: HTML file: http://www.w3.org/TR/html4/strict.dtd";> Hello World 1 1 2

[Moo] Re: Problem with JSON and HTML (solved)

2009-09-13 Thread nelero
@Ryan Florence : due to historical functions, i was unable to cut this long html into a more JSON object but i'm agree with you, it's a very bad solution

[Moo] Easy way to insert HTML code to an Element

2009-09-13 Thread limodou
Say I want to return a HTML code snippet, just like: A list. And I want to inert it to an element. But it's a text. So how to insert it to an element? I thought the way: 1. Only return "A list" , and say it'll be returned in response.html, and do : var item = Element('li'); item.set('html', res

[Moo] Re: Problem with JSON and HTML

2009-09-13 Thread nelero
Sorry for the long code post i have maid early ... :-( Thanks for the JSON validator, it helped me to show that it was the lines end characters in my "c" attribute value which was causing trouble. Replacing "\r\n" by spaces fix the problem ! thanks a lot for your help and your quick answer ! On