Re: Converting Quotes in Javascript
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38536
interpreted = N
texte = Clint,Try using single quotes in place of double quotes in your javascript
 list6array[1] = '40 Cue' list6source[1] = 'P0002' list6array[2] = '57 Cue' list6source[2] = 'P0003' This proably will work for you, I'm not able to grasp the situationof your program with this snippet.HTHAnup Setty----- Original Message -----From: Clint Davis 
To: WebCatalog Talk Sent: Monday, September 10, 2001 11:40 AMSubject: Re: Converting Quotes in Javascript> Thanks for the suggestion, Anup.>> I tried this, but my javascript is being used to generate a pulldown> menu. So, the code below puts the following into my pulldown:>> 40%22%20Cue>> Not very pretty.>> I can't believe this is turning out to be such a pain. Shouldn't this> be easier?>>> >Try using [URL] tag around the value> >> >list6array[1] = [url]40 Cue[/url]> >> >You can always UNURL them when  you need to use it,> >I don't know if this helps to ease your situation.> >HTH> >Anup Setty> >> >> >----- Original Message -----> >From: Clint Davis > >To: WebCatalog Talk > >Sent: Monday, September 10, 2001 10:33 AM> >Subject: Converting Quotes in Javascript> >> >> >>  I'm storing several measurements in a database that include the> >>  quote/inch mark (ex: 40 Cue). I'm pulling these product names from> >>  the database to generate a javascript. When the JS encounters one of> >>  the quote/inch marks, it assumes that the line is supposed to end and> >>  script breaks.> >>> >>  > >>  list6array[1] = 40 Cue> >>  list6source[1] = P0002> >>  list6array[2] = 57 Cue> >>  list6source[2] = P0003> >>  > >>> >>  needs to be...> >>> >>  > >>  list6array[1] = 40\ Cue> >>  list6source[1] = P0002> >>  list6array[2] = 57\ Cue> >>  list6source[2] = P0003> >>  > >>> >>> >>  The archives said quote/inch marks are a big NO-NO in a custom> >>  [convertchars] DB.> >>  So, how can I convert the quote/inch mark to \ without using> >[convertchars]?> >>  --> >>  _______________________> >>> >>  Clint Davis> >>  Webmaster> >>  Gray Loon Marketing Group> >>  812.422.9999> >>> >>  cdavis@grayloon.com> >>> >>  -------------------------------------------------------------> >>  This message is sent to you because you are subscribed to> >>    the mailing list .> >>  To unsubscribe, E-mail to: > >>  To switch to the DIGEST mode, E-mail to> >> >>  Web Archive of this list is at: http://search.smithmicro.com/> >> >> >-------------------------------------------------------------> >This message is sent to you because you are subscribed to> >   the mailing list .> >To unsubscribe, E-mail to: > >To switch to the DIGEST mode, E-mail to> >> >Web Archive of this list is at: http://search.smithmicro.com/>>> --> _______________________>> Clint Davis> Webmaster> Gray Loon Marketing Group> 812.422.9999>> cdavis@grayloon.com>> -------------------------------------------------------------> This message is sent to you because you are subscribed to>   the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to  the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Clint,Try using single quotes in place of double quotes in your javascript list6array[1] = '40 Cue' list6source[1] = 'P0002' list6array[2] = '57 Cue' list6source[2] = 'P0003' This proably will work for you, I'm not able to grasp the situationof your program with this snippet.HTHAnup Setty----- Original Message -----From: Clint Davis To: WebCatalog Talk Sent: Monday, September 10, 2001 11:40 AMSubject: Re: Converting Quotes in Javascript> Thanks for the suggestion, Anup.>> I tried this, but my javascript is being used to generate a pulldown> menu. So, the code below puts the following into my pulldown:>> 40%22%20Cue>> Not very pretty.>> I can't believe this is turning out to be such a pain. Shouldn't this> be easier?>>> >Try using [url] tag around the value> >> >list6array[1] = [url]40 Cue[/url]> >> >You can always UNURL them when  you need to use it,> >I don't know if this helps to ease your situation.> >HTH> >Anup Setty> >> >> >----- Original Message -----> >From: Clint Davis > >To: WebCatalog Talk > >Sent: Monday, September 10, 2001 10:33 AM> >Subject: Converting Quotes in Javascript> >> >> >>  I'm storing several measurements in a database that include the> >>  quote/inch mark (ex: 40 Cue). I'm pulling these product names from> >>  the database to generate a javascript. When the JS encounters one of> >>  the quote/inch marks, it assumes that the line is supposed to end and> >>  script breaks.> >>> >>  > >>  list6array[1] = 40 Cue> >>  list6source[1] = P0002> >>  list6array[2] = 57 Cue> >>  list6source[2] = P0003> >>  > >>> >>  needs to be...> >>> >>  > >>  list6array[1] = 40\ Cue> >>  list6source[1] = P0002> >>  list6array[2] = 57\ Cue> >>  list6source[2] = P0003> >>  > >>> >>> >>  The archives said quote/inch marks are a big NO-NO in a custom> >>  [convertchars] DB.> >>  So, how can I convert the quote/inch mark to \ without using> >[convertchars]?> >>  --> >>  _______________________> >>> >>  Clint Davis> >>  Webmaster> >>  Gray Loon Marketing Group> >>  812.422.9999> >>> >>  cdavis@grayloon.com> >>> >>  -------------------------------------------------------------> >>  This message is sent to you because you are subscribed to> >>    the mailing list .> >>  To unsubscribe, E-mail to: > >>  To switch to the DIGEST mode, E-mail to> >> >>  Web Archive of this list is at: http://search.smithmicro.com/> >> >> >-------------------------------------------------------------> >This message is sent to you because you are subscribed to> >   the mailing list .> >To unsubscribe, E-mail to: > >To switch to the DIGEST mode, E-mail to> >> >Web Archive of this list is at: http://search.smithmicro.com/>>> --> _______________________>> Clint Davis> Webmaster> Gray Loon Marketing Group> 812.422.9999>> cdavis@grayloon.com>> -------------------------------------------------------------> This message is sent to you because you are subscribed to>   the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to  the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Anup Setty 
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
 
purchase.log file (1997)
 
Plugin causes type 2 error on WebStar startup (2000)
 
PCS Emailer's role ? (1997)
 
Hiding a character (2001)
 
notification solutions (1997)
 
A quickie question (1997)
 
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
 
Emailer error 550? Never mind. (1999)
 
 Checking Webdna is running (2007)
 
Cart Number sequence (1997)
 
Search problems! (1999)
 
Price + Texte (1999)
 
[WebDNA] Hosting Needs for WebDNA (2014)
 
Math Help (2000)
 
America Online Issues (1998)
 
expired beta (1997)
 
Server Freeze (1998)
 
 Version issue? (2004)
 
reading a cookie problem (1998)
 
RE: is sku a REQUIRED field on NT (1997)