ariel
12-18-2003, 10:22 AM
I have a page that users can select a group of interests. That page sets the cookie when they click continue and holds their interests and their name, then loads a new page which is supposed to show their name and a list of links based on the interests they choose. I can get the new page to show their name, but not the list of interests. The interests are set up in an array. I can see the interests are in the cookie when I look at the cookie, but I can't get the URL's to show on the page. This is the section of code I have that is supposed to do that.
for (var idx=0; idx < totPrefs; idx++) {
CookieValue = "";
CookieValue = getCookie(prefs[idx].Cookie)
if (CookieValue == "true") {
document.write("<CENTER>");
document.write("<TR ALIGN=CENTER><TD><A HREF=" + prefs[idx].URL + ">" + prefs[idx].prefName + "</A></TD></TR><BR>");
document.write("</CENTER>");
}
}
That code is in the body of the HTML.
Any ideas? I've attached the page in .txt form in case you need to see it all.
Thanks!
Ariel
for (var idx=0; idx < totPrefs; idx++) {
CookieValue = "";
CookieValue = getCookie(prefs[idx].Cookie)
if (CookieValue == "true") {
document.write("<CENTER>");
document.write("<TR ALIGN=CENTER><TD><A HREF=" + prefs[idx].URL + ">" + prefs[idx].prefName + "</A></TD></TR><BR>");
document.write("</CENTER>");
}
}
That code is in the body of the HTML.
Any ideas? I've attached the page in .txt form in case you need to see it all.
Thanks!
Ariel