473,326 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

'Unterminated String Constant'... where??

Chrisjc
375 256MB
I Have no IDEA what this error code means on my page.. I have chech the lines listed and just doesnt add up.. here is the error

Line: 11
Char: 38
Error: Unterminated string constant
Code: 0
URL: IntakeSystemstest.php

and here is the code starting from line 1 to line 30

================================================== ===
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4.  
  5. <script type="text/javascript" src="ajax/ajax.js"></script>
  6.  
  7. <style type="text/css">
  8.   span:visited{text-decoration:none; color:#293d6b; }
  9.   span:hover{text-decoration:underline; color:#293d6b; }
  10.   span {margin:0 0 0 10px;color:#293d6b; cursor: help;width:85px;}
  11. .tb {text-align:center;vertical-align:top;font-family:tahoma,arial;font-size:10pt;}
  12. </style>
  13.  
  14. <script type="text/javascript">
  15.  
  16. var div1 = '<select id="make" name="make" style="font-family:Tahoma;font-size:10pt;width:184px;" onchange="getModel(this)"><option value=""Select Made</option></select>';
  17. var div2 = '<select id="model" name="model" style="font-family:Tahoma;font-size:10pt;width:184px;" onchange="getYear(this)"><option value="">Select Model</option></select>';
  18. var div3 = '<select id="year" name="year" style="font-family:Tahoma;font-size:10pt;width:184px;" onchange="getEng(this)"><option value="">Select Year</option></select>';
  19. //var div4 = '<select id="engtype" name="engtype" style="font-family:Tahoma;font-size:10pt;width:184px;" onchange="getLiter(this)"><option value="">Select Engine Type</option></select>';
  20. //var div5 = '<select id="liter" name="liter" style="font-family:Tahoma;font-size:10pt;width:184px;" onchange="getPart(this)"><option value="">Select Liter</option></select>';
  21. var div6 = '<p style="font-family:Tahoma;font-size:9pt;text-align:center">aFe Product Browser <b>Version 2:</b><br /></p>';
  22. var div7 = '<p>&nbsp;</p>';
  23.  
  24. var ajax = new sack();
  25. var selFuel;
  26. var selYear;
  27. var selMake;
  28. var selModel;
  29. var selEng;
  30. var selLiter;
  31.  
If any one could shine some light on this issue that be great. I notice what the error is doing I just cant figure out how to fix it...
May 18 '07 #1
5 3621
pbmods
5,821 Expert 4TB
Changed forum topic to better summarize contents.

You're quoting a JavaScript error. I'm moving this thread to the JavaScript forum.
May 18 '07 #2
iam_clint
1,208 Expert 1GB
<script type="text/javascript" src="ajax/ajax.js"></script>

here i see your including a javascript goto that line on that .js page. and paste a couple lines above and below that line here. and we can help you.
May 18 '07 #3
Chrisjc
375 256MB
<script type="text/javascript" src="ajax/ajax.js"></script>

here i see your including a javascript goto that line on that .js page. and paste a couple lines above and below that line here. and we can help you.

Here is line 1 to line 47

Expand|Select|Wrap|Line Numbers
  1. /* Simple AJAX Code-Kit (SACK) v1.6.1 */
  2. /* ©2005 Gregory Wild-Smith */
  3. /* www.twilightuniverse.com */
  4. /* Software licenced under a modified X11 licence,
  5.    see documentation or authors website for more details */
  6.  
  7. function sack(file) {
  8.     this.xmlhttp = null;
  9.  
  10.     this.resetData = function() {
  11.         this.method = "POST";
  12.           this.queryStringSeparator = "?";
  13.         this.argumentSeparator = "&";
  14.         this.URLString = "";
  15.         this.encodeURIString = true;
  16.           this.execute = false;
  17.           this.element = null;
  18.         this.elementObj = null;
  19.         this.requestFile = file;
  20.         this.vars = new Object();
  21.         this.responseStatus = new Array(2);
  22.       };
  23.  
  24.     this.resetFunctions = function() {
  25.           this.onLoading = function() { };
  26.           this.onLoaded = function() { };
  27.           this.onInteractive = function() { };
  28.           this.onCompletion = function() { };
  29.           this.onError = function() { };
  30.         this.onFail = function() { };
  31.     };
  32.  
  33.     this.reset = function() {
  34.         this.resetFunctions();
  35.         this.resetData();
  36.     };
  37.  
  38.     this.createAJAX = function() {
  39.         try {
  40.             this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  41.         } catch (e1) {
  42.             try {
  43.                 this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  44.             } catch (e2) {
  45.                 this.xmlhttp = null;
  46.             }
  47.         }
  48.  
May 18 '07 #4
iam_clint
1,208 Expert 1GB
i don't see any problems here, can you post a link to where I can see the code in action.
May 18 '07 #5
Chrisjc
375 256MB
i don't see any problems here, can you post a link to where I can see the code in action.

http://www.afefilters.com/IntakeSytemstest.php

Do the following to get the error.. Search for

GAS

HONDA

CIVIC

2005


when it pulls the info from the database I get the error.

also notice what it should be doing is see the 10-10082 above the 11-10082??? The 10 is pulling up fine from the database how ever the 11 is not and the picture price and information is there!! its just not working I get that damn error insted I have no idea why...

NOTICE the serach bar to the RIGHT top type in 11-* click SEARCH

thats what it should be pulling up when you search just with the right part number to the right car.. but see how all the info is there.. I just dont get it....
May 18 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: KathyB | last post by:
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. The error...
6
by: Jeff | last post by:
Hi, does anyone know why this: <a onclick="insertatcaret(window.opener.document.formname.fieldname,'<td class="header">')">text</a> returns a "Unterminated String Constant" error message in IE...
18
by: William | last post by:
I have the following javascript function that updates a scroll_list and sends the updated entry (with its index) to a server script ( i.e. http://mkmxg00/cgi/confirmUpload.pl ) for further...
2
by: polilop | last post by:
When i open my page in IE it shows an error Unterminated string constant om Line..... When i look at the line it shows the line where the </SCRIPT> tag is ???? Moziila dose not see this error,...
5
by: ken s | last post by:
From server-side code I'm using Response.Write to display a javascript alert box. It works fine except when I try to include a new line character, which causes this javascript error: ...
2
FLPerras
by: FLPerras | last post by:
When I use my Windows ( XP ) Media Player Internet Radio station feature I get this error message "Unterminated string constant" http://ad.yieldmanager.com/imp?z=2&Z=300x250&e=5326&t=3 and it...
2
by: rajuk | last post by:
Hi i have following code,when i execute this code i got unterminated string constant error.any javascript guru can you look into this please. raju /* The link details */ var links = new Array...
1
by: VUNETdotUS | last post by:
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...
1
by: buntyindia | last post by:
I am getting the following string from the database using Java Text <p>hi m</p> <p>Do Something</p> <p>&nbsp;</p> that I have to load into a javascript based rich text editor.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.