Hello,
I would like to find a value in an data-object. (Has the given ID a true
ajax-flag?)
I made this to find the value:
http://jsfiddle.net/K7WfE/6/
//the data object
var obj = {
'apple' : { 'id': '123', 'valid' : 0 , 'ajax' : 1 } ,
'bwe' : { 'id': '456', 'valid' : 1 , 'ajax' : 1 } ,
'na' :
I am currently trying to implement the following on a website I am making.
http://jsfiddle.net/2bcq9/
At the moment I have read a few mootools examples and tried to use the
codes in the examples to get the result I want.
the problem I have is I can't figure out how to just trigger the fades on
hello,
without digging in you code ...
try this: http://jsfiddle.net/2bcq9/11/
If you declare $$('... it means all elements, and that what's done.
I changed it to the desired.
cheers
--
---
You received this message because you are subscribed to the Google Groups
"MooTools Users" group.
T
Not sure if this is what you want: http://jsfiddle.net/2bcq9/12/
Basically the element where the event was triggered on, is "this" in the
event listener function.
What you did is just fade all elements selected with the selector passed
into $$().
Note: In your DOMReady, I introduced a "containers
Hi,
Can I prevent Request.html from parsing the content? After receiving I
don't want other things downloaded, I want the plain html page. Is this
possible with Request.html or should I just use Request?
W.
--
---
You received this message because you are subscribed to the Google Groups
"M
You can use Request
On Thu, Feb 21, 2013 at 8:45 PM, woomla wrote:
> Hi,
>
> Can I prevent Request.html from parsing the content? After receiving I
> don't want other things downloaded, I want the plain html page. Is this
> possible with Request.html or should I just use Request?
>
> W.
>
> --
Hi,
you could use
Object.filter: http://mootools.net/docs/core/Types/Object#Object:Object-filter
Take a look at this fiddle: http://jsfiddle.net/unlooped/K7WfE/7/
Best,
Steffen
On Thursday, February 21, 2013 11:41:36 AM UTC+1, Hamburger wrote:
>
> Hello,
> I would like to find a value in an da
Try this one
Array.each(obj, function(item, index){
if (item == '456') console.log("info22:", item.id);
});
Cheer!?
On Thu, Feb 21, 2013 at 9:10 PM, n3on wrote:
> Hi,
>
> you could use Object.filter:
> http://mootools.net/docs/core/Types/Object#Object:Object-filter
>
> Take a look at this
Hi woomla,
one of the advantages of Request.HTML is to get back nodes which you
handle easily. For this purpose the html code has to be parsed and so your
resources will be loaded.
If you just want the plain html file you should use request
( http://mootools.net/docs/core/Request/Request ).
B
If I create a new Element and set html, the html is parsed. This leads to
unwanted request (to embedded images i.e.). Is there a way to prevent this.
My goal is to load example pages from different directories and display the
first paragraph of every example in a list. I obtain the html with Req
It's inconvenient, I agree.
You can use the base Request class and then convert the response to HTML
using Elements.from
http://mootools.net/docs/more/Element/Elements.From
On 21/02/2013 15:34, n3on wrote:
Hi woomla,
one of the advantages of Request.HTML is to get back nodes which you
han
If he calls Elements.From the source is also parsed. It's more or less the
same which happens in Request.HTML.
On Thursday, February 21, 2013 3:48:19 PM UTC+1, Lee wrote:
>
> It's inconvenient, I agree.
>
> You can use the base Request class and then convert the response to HTML
> using Element
That is how HTML works. If you include an image tag or something else which
needs "external" ressources to be rendered it will load them (or at least,
try to load them :)).
If you just want the text in the response you have to clean your response
first (i.E. String.stripTags in the more package
Thanks Hamburger,
that is the effect i was looking for. i noticed you put getElement for the
div with the img, i changes it to get Elements and it works the way i want
it to.
Arian - thanks for the input as well, helps me understand mootools better.
thanks
Tim
--
---
You received this m
If you Element.set('text',...), the string will be HTML-escaped (corresponds to
native innerText).
It sort of sounds like you want to parse the response as (X|HT)ML before
injecting it into the DOM, rather than escaping the markup tags. You can do
this, with some cross-browser quirks, by query
I think it's an answer of woomlas topic. It's a really good point, i'm a
bit ashamed of not thinking of this solution.
On Thursday, February 21, 2013 5:57:20 PM UTC+1, Sanford Whiteman wrote:
>
> If you Element.set('text',...), the string will be HTML-escaped
> (corresponds to native innerText)
Take a look at Sanfords answer
here:
https://groups.google.com/forum/?fromgroups=#!topic/mootools-users/RVIabksDwl8
it's a pretty good suggestion.
On Thursday, February 21, 2013 3:44:31 PM UTC+1, woomla wrote:
>
> If I create a new Element and set html, the html is parsed. This leads to
> unwa
>
> Array.each(obj, function(item, index){
> if (item == '456') console.log("info22:", item.id);
> });
That won't work, use Object.filter/each instead, like Steffen said.
On Thu, Feb 21, 2013 at 3:24 PM, Sitthykun LY wrote:
> Try this one
>
> Array.each(obj, function(item, index){
> if
I have no idea how to use that jsfiddle business so all i can do is seek
help how and where i can. I apologize if i am in the wrong place.
Hello: I'm using a slideshow on my site called BarackSlideshow 3.0, a
jquery application. I'm using the free demo version.
What i am trying to do is attach a
> I'm using a slideshow on my site called BarackSlideshow 3.0, a
> jquery application.
It's a MooTools script/class, not jQuery (otherwise you wouldn't be
here, n'eh?). In general, you should consider those libraries mutually
exclusive.
> I do not know how to demonstrate the code that is giving
Sorry Sandy, I will try to use jsFiddle again. Hope I get you to help me
again... Thanks you.
On Thu, Feb 21, 2013 at 4:25 PM, Sanford Whiteman wrote:
> > I'm using a slideshow on my site called BarackSlideshow 3.0, a
> > jquery application.
>
> It's a MooTools script/class, not jQuery (otherwise
> Sorry Sandy, I will try to use jsFiddle again. Hope I get you to help me
> again... Thanks you.
Please try, it helps separate our concerns, if you will.
-- S.
--
---
You received this message because you are subscribed to the Google Groups
"MooTools Users" group.
To unsubscribe from this
Good Deal: my site is http://gogreencomputerservices.com/PandAs.html.
The animated names in the right column are disjointed from the images. Some
of the images don't show. It just seems to break. Maybe you can help. Here
is the jsFiddle link to the for my situation:
http://jsfiddle.net/carlgordonjr
Carl, you really, really, really need to get in touch with the notion
of relative paths, including scripts etc. You can't just go dumping in
I suck. Thank you. I will study about relative paths.
On Thu, Feb 21, 2013 at 7:01 PM, Sanford Whiteman wrote:
> Carl, you really, really, really need to get in touch with the notion
> of relative paths, including scripts etc. You can't just go dumping in
>
OK, here is a Fiddle in which the script functions as it does on the
original demo site. There was a version conflict between Fx.MorphList
and BarackSlideshow for whatever reason (the slideshow depends
on/builds out the Morphlist concept).
http://jsfiddle.net/7K6nP/18/
I used dummy images so
26 matches
Mail list logo