Все вопросы: [mootools]

127 вопросов

0
голосов
1ответов
1005 просмотров

creating a select element via js, focus doesn't work in IE

I'm a newbie in js and I'm afraid that i haven't the knowledge to resolve the next issue. If I have a select element ( populated with several options ) already parsed by the browser on the load, the next code works just fine in both IE and FF $('selectId').focus(); but if I create ( and popul...

1
голосов
2ответов
5008 просмотров

How do I use the livevalidation javascript library custom.validation function?

(note: my original question was not linked to my openid - I am reposting here to be able to edit/update/respond accordingly - if anyone with access could remove the original question: /questions/1554916/how-to-use-the-livevalidation-javascript-library-custom-validate-function that woudl be great ...

0
голосов
1ответов
656 просмотров

Calling ajax webservice from OnComplete of an ajax webservice call not firing OnComplete 2nd time

I have an ajaxified .NET webservice that I call from javascript(mootools) on my ASP.NET content page with a Masterpage firstly to check if the user has associated journalists, secondly to delete the user if no journalists are associated. Both calls to the webservice work, but the onComplete for ...

6
голосов
10ответов
4410 просмотров

What's the downside of using too much JavaScript?

I would like to know what are some downsides using too much JavaScript code in a web page? For example, I will use a jQuery framework for my dropdown menus, tabs and accordion. And other JavaScripts for my calendar (even-though there is available calendar that uses jQuery) and other JavaScript f...

0
голосов
1ответов
967 просмотров

Filtering and adding class attribute in mootools

How would I do this in mootools? I have an Unordered list items that I want to add classes to each of them But there are some list item that I want to exclude in adding a new class. here's my markup <div id="header"> <ul id="mainnav"> <li class="item1"><a href=...

0
голосов
2ответов
1524 просмотров

Help with Mootools locating the conflict in my ugly code

I need help in locating the conflict in my code, below is my ugly code (I'm just starting to write my mootools and my approach i think are ugly). the site can be seen here http://tinyurl.com/y9xvm6b. I think it is conflicting with these lines <script type="text/javascript" src="/lotsforsale...

11
голосов
10ответов
7033 просмотров

MooTools and JQuery Side by Side

I just inherited some web pages which uses MooTools. I never used MooTools. Now I need to add some functions on the page, I wonder if it's a good idea to use jquery and mooTools on the same page? Basically, I have 3 options, Convert the pages to JQuery, which I have to learn MooTools to do tha...

13
голосов
19ответов
1397 просмотров

I've learned jQuery, should I go back and learn "proper javascript"?

I'm primarily a server side developer, working professionally with PHP. For javascript I always use a framework (jQuery/mootools), will this be a professional disadvantage for me down the line? Should I put the time in to learning straight javascript, or are most developers moving over to framewo...

1
голосов
1ответов
2750 просмотров

get form post data in mootools 1.1 response

I m using mootools 1.1 for developing joomla component. i want to get the form posted data in onComplete block. i don't want to set the post data in response. Is it possible? if yes then please reply how can i do that? Thanks in advance.

1
голосов
2ответов
987 просмотров

Extending mootools Element.Events

I'd like to create a custom paste event that would fire either input (FF) or onbeforepaste (IE). I've read pretty much all about creating custom events in mootools, still the event does not get fired in any of the browsers. The extension (took the docs and the 'mousewheel' event as a reference):...

0
голосов
3ответов
4289 просмотров

accessing variables and methods of parent javascript object?

var SortingTable = new Class({ initialize: function( table, options ) { this.table=$(table); this.tbody = this.table.getElement('tbody'); //...do alot of things here... }, addTextInput : function(index,headid,options){ ...

1
голосов
1ответов
17476 просмотров

Javascript (MooTools) window.addEvent('domready', function() { problems

My problem can be readily seen on the following to pages: The correct version -> http://appstorereviewer.com/ The incorrect version -> http://appstorereviewer.com/page/2 As far as I can tell both pages have the same javascript in the header. What would cause the main page to work proper...

0
голосов
1ответов
154 просмотров

Scroll with no backward with IE

I am using the Mootools Fx.Scroll effect to navigate horizontally through my website sections. Everything is working properly with Firefox, but Internet Explorer gives me some trouble. First the section were a big mess, but after adding one line in the Mootools core file thanks to a lighthouseapp...

1
голосов
3ответов
6006 просмотров

Set ajax request in joomla using mootools

I am having a prob for ajax request in joomla using mootools. var url = '<?php echo JURI::base();?>index.php?option=com_test&task=getselectmode&selectedid='+$('parent_question').value; var params ={method: 'post',update:'test'}; var myAjax = new Ajax(url, params); myAjax.re...

1
голосов
3ответов
3013 просмотров

Make Javascript variable global w/ MooTools

I'm using mootools-1.2.3 at the moment and I'm having trouble getting a variable to be accessible outside of a function. I need to define the variable in the domready function, because otherwise the DOM hasn't been loaded and selector functions will not work (I can't place the script at the end ...

0
голосов
3ответов
1241 просмотров

Ajax request using mootools not working

I try loading content into a div with this tutorial. Unfortunately, this simply loads the HTML file as a new page. This is the javascript that should do the job window.addEvent('domready', function() {      $('runAjax').addEvent('click', function(event) {          event.stop();          var re...

1
голосов
2ответов
984 просмотров

<td> tags are stripped from text when injected in MooTools Elements</td>

I'm trying to build some JavaScript in MooTools that fetches table row markup from the server, then adds it to a table. I have an object named htmlAjax that's set as a MooTools Ajax object. The object gets the HTML from the server correctly (tested this in the Firebug console), but when I attempt...

0
голосов
1ответов
1056 просмотров

Incomatible Mootools scripts

Well, what i want to do is having a lightbox and a sliding top panel. Both use mootools and both seem to use different versions. It does not work if comment out one of these although they are booth the actual mootools library. &lt;!a possible js config. either these two are commentented out, or t...

0
голосов
1ответов
377 просмотров

MooTools Top Panel not appearing

Ahoy everyone, I am using this sliding top panel using mootools (for orientation, the code is basically the same). I want it to appear when the page is loaded, means, index.html is loaded. I achieved this simply by adding the corresponding javascript to index.html: &lt;script type="text/javasc...

0
голосов
2ответов
1150 просмотров

How to update multiple elements with one MooTools Request.HTML call

Does anyone know if, using one Request.HTML call from MooTools, it is possible to somehow update more than one element in a webpage? The current call I have is: var req = new Request.HTML({update: $('content')}).get('../latest_events'); This updates the content div in my page with the "../lat...

1
голосов
4ответов
199 просмотров

Should I continue using Mootools now that MS is backing up JQuery?

I've been using Mootools for the last couple of months without knowing that MS was including JQuery with their new releases (like MVC). Now I'm not sure if I should switch to JQuery considering that I will be developing on MS tools and frameworks for the next years. I would like to hear from more...

1
голосов
2ответов
6598 просмотров

Invoke an alert on an href, then continue to a new page

I have a link to a page which invokes the 'Sexy Alert Box' script to pop a message asking if users agree to Terms and Conditions with options "I Agree" and "Cancel". I've got that much going but now I need for the "I Agree" option to send them to a new page. ("Cancel" returns the user the curre...

2
голосов
8ответов
25689 просмотров

Internet explorer says Object doesn't support this property or method

This line is 79: window.addEvent('domready', function(){ mySlide = new Fx.Slide('advert'); mySlide.hide(); }); It also does not like this line: this.wrapper = new Element('div', { 'styles': $extend( ...

6
голосов
5ответов
19986 просмотров

How do I fade in and out a hidden element using Mootools

I am trying to fade in a hidden element, and then fade it back out again using mootools. I can't just use $('my_div').fade('toggle'), because that assumes the element is always visible, whereas my div starts out with display:none. Is there a simple way to combine a fade in/out with a slide in/o...

0
голосов
2ответов
759 просмотров

Jquery toggle function breaks on pages that include mootools or slimbox script

My friend is asked me to look over her site where there is an error on pages that use slimbox-- an unrelated Jquery toggle function breaks— here's the code: $(function() { $(".cat_nav dd").hide(); $(".cat_nav dt").click(function() { $(this).next().toggle(); return false; ...

0
голосов
2ответов
851 просмотров

Mootools Slider plugin functions

I am using mootools to create a CSS skin for the Youtube chromeless player using the javascript API to control playback. I cannot post the code unfortunately. The question I have is a more general one. When using the slider plugin a call to mySlider.set(step) moves the knob to the correct step on...

2
голосов
4ответов
3029 просмотров

Javascript framework popularity

Are there any resources comparing the adoption rates of the various javascript frameworks similar to tcpi? Basically the number of sites using a particular framework on a time-line would be ideal.

1
голосов
2ответов
1062 просмотров

mootools.swiff : loaderInfo never completes

[EDIT 07-22-2010] removed deoms from my site[/EDIT] [EDIT 08-26-2009] added really weird issue to the bottom of question[/EDIT] Hi everyone I'm trying to get going with the mootools swiff thing and I seem not to get the loaderInfo.COMPLETE event in flash. more precisely a dynamically loaded swf n...

4
голосов
4ответов
4358 просмотров

HTML5 canvas with Processing vs. Pure Javascript

I have some data visualization animations I want to do in a webapp I have and am considering different alternatives I have. It will basically just be moving around text strings in a pretty way. I am using the Mootools framework and the Mootools FX library basically have the stuff i want, but I w...

4
голосов
3ответов
229 просмотров

mooWMD is Undefined?

First off here is the code! &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;link href="content/wmd.css" rel="stylesheet" type="text/css" /&gt; &lt;titl...