dhxGrid.loadXML question

Hi,

I assign the value in variable “username” as cookie.

document.cookie = "username =kenneth".

But I would like to assign the value of cookie into get_attendance.php. what’s wrong of this code?

dhxGrid.loadXML("get_attendance.php?name="+username);

thank you.
Kenneth

solved . thanks