All Questions
18
questions
1
vote
1
answer
49
views
javascript/mootools | Custom events
I have 1-st script:
<script>
App.validate(helper, form, "", // Simple request to the server
function(data) {
if (data.products_in_cart) {
... I dont't know how to ...
1
vote
2
answers
256
views
javascript JSON advanced
I can't find the bug. May be you can help me:
My code is below:
var data = {"product":[{"config":[{"id":"1","price":"100","sku":"10548796345","manufacturer":"Apple","name":"Product 1", "description":...
0
votes
1
answer
96
views
Mootools parents objekt change
I'm looking for a solution for change CSS from a parent's object.
I have this:
<div class="layout">
<div class="over"></div>
</div>
<div class="layout">
<div ...
2
votes
2
answers
175
views
External JS library stops working when I add Mootools
I'm testing a JS library to triangulate an array of points (it returns an array of triangles), and seems to work great but when I add MooTools (this lib will be intregrated in a larger project using ...
0
votes
1
answer
122
views
Dynamically create an object in mootools or javascript
I am not sure if I am using the correct terms for what I am trying to do so please excuse that.
Mootools More has an Fx.Elements class that allows you to tween a collection of elements. The set ...
4
votes
1
answer
219
views
mootools Type function
So I am trying to learn javascript by learning how Mootools works internally. I am looking at these lines specifically:
var Type = this.Type = function(name, object){
if (name){
var lower ...
0
votes
2
answers
508
views
Object in the Options of a Class in Mootools?
Is it possible to define a object in the options of a class in Mootools?
I'm trying to access a date object to the options object of a instance of a class.
options: {
date: new Date().increment('...
1
vote
1
answer
1k
views
Mootools Element clone
I'm working with sortable menu in Mootols, and trying to implement 'revert' option. I've come up with quite a simple solution:
Create root element clone at the beggining.
Edit menu.
When undo is ...
0
votes
4
answers
111
views
Javascript | Objects, Arrays and functions
may be you can help me. How can I create global object and function that return object values by id?
Example:
var chat = {
data : {
friends: {}
}
}
....
/*
JSON DATA RETURNED:
{"...
0
votes
2
answers
126
views
Iterate through a json object based on the value of an array in mootools
I have this piece of code:
['design','finish','grills'].each(function(type) {
this.json.type.each(function(obj, index) {
console.log(obj);
});
}.bind(this));
And get this error:
...
0
votes
2
answers
752
views
JavaScript, MooTools - Variable scope in Class/overwrite global variable
Can somebody explain me, why I am able to overwrite a method value of a global instance by just setting its value locally and why I am not able to do something similar with variables?
Is the only way ...
7
votes
2
answers
1k
views
Element reference breaks on modification of innerHTML property of container
When creating elements via code, I have encountered an issue where modifying the innerHTML property of an element breaks any references to other elements that are injected into the modified element ...
0
votes
2
answers
197
views
Memory efficiency in objects
Is either of these patterns more or less efficient than the other?
Pattern 1:
var jso = new Class({
initialize: function () {
// code
},
hiliteField: function () {
// code
}
});...
3
votes
2
answers
1k
views
calling setinterval with object reference
I have a banner rotator and I wanted to use objects instead of functions so I could make the code more efficient. Anyway I can't seem to get setInterval to work. I think it's got something to do with ...
1
vote
1
answer
295
views
How does one get access to the Flash object's vars in IE?
Is there a way in IE Browsers to access the Flash object? In this case it is made with mootools swiff. It´s working fine in all other browsers, because they can wrap this object correctly. But it ...