1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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):

    SEMrush
     
    amorph, Oct 25, 2007 IP
    SEMrush
  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