Hey,
thanks for all the replies, i've already sorted out what was wrong. After playing around a bit i found out that i had to initialize this code after each pageload:
Code:
<script type="text/javascript">
var box = {};
window.addEvent('domready', function(){
box = new MultiBox('mb', {descClassName: 'multiBoxDesc', useOverlay: true});
});
</script>
after that it worked like a charm.
I've got another problem though. I didn't create a new thread cause i didn't want to flood the forums, i hope people can still help me out 
i'm trying to load a php file through AJAX which accesses the mysql db. the file loads fine, but for some reason i can't run any javascript functions inside the file. here's the code:
PHP Code:
<?php
include ('sql.php');
if (!$_GET[start]) { $_GET[start] = 0; }
$result = mysql_query("SELECT * FROM `posts` WHERE `post_content` NOT LIKE '' AND `post_status` NOT LIKE 'draft' AND `post_status` NOT LIKE 'inherit' $sqlsearch ORDER BY `post_date` DESC , `ID` DESC LIMIT $_GET[start] , 1");
if (mysql_num_rows($result) == 0) {
echo "Sorry, no posts found. Please search for something else.<br>";
}
while($row = mysql_fetch_array($result))
{
echo "$row[post_title]<br><br>";
if ($row[genre3]) { echo "$row[genre1] - $row[genre2] - $row[genre3]"; }
elseif ($row[genre2]) { echo "$row[genre1] - $row[genre2]"; }
else { echo $row[genre1]; }
echo "<br><br><br><a href=\"javascript:runme();\">Run Me</a>";
}
?>
<script type="text/javascript">
function runme() {
alert ('test');
}
</script>
any ideas why the runme function doesnt run? if i direct access the file the function works. stuff like <a href="javascript:alert('test');"> works aswell.
You can view the script in action here: http://it-leaked.com/v4test/
thanks for the help. 
PS: Should i change the topic name?
Bookmarks