Error - Unterminated String Literal SelectAndUpdate('EA13','GY','210/60R

Aug 18, 2011

I am setting dynamically a function call in my php as like this

onClick=selectAndUpdate('".$row1[serialNo]."','".$row1[bC]."','".$row1[size]."','".$row1[pattern]."');

Then when I run I get this error unterminated string literal selectAndUpdate('EA13','GY','210/60R. That means my third value from the db got problem due to the slash right? How to overcome this?

View 7 Replies


ADVERTISEMENT

Error: Unterminated String Literal

Jan 24, 2009

Error: unterminated string literal

on this line?

document.getElementById('id_company').innerHTML = '<span class="textGreen"><strong>news</strong></span>';

View 1 Replies View Related

Getting Unterminated String Literal Error?

Oct 8, 2011

i am getting this error " unterminated string literal" but iam unable to locate the problem..iam using fire bug for firefox..

View 6 Replies View Related

Strange Unterminated String Literal Error

Dec 22, 2007

I can't find anything wrong with this code <!-- Initialise the editor --><script>
initRTE('<table align="" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr></tr></tbody></table>', 'example.css');
</script>

However this throws an error in firebug and the page doesn't display it correctly, i get an error in firebug

unterminated string literal
initRTE('<table align="" border="0" cellpadding="0" cellspacing="0" widt...
Does anyone have and idea whats going on?

View 16 Replies View Related

Unterminated String Literal

Jan 25, 2006

im trying to read an xml file and put it into a textarea on my page.
here is the code that returns the xml file as a string:

Document doc = new Document();
SAXBuilder saxBuilder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
XMLOutputter xmlOut = new XMLOutputter(Format.getPrettyFormat());
doc = saxBuilder.build(filesName);
String xml = outputter.outputString(doc);

no when i try to pass this to a javascript as follows:
function putXML(fileName){
var blah = '<%= xml %>'
document.btraxtestForm.HighwayMessage.innerText=blah;
}

it gives me a unterminated string literal error.

also, i will never know the contents of this xml file so i cant split up the string.
has anyone any ideas how i will fix this?

View 5 Replies View Related

Unterminated String Literal From Paste?

Jun 30, 2011

I created a simple WYSIWYG for creating CSS based webpages. It works exactly as assumed in Safari and Chrome. However, in firefox, when you copy/paste more than one line of text, instead of formatting it as html, in puts in line breaks causing the array storing all of the data to break into multiple lines and causing an unterminated string literal.

1. suggest why it is behaving this way?
2. suggest a work around to allow it to work on FF?

View 2 Replies View Related

Getting Unterminated String Constant Error

Jul 20, 2005

What do i need to add to the document line to stop getting an Unterminated
String Constant error?

itemtocheck = &#55614;&#56452;'
document.writeln('<!--#include
virtual="checkQty.cgi?item='+itemtocheck+'"-->');

View 3 Replies View Related

Unterminated String Constant Error

Apr 6, 2005

I'm getting an error message come up in IE6 when somenone subscribes to my newsletter from my home page (either from the drop down hover box form or the left hand form) here .

After entering a name and email address
I get:

A runtime error has occurred....do you wish to debug?
Line 4
Error: Unterminated string constant

When I click NO I then get a second small windows popup which says:

A runtime error has occurred....do you wish to debug?
Error: Expected ')'

I've looked at lines 4 and 43 of my thanks.php page (the page subscribers get when they fill out the form but before they double optin via the email) and I can't find anything wrong. I guess the first message expects a semicolon and the second obviously a closing bracket. Code:

View 2 Replies View Related

Run Time Error Unterminated String Constant

Dec 8, 2005

I am facing a problem in javascript. strdata is a variable of
javascript and following is an assignment(hmm a Huge one but
unfortunately its not mine code, I am just trying to rectify it) to
this varibale.. Now I am facing a run time error(Unterminated string
constant).....

View 3 Replies View Related

Unicode + Escape Character = IE Unterminated String Constant Error!

Nov 1, 2007

Let's say I have a string:

div.innerHTML = "<a onclick='foo(""+myWord+"");'></a>";

in IE only (tested version 7) if var myWord = "English" then it works
fine but if var myWord = "Modifier Chau00EEnes" then I get "Unterminated
string constant" error.

What fix would you suggest to keep div.innerHTML = "" format?

View 1 Replies View Related

XSL Stylesheet For XML - Getting Error Message" A String Literal Was Expected, But No Opening Quote Character Was Found"?

May 14, 2011

I'm supposed to generate an XHTML table using the following data:

<CLASS ID=”Advanced Web Development”>
<STUDENT>
<NAME>Tom</NAME>[code]....

Now, i keep getting this error message..

A string literal was expected, but no opening quote character was found. Error processing resource 'file:/C:/Users/S/Desk...

<CLASS ID=”Advanced Web Development”>
----------^

View 3 Replies View Related

Unterminated String -- Within A Querystring...?

Jul 20, 2005

Hi, this is the first lines of a function. Although it runs, it still
throws an "Unterminated string constant" error in the browser. It is
all in one line, just wouldn't fit here.....

View 5 Replies View Related

Replace String Literal

Jun 6, 2006

How would one make the ECMA-262 String.replace method work with a
string literal?

For example, if my string was "HELLO[WORLD]" how would I make it work
in this instance.

Please note my square brackets are not regular expression syntax.

View 21 Replies View Related

Parameterizing A String Literal

Mar 16, 2007

A section of my webpage consists of two dozen lines of text displayed
by sequentially calling:

function printText1( text )
{
document.getElementById( "textLine1" ).innerHTML = text;
}
....
function printText24( text )
{
document.getElementById( "textLine24" ).innerHTML = text;
}

Is there a way to parameterize the string literal (textLineXX) so that
I can do it all by repeatedly calling one printText function?

View 7 Replies View Related

IE - Object Literal Notation Error

Jul 1, 2009

I'm declaring a class in OLN:

Code:

The problem is that in IE, when I call myfunc() it complains with the error: Class is undefined

I'm not sure what I'm doing wrong. Class is declared in as much global scope as possible, and that shouldn't even matter in JS.

View 3 Replies View Related

SetTimeout() Syntax Convert Expression To Literal String?

Apr 16, 2011

<p> Howdy <p> expressed as a literal string that is passed to the setTimeout() function might look like this: setTimeout("document.getElementById('first').innerHTML = '<p>' + 'HOWDY' + '</p>';", 2000);

I guess you can't just put quotes around an expression like this: "'<p> HOWDY </p>;" So tags have to be isolated, but it get confusing with expressions like this, which I am not sure how to express as a string:

<p><h2 class="pos_left"> <img src="car1.jpg" name="slide" width="400" height="250" /> </h2> </p>

I wish I could change the " in there to ' and then just wrap the whole thing in double " This is what I came up with but it did not work: setTimeout("document.getElementById('first').innerHTML = '<p>' + '<h2' + 'class='pos_left'' + '>' + '<img' + 'src='car1.jpg'' + 'name='slide'' + 'width='400'' + 'height='250'' + '/>' + '</h2>' + '</p>';", 4000);

View 6 Replies View Related

JQuery :: Un-terminated String Literal (creating A Script Tag) [uploadify]?

Dec 23, 2011

I am trying to create 3 elements on the fly when a button is clicked. The button is the show an upload form for images. I am using uploadify (first time using it) and I have several different upload type/options for them so I am sending id's to differentiate between them. The problem I am having is when trying to create the script tag which in turn controls the input file type tag, and it is baffling me. Here's the code first:

[Code]...

View 1 Replies View Related

Literal Inherit From A Literal?

Nov 22, 2010

what is the best way to setup one literal to be the prototype for another?So far I can only think of making a copy into a constructor.

Code JavaScript:

var meths = {
// creates a constructor function populated with a shallow copy of child
// the prototype for the new instance is set to the parent.

[code]....

View 8 Replies View Related

Accessing String By Index In IE Error

Sep 22, 2006

( text )
var v = 'I am a string'alert(v);alert(v[0]);

Works fine in Mozilla but not in IE. v[0] in IE is 'undefined'

I've tried declaring v as new String(); and the problem still happens.
I've done some googling for this issue, but can't find anything on it.

View 2 Replies View Related

JQuery :: Uncaught Reference Error - String Not Defined?

Feb 13, 2011

I built my website using Stacey app, and have installed the Jquery booklet plugin, but its not working, I get Uncaught Reference Error: $ is not defined. It is the script below that is not Working....

<script type="text/javascript" charset="utf-8">
$(function() {
$('#mybook').booklet(); });
</script>
<script src="../booklet/jquery-1.4.4.min.js" type="text/javascript" charset="utf-8"></script>

View 1 Replies View Related

Display Error Message When String Entered Together With The Characters Outside The A-Z A-z 0-9?

Mar 16, 2009

How to display error message when string entered together with the characters outside the A-Z a-z 0-9?

View 3 Replies View Related

String Replace - When Try - Get Illegal Character Error Message

Apr 28, 2009

How do i replace ' string, when i try it i get illegal character error message..

I have also tried:

View 4 Replies View Related

Echo String Arguments - Attributes Construct Error

May 8, 2010

Why does the the following javascript function not work? This is not valid HTML (that is the problem). This works when not passing any arguments to the function. I think I'm required to have all element attribute values in quotes for XHTML standards. I've tried placing my echo statement argument in double and single quotes, and they both do not work. What simple thing am I missing?

I get an:

Quote:

And an:

Quote:

Code:

View 2 Replies View Related

Object Literal

Oct 17, 2006

Below I declared a basic object literal with 2 methods. The
"doSomething" method is call from the "useDoSomething" method but the
call is only sucessful if I use the "this" keyword or qualify the call
with "SomeObj".

Can someone describe why this is happening?

var SomeObj = {
doSomething : function()
{
return 'Did something'
},

useDoSomething : function()
{
//Doesn't work - doSomething() no defined.
return doSomething();
//Works
//return this.doSomething();
//Works
//return SomeObj.doSomething();
}
}

alert(SomeObj.doSomething());
alert(SomeObj.useDoSomething());

View 11 Replies View Related

Use A Literal In A Function Declaration?

Jun 14, 2010

I have the following code which attaches a function to events in x number of comboboxes (x will probably always = 4, but I do not want to hard-code this). I wish to pass the value of i to the function being attached as well as the value of tempData. In other words, I want the parameters in function to be the value, not a reference variable.

In the current example, I am using the hard-coded variable ci. This I want to be replaced by a literal created when the event handler is attached (the value of the loop variable i). Also, notice that I get the filter value in the event handler (assigned to the variable ct). I would like to replace this code with the value of tempData which would also be determined when the evenet is attached (it is the same value in this case, but it keeps the onChange event from having to do this each time it runs).

var props = {
col_0: "select",
col_1: "select",

[code]....

View 6 Replies View Related

Difference Between The Object Literal And The New

Jul 2, 2010

I have read this from the interentfunction getArea(radius)

Imagine we want to create lots of circle objects using our object as a base - if we declare using the object literal, were not able to do that.

But the new operator can do that - basically allowing us to re-use a user-defined object.

can't understand on the above why we declare using the object literal not able to do that.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved