Results 1 to 1 of 1
-
13th Mar 2012, 09:07 PM #1OPMember
Need help to convert Mootools code to jQuery?
Hello,
I have this mootools code, but need it working by using jQuery...
i'm try convert this but looks that i need more than basic knowledge
Code:var ajaxSpiner = new Element('img', { src: 35.gif', width: '20px', height: '20px' }); var func_checkEventsQuick = function() { try {ID = $$('div.rsbElement')[0].getProperty('stream');} catch(err) {ID=null} // AJAX var postURL = 'sfunc.php'; var AjaxReq = new Request.HTML({ url: postURL, data: 'stream='+ID, method: 'get', timeout: 5000, onRequest: function(){ $('rsd_title').adopt(ajaxSpiner); }, onSuccess: function(responseTree, responseElements, responseHTML) { $('rsd_title').getChildren('img').destroy(); if(responseHTML != '0') { responseTree[0].setStyles({'opacity': 0, 'height': 120}); $('r_side_cont').grab(responseTree[0], 'top'); (function(){ $$('div.rsbElement')[0].tween('height', 120); }).delay(0); (function(){ $$('div.rsbElement')[0].fade('in'); }).delay(200); Element.implement({ fadeAndDestroy: function(duration) { duration = duration || 400; var el = this; this.set('tween', { duration: duration }).fade('out').get('tween').chain(function() { el.dispose(); }); }}); if($$('div.rsbElement').length >= 7) { (function(){ $$('div.rsbElement')[7].fadeAndDestroy(); }).delay(0); } } }, onFailure: function(){ //alert('Request failed. Please try again'); } }); AjaxReq.send(); } Function.attempt(function(){clearInterval(timercheckEventsQuick);}); timercheckEventsQuick = func_checkEventsQuick.periodical(10000);
Is there anyone who can help me to convert this code?AmN Reviewed by AmN on . Need help to convert Mootools code to jQuery? Hello, I have this mootools code, but need it working by using jQuery... i'm try convert this but looks that i need more than basic knowledge :( var ajaxSpiner = new Element('img', { src: 35.gif', width: '20px', height: '20px' }); Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Hiring] Coder with exp in DLE, jquery
By newshit in forum Completed TransactionsReplies: 0Last Post: 11th Jan 2012, 09:42 PM -
Sectional gallery code(jquery/java)
By mannNmeet in forum Web Development AreaReplies: 0Last Post: 15th Nov 2011, 09:43 AM -
JQuery help
By xElliex in forum Web Development AreaReplies: 5Last Post: 25th Aug 2011, 10:38 PM -
jQuery Tooltips Help
By Chris2k in forum Web Development AreaReplies: 1Last Post: 11th May 2011, 07:18 PM -
Convert blog's posts to BB-CODE format
By vineetpratik in forum Webmaster DiscussionReplies: 6Last Post: 1st Feb 2011, 01:28 PM
themaPoster - post to forums and...
Version 5.23 released. Open older version (or...