WebCT forces the following new window link formatting:
onclick=”if (! top.in_designer_mode()) { top.doWindowOpen(‘
I use their text box to supply the URL of the link I want their page to point to, eg.
I need to pass the username value of their login cookie in the querystring of the above url something like so:
?uid=’+document.cookie.WebCTTicket.username+
Trouble is that they format the new window opener for me as described above with apostrophes and break my link. It ends up being:
top.doWindowOpen(‘
I want the uid variable in my querystring to hold the username value of their WebCTTicket cookie, but don’t know how to get it in there. Do I need to escape the apostrophe sonehow (I tried and failed)?