Re: [web2py] not enough arguments for format string

2012-06-04 Thread Martin Weissenboeck
Try: *return XML("$('%s').click(function(){$('html, body, %s').animate({scrollTop: $(document).height()}, %s); return false;});" % (**button_id,div_id,speed )* Regards, Martin 2012/6/4 Hassan Alnatour > Dear ALL , > > I created a function to get a div and a button and a speed and then using

[web2py] not enough arguments for format string

2012-06-04 Thread Hassan Alnatour
Dear ALL , I created a function to get a div and a button and a speed and then using jquery scroll down to that div , now the function looks like this : *def scrolldown(button_id,div_id,speed): ''' Scroll down to the end of any div using a button and a speed ''' return XML("$