Having a problem with part of the code. My difficulty is the syntax where the sitename code is.
I only have one username and password for the small group of users who are all the small 80 member school dance team so I don't need a unique username/password for multiple users. The /Private.html hold only a iCal calendar for the dancers and a bit of text with a link back to the abc.com/Belles.html - home page.
I think I have /// the uncecessary code properly. The Target Page I have created in iWeb is
http://abc.com/Belles/Private.html . The abc is not the real domain for obvious reasons.
So how do I properly code this in the sitename references? And do I do harm if i delete the ////// lines?
if(usercode == "13189" && passcode == "11660477472"){
window.open('/Private/'+username+'.html','_blank');
}
//// else if(usercode == "121343508" && passcode == "121343508"){
//// window.open('/sitename/'+username+'.html','_blank');
//// }
//// else if(usercode == "1213848300000" && passcode == "1213848300000"){
//// window.open('/sitename/'+username+'.html','_blank');
//// }
else{
window.location.href ="/sitename/error.html";
}
Thanks,
Rick
PS. was this in your PDF booklet? If so I missed it.