Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > javascript single quote

Reply
Thread Tools

javascript single quote

 
 
Ponic
Guest
Posts: n/a
 
      04-05-2004
Hello,

I have a for loop and inside that I have if and else condition.
For both conditions I need to append a single quote before and after a
value. I am using '\'' to append single quote.

However in my if condition at the end of the value single quote is
giving problem, only at the end of the value, else where it's working.
I tried space instead of single quote, it's working. What could be the
problem? Any ideawhy I am getting error.

Any help is highly appreciable.

Thanks

Ponic
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      04-05-2004


Ponic wrote:

> I have a for loop and inside that I have if and else condition.
> For both conditions I need to append a single quote before and after a
> value. I am using '\'' to append single quote.
>
> However in my if condition at the end of the value single quote is
> giving problem, only at the end of the value, else where it's working.
> I tried space instead of single quote, it's working. What could be the
> problem? Any ideawhy I am getting error.


Post the relevant code snippet, and tell us which error message you get
on which line with which browser
--

Martin Honnen
http://JavaScript.FAQTs.com/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with single-quote and double-quote when using subprocess. Evan Python 3 11-04-2008 12:24 PM
problem with quote and single-quote when using "subprocess" Evan Python 1 11-04-2008 12:08 AM
How to handling string contains single quote and double quote vikrant Perl Misc 8 05-17-2007 04:37 PM
Datagrid on load; replace all double single quote to single quote to display to user Eric Layman ASP .Net 3 04-14-2007 07:16 AM
Single Quote Versus Double Quote In A href link knee-dragger@hotmail.com HTML 3 06-13-2006 12:42 AM



Advertisments