I'm trying to add a pageTitle variable in the querystring for the pop_send_to_friend, so that the page displays the title of the page being "sent". However, if page titles include the single quote character (i.e. (My Forum - Topis is Let's Eat!)), it dies, because the single quote causes the javascript around OpenWindow to think it's the end of the parameter.
I tried putting server.URLEncode around the page Title, as in:
href=""JavaScript:openWindow('pop_send_to_friend.asp?pgTitle=" & Server.URLEncode(pageTitle) & "&url=" & strForumURL & "topic.asp?TOPIC_ID= etc. etc. etc.
but it still dies. Anyone got a solution for this? Client really wants page title to display as well.