|
| |
|
|
jonance
Posts: 297 From: Louisville KY USA Status: offline
|
Simple replace in database results...please help - 2/24/2008 22:04:24
Hi, I have a scrolling marquee script that is in javascript. The marquee contents are within two apostrophes ('content here'). I am using it to display database results in the scroll, however some of my results have apostrophes in them so it throws off the script. Is there a way to REMOVE any apostophes that appear in my results? Here is how i display the results....i'm sure this is simple but i just don't know how to do it. <%=FP_FieldVal(fp_rs,"realname")%>
|
|
|
|
rdouglass
Posts: 9186 From: Biddeford, ME USA Status: offline
|
RE: Simple replace in database results...please help - 2/25/2008 9:35:22
Just my $.02...one more option: You will need to use the "\" for a JS marquee to show an apostrophe or other special characters. Like so: <%=replace(FP_Field(fp_rs,"realname"),"'","\'")%> JavaScript needs to 'escape' those special chars. Hope it helps.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
jonance
Posts: 297 From: Louisville KY USA Status: offline
|
RE: Simple replace in database results...please help - 2/25/2008 9:37:50
Thanks alot...I used spooky's to totally omit the apostrophes...but i'm saving all the code for future reference! Thanks John
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|