Anyone into mootools?

Discussion in 'JavaScript' started by amorph, Oct 25, 2007.

  1. #1
    Can anyone help with this function which brakes on the first chain:

        		window.addEvent('domready', function(){
    			$('start').addEvent('click', function(e) {
    				e = new Event(e).stop();
    			
    				var url = "http://localhost/seo/index.php/index/custom_1";
    				new Ajax(url, {
    					method: 'get',
    					update: $('log')
    				}).request()
    				
    				.chain(function(){
    					url = "http://localhost/seo/index.php/index/custom_2";
    					update: $('log')
    					this.request();
    				})
    				
    				.chain(function(){
    					url = "http://localhost/seo/index.php/index/custom_3";
    					update: $('log')
    					this.request();
    				});
    			});
    		});
    Code (markup):
     
    amorph, Oct 25, 2007 IP
  2. joesgraphics

    joesgraphics Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you testing this out on localhost ajax wont work like that you need to use a domain with a tld.
     
    joesgraphics, Oct 27, 2007 IP