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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 PLus (+) Symbol in the preview
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Gurb
Starting Member

8 Posts

Posted - 14 November 2001 :  09:57:28  Show Profile
Hi my preview doesn't show the + symbol (i saw even this forum doesn't....) anyone has a fix for this?
Thanks

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 14 November 2001 :  12:26:44  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
The problem is in this code, but I don't know enough about javascript to know how to fix it.


function OpenPreview()
{
var curCookie = "strMessagePreview=" + escape(document.PostTopic.Message.value);
document.cookie = curCookie;
popupWin = window.open('pop_preview.asp', 'preview_page', 'scrollbars=yes,width=750,height=450')
}


I don't know how the escape function works, but that's where we need to do some extra work. Maybe run it through code similar to edit_hrefs in inc_functions?

Dave Maxwell
--------------
Proud to be a "World Class" Knucklehead
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 14 November 2001 :  14:37:47  Show Profile
The escape function is a javascript built-in function, no way to modify it that I know of.

take a look at this discussion:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=17270

This was discussed awhile back, about alternate ways to do the Message Preview

Try it here:

Click here

I can add it to this forum as an alternate way to preview so that it can be tested out.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 14 November 2001 :  18:21:43  Show Profile
Richard that code looks good. Can't think of any other place to test it other than here.

- David
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 14 November 2001 :  21:33:46  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I did an alternate preview mod for 3.1 SR4 a while back, where it showed a preview if you checked a little box down by the signature etc... I could re-create that.

----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource
Go to Top of Page

Gurb
Starting Member

8 Posts

Posted - 22 November 2001 :  03:41:43  Show Profile
I tried the code and it works great for my forum just a little slower but it's ok
Thanks

Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07