thx for the answers.
sorry for the wrong posted opacity value. It doesnt work with 1
either.

i change the complete code to an hml Request with the same result.
I think the request dont wait until the fadeout is done and is so fast
that it overrides the writehere.

Here my new code:

window.addEvent('domready', function()
{

var path = 'http://www.opteynde.com/';
var writehere = $('jsonText');

writehere.set('tween', {duration: '50000'});

writehere.tween('opacity', 0); //fade out



new Request.HTML({
  url: path + 'ask3.php',
  data: {'html': "<p>A paragraph</p>" +
                 "<script type='text/javascript'>alert('called from
request')<\/script>"},
  method: 'post',
  update: 'jsonText',
  onSuccess: function(response) {
    $('jsonText').tween('opacity', 1);
  }
}).send();

});


On 3 Nov., 00:28, Piotr Zalewa <[email protected]> wrote:
> This is working:http://mooshell.net/vGxaC/1
>
> * full opacity is for 1, not 100 (as it was adviced already)
> * Request.JSON.onSuccess is returning an json object not html content - use
> Request.HTML for that (examplehttp://mooshell.net/html/)
> * you may use mooshell with Request.JSON, but certainly not with other
> domains.
>
> zalun
> --
> London, UK

Reply via email to