Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-08-2011, 02:50 AM   PM User | #1
korssane
Regular Coder

 
Join Date: Jun 2011
Posts: 148
Thanks: 18
Thanked 0 Times in 0 Posts
korssane is an unknown quantity at this point
getting unterminated string literal error

Hi guys ,
i am getting this error " unterminated string literal" but iam unable to locate the problem..iam using fire bug for firefox..
any idea from where this error comes ?

thanks
korssane is offline   Reply With Quote
Old 10-08-2011, 02:57 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,200
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
With firebug, the CONSOLE tab should lead you to the spot. It might be a couple of lines off, but it should be there.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Old 10-08-2011, 03:19 AM   PM User | #3
korssane
Regular Coder

 
Join Date: Jun 2011
Posts: 148
Thanks: 18
Thanked 0 Times in 0 Posts
korssane is an unknown quantity at this point
Hi Old P

the console is showing a textarea that i am suspecting it a source of this issue..
i tried to use JSStringFormat(#FORM.textareafield#) but stil same issue..

thoughts ?
korssane is offline   Reply With Quote
Old 10-08-2011, 03:39 AM   PM User | #4
jmrker
Senior Coder

 
jmrker's Avatar
 
Join Date: Aug 2006
Location: FL
Posts: 2,764
Thanks: 29
Thanked 453 Times in 447 Posts
jmrker will become famous soon enough
Question

Quote:
Originally Posted by korssane View Post
Hi Old P

the console is showing a textarea that i am suspecting it a source of this issue..
i tried to use JSStringFormat(#FORM.textareafield#) but stil same issue..

thoughts ?
One thought: How about showing some code to analyze?
jmrker is offline   Reply With Quote
Old 10-08-2011, 05:37 AM   PM User | #5
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,200
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
And what the heck are #'s doing in JavaScript code, anyway?
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Old 10-08-2011, 02:08 PM   PM User | #6
jassi.singh
Regular Coder

 
Join Date: Sep 2011
Posts: 103
Thanks: 0
Thanked 14 Times in 14 Posts
jassi.singh can only hope to improve
Hi,

It will be good if you can post your code or a part of code and exact error message in detail. This will help us to catch eror.

Thanks
jassi.singh is offline   Reply With Quote
Old 10-09-2011, 11:50 PM   PM User | #7
korssane
Regular Coder

 
Join Date: Jun 2011
Posts: 148
Thanks: 18
Thanked 0 Times in 0 Posts
korssane is an unknown quantity at this point
Hi guys ,

Sorry for being late ..it just work fine using #JSStringFormat("#FORM.textareafield#")# .

thanks a lot for all your help..
korssane is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:15 AM.


Advertisement
Log in to turn off these ads.