By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,530 Members | 2,181 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,530 IT Pros & Developers. It's quick & easy.

'Unterminated String Constant'... where??

Chrisjc
100+
P: 375
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
Share this Question
Share on Google+
5 Replies


pbmods
Expert 5K+
P: 5,821
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
Expert 100+
P: 1,208
<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
100+
P: 375
<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
Expert 100+
P: 1,208
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
100+
P: 375
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

Post your reply

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