Wrox Programmer Forums
|
BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0
This is the forum to discuss the Wrox book Professional JavaScript for Web Developers by Nicholas C. Zakas; ISBN: 9780764579080
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2005, 05:20 AM
Authorized User
 
Join Date: Oct 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to return string value with quotes (single or

Hi, how can I return String value retrieved from the database that consist of single or double quotes to the textbox in the form

If the data is without quotes there isn't any error.
 
Old November 9th, 2005, 03:56 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

You are making the assignment through javascript, not just writing the value in the textbox directly? Try using a javascript function to replace the " and ' with \" and \'.


Brian
 
Old November 9th, 2005, 10:26 PM
Authorized User
 
Join Date: Oct 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have try that but seems to have error - missing ";". how do I go about
 
Old November 10th, 2005, 01:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Is there anyway to post the code to try to figure this out? My guess would be that something is getting thrown off (like maybe something not getting replaced and it thinks its continuing the line processing, but it shouldn't, if that makes sense).

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help! i hate...double and single quotes... keita Classic ASP Basics 3 March 28th, 2007 11:12 AM
displaying single quotes and double quotes ren_123 Classic ASP Databases 2 February 22nd, 2006 02:17 PM
Problem with single quotes ' mnoon Access 7 March 16th, 2005 03:44 PM
Problem with " ' " (single quotes) Varg_88 Classic ASP Databases 2 September 3rd, 2004 08:50 AM
Double Quotes and Single Quotes Problem phungleon Classic ASP Basics 7 May 27th, 2004 01:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.