Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 31st, 2004, 11:56 PM
Registered User
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scripting Syntax Errors, please help

Evening gents, I'm in a bit of a pickle here so please bare with me as I am new to scripting. Recently I've installed a Dynamin-FX Slide menu on a messageboard. Now, it worked fine and dandy for a week before I started getting this error. I should also mention that I have had to remotely link to two .js files in order for it to work. I currently host these files at ripway.com

Now, on with the errors, I get Two Errors when loading pages and they are as follows:
---
An Error has occurred in the script on this page

Line: 2
Char: 1
Error: Syntax error
Code: 0
---
and the 2nd,
---
An Error has occurred in the script on this page

Line: 58
Char: 1
Error: Expected Identifier
Code: 0
---

Now, the following is the Code I use for the <Head> </Head>



<STYLE>
<!--
A.ssmItems:link {color:black;text-decoration:none;}
A.ssmItems:hover {color:black;text-decoration:none;}
A.ssmItems:active {color:black;text-decoration:none;}
A.ssmItems:visited {color:black;text-decoration:none;}
//--->
</STYLE>

<SCRIPT SRC="URL: http://home.ripway.com/2004-5/120892/ssm.js" language="JavaScript1.2"></SCRIPT>

<SCRIPT SRC="http://home.ripway.com/2004-5/120892/ssmItems.js" language="JavaScript1.2"></SCRIPT>


<style type="text/css">
<!--
body { font-size: 10px; font-family: verdana, helvetica, sans-serif; }

td { font-size: 60%; font-family: verdana, helvetica, sans-serif; }

h4 { font-size: 14px; font-weight: bold; }

i { font-size: 11px; font-style : italic; }

.m { font-size: 75%; }

.headings { font-size: 80%; font-weight: bold; }

.title { font-size: 12px; font-weight: bold; }

.inputbox { border-top:#333333 solid thin; border-bottom:#333333 solid thin; border-right:#333333 solid thin; border-left:#333333 solid thin; font-family: verdana, helvetica, sans-serif; }

.inputbutton { font-size: 110%; }

.communitychest { background: #ffffff; }
-->
</style>







The following is the Code used for the Custom Header,

<table width="10%" border="0" cellspacing="0" cellpadding="0" bordercolor="transparent">
  <tr bgcolor="transparent">
    <td colspan="2" valign="top" align="center">
<img src="http://ewpbanners.9f.com/cgi-bin/image/templates/banner5.gif" height="147" width="686" border="0">
   <br><br></td>
  </tr>






I am having some serious trouble as I have no Idea as to where to begin on how to debug any of the above. I would REALLY appreciate any help you could give me.

- Matt
 
Old June 1st, 2004, 12:06 AM
Registered User
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have solved on of the Syntax Errors, But I'm still getting the Expected Identifier Error, my code currently reads:

<STYLE>
<!--
A.ssmItems:link {color:black;text-decoration:none;}
A.ssmItems:hover {color:black;text-decoration:none;}
A.ssmItems:active {color:black;text-decoration:none;}
A.ssmItems:visited {color:black;text-decoration:none;}
//--->
</STYLE>

<SCRIPT SRC="http://home.ripway.com/2004-5/120892/ssm.js" language="JavaScript1.2"></SCRIPT>

<SCRIPT SRC="http://home.ripway.com/2004-5/120892/ssmItems.js" language="JavaScript1.2"></SCRIPT>
 
Old June 1st, 2004, 12:09 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Is there any problem in the js file that you are using?

 
Old June 1st, 2004, 12:12 AM
Registered User
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There shouldn't be, The only thing I've modified are the headers in the ssmitem.js file

 
Old June 1st, 2004, 12:19 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

There is some problem with following JS file:

http://home.ripway.com/2004-5/120892/ssmItems.js

 
Old June 1st, 2004, 12:22 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

there are two dots in the page, and because of which u are getting the error. just below ssmItems[12]= line.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting depesh Beginning VB 6 2 January 5th, 2005 04:35 PM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 01:47 PM
syntax errors Adam H-W Classic ASP Databases 4 July 2nd, 2004 07:44 AM
Chapter 8, Report Scripting, Code errors jmurdock BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 5 June 23rd, 2004 11:50 AM
Errors Errors DB Errors Ljhopkins VS.NET 2002/2003 0 July 15th, 2003 12:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.