|
From: Piotr Kaleta on 21 Apr 2008 02:48 Hi I tried to load asynch. request in that order : fade in div, put response into div, fade out div problem is i get that order : response goes into div, fade in div, fade out div what is the problem ? function sendHermes(param){ var hermes = new Ajax( kontroler, { method: 'GET', initialize:function(){this.fx = new Fx.Style($ (content),'opacity', {duration:1000,wait:false});}, data:{section:param}, update:$(content), onRequest:function(){this.fx.start(1,0);}, onComplete:function(){this.fx.start(0,1);} }); hermes.request(); } thank you for help
From: Piotr Kaleta on 21 Apr 2008 03:02 i mean fade out load fade in :D
From: Henry on 21 Apr 2008 09:05 On Apr 21, 7:48 am, Piotr Kaleta wrote: > Hi I tried to load asynch. request in that order : > > fade in div, > put response into div, > fade out div > > problem is i get that order : > > response goes into div, > fade in div, > fade out div > > what is the problem ? > > function sendHermes(param){ > > var hermes = new Ajax( > kontroler, > { > method: 'GET', > initialize:function(){this.fx = new Fx.Style($ > (content),'opacity', > {duration:1000,wait:false});}, > data:{section:param}, > update:$(content), > onRequest:function(){this.fx.start(1,0);}, > onComplete:function(){this.fx.start(0,1);} > > }); > > hermes.request(); > > } > > thank you for help What help do you expect when you have not included the code that defines Ajax or its methods, Fx, Fx.Stye, the methods of Fx.Style or the $ function, and not shown how you call this code or the context from which it is called? As it is there is not even evidence that it does what you claim it does, let alone enough to determine why it may not do what you want it to do.
From: Piotr Kaleta on 21 Apr 2008 11:22 ekhm ... MOOTOOLS , if you don't know it sorry I won't be pasting docs from mootools.net manuals
From: Henry on 21 Apr 2008 11:35 On Apr 21, 4:22 pm, Piotr Kaleta <8take...(a)gmail.com> wrote: > ekhm ... MOOTOOLS , if you don't know it sorry I won't > be pasting docs from mootools.net manuals Manuals are only any good if the people who wrote them understand the code they are documenting. What you should post is the code that is relevant to your problem (in isolation from anything that is irrelevent).
|
Pages: 1 Prev: Save screen to a file Next: Edlite LED panel--http://www.edlite.hk |