+1  A: 

In your ajax update script, call this after the results are in:

$("#message").fadeIn("slow");

Scripts coming back as part of the request are unreliable, putting the logic in your ajax result function is a better approach in this case.

Try this for your ajax call:

function addpoints()  { 
  var postFile = 'addpoints.php?userid='+ $('#user_id_points').val();
  $.post(postFile, function(data){
    $("#points").html(data).find("#message").fadeIn("slow")
    setTimeout(addpoints, 62000);
  });
}  
Nick Craver
Now it does work, but it only appears if i have a <div id="message">test</div> in index.php, and not file.php, like i wants to? How do i solve that?
Karem
@providerazzzyh - Can you post the code that fetches the ajax page? I could help a lot better with that code
Nick Craver
Okay ive added my ajax script and the php file that its updating
Karem
@providerazzzyh -Try the updated answer...before you were trying to show `#message` before it was added, this should wait until it's in the document and ready to do.
Nick Craver
@Nick Craver- i tried the new answer, and it works great in FF, but doesnt appear in IE..
Karem
I just tried to put the <div> box in index.php and then remove the ajax updating script and then putted $("#message").fadeIn("slow"); under document ready function, and then it worked in IE..But ofcourse thats not how i wanted, but i now know that it works with document ready function and not if its in the addpoints() function. Although it works in FF doing it with addpoints().. Its like in IE, it doesnt want to use #message from addpoints.php..? Hope you can help me out, im pretty lost :(
Karem
are you there...?
Karem
@Azzyh - This sounds like a more global problem, can you run your outputted html through the w3c validators, see if there's some unclosed tag or ID problem? Things like this make IE act real funny. http://validator.w3.org/
Nick Craver
okay, so i did like you said and i ran my site through validator.w3.org, i got 102 erros, and i've solved out them all.. BUT STILL nothing in IE. http://azzyh.dk/newgen/area/member/indextest.php check it out here, it will work in FF but not IE! (ive set the timeout to 3000, thats why its going OK fast in FF).
Karem
@Azzyh - You have a javascript error, in your body onload tag `MM_preloadImages(....` look at `images/index_10.gif`, it's not wrapped in quotes completely, it has `'images/index_10.gif`, needs to be `'images/index_10.gif'`. Fixing that should get you going.
Nick Craver
@Nick Craver - Okay, so i fixed that. BUT still not appearing, this seems to be really hard for IE?
Karem
@Azzyh - Works fine in IE8 here, just needs some styling work, but the messages appear in the left-hand bar header.
Nick Craver
A: 

Solved this by adding a header('Content-type: text/html; charset=utf-8'); in the top in addpoints.php

Karem