Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Adding Page Title to Send A Friend causes problems
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bax
Junior Member

141 Posts

Posted - 23 August 2002 :  23:44:03  Show Profile
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.

Thanks,

Bryan

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 August 2002 :  00:06:32  Show Profile
use:

chkstring(pageTitle,"JSurlpath")

Basically it changes ' to \'
Go to Top of Page

bax
Junior Member

141 Posts

Posted - 24 August 2002 :  00:09:34  Show Profile
Cool. Thanks Richard. Eventually I'll get what all the different possible chkString options are...

I appreciate the quick response.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 August 2002 :  00:14:31  Show Profile
you're welcome
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07