Problem with anchors... Please help !

0 views
Skip to first unread message

OUATATAZ

unread,
Nov 6, 2009, 4:33:26 AM11/6/09
to Prototype & script.aculo.us
Hello all !

Considering the following function :
*******
function mSelectDate(dt) {
document.location.hash = "loc2-1";
$('resasDuJour').innerHTML = '<span
class="retraitLoading">LOADING...';
new Ajax.Request(
'(ajax2)_e_welcome.php?date='+ cal.getFormatedDate("%Y-%m-%d", dt),
{
method:'get',
onSuccess: function(transport) {
$('resasDuJour').hide();
$('resasDuJour').innerHTML = transport.responseText;
$('resasDuJour').appear();
}
}
);
return true;
}
*******
When I call this function, I would like that the page refresh taking
into account the hash (loc2-1) as soon as the 'resasDuJour' div
appear, but it does not work...
Is there a way to do this ?
Thanks in advance for your help.
Reply all
Reply to author
Forward
0 new messages