473,748 Members | 5,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript error- please help!

Hi,
I'm hoping that the wealth of knowledge here can stop me from spinning
my wheels on this syntax error for hours. :)

Below is the code, and the error I am recieving....

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/tag-lib/struts-html-el.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tag-lib/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tag-lib/struts-logic-el.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tag-lib/c.tld" prefix="c" %>
<html>
<head>
<%@ page
language="java"
contentType="te xt/html; charset=ISO-8859-1"
pageEncoding="I SO-8859-1"
%>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="GENERATOR " content="IBM WebSphere Studio">
<meta http-equiv="Content-Style-Type" content="text/css">
<link href="theme/Master.css" rel="stylesheet " type="text/css">

<!-- ******* from here -->
<link rel="stylesheet " type="text/css" media="print"
href="<html:rew rite page='/theme/print.css' />" />
<link rel="stylesheet " type="text/css" media="screen"
href="<html:rew rite page='/theme/base1.css'/>" />
<link rel="stylesheet " type="text/css" media="screen"
href="<html:rew rite page='/theme/tab_base.css'/>" />
<link rel="stylesheet " type="text/css" media="screen"
href="<html:rew rite page='/theme/green.css'/>" />
<link rel="stylesheet " type="text/css" media="screen"
href="<html:rew rite page='/theme/CAW.css'/>" />
<!-- ****** to here -->

<title>VSAC Forms</title>

<!-- ****** from here -->

<script type="text/javascript" language="Javas cript" src="<html:rewr ite
page='/javascript/openNewWindow.j s'/>"></script>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script type="text/javascript">
_editor_url = './';
_editor_lang = 'en';
</script>
<script type="text/javascript" src="htmlarea.j s"></script>
<script type="text/javascript" src="dialog.js" ></script>
<script type="text/javascript" src="lang/en.js"></script>
<!-- ****** to here -->

</head>

<!-- ****** from here -->
<body bgcolor="#FFFFF F" topmargin="0" leftmargin="0" marginwidth="0"
marginheight="0 ">
<body onunload="javas cript:history.g o(1)">
<body onload="HTMLAre a.replace('txt1 ')">
<table width="700" border="1" bordercolor="#C CCCCC" cellpadding="0"
cellspacing="0" >
<tr><td width="700">

<div id="courtnav" >&nbsp;&nbsp;<N OBR><a
href='http://services.vsac.o rg/ilwwcm/connect/VSAC/General/About+VSAC/About+Us/Who+we+are/'><bean:messag e
key="app.aboutU s" /></a>&nbsp;&nbsp;· &nbsp;&nbsp; <a
href='http://services.vsac.o rg/ilwwcm/connect/VSAC/General/About+VSAC/Site+Help/Site+Help/'><bean:messag e
key="app.siteHe lp" /></a>&nbsp;&nbsp;· &nbsp;&nbsp;
<a
href='http://services.vsac.o rg/ilwwcm/connect/VSAC/General/About+VSAC/Contact+Us/'><bean:messag e
key="app.contac tUs" /></a>&nbsp; </NOBR>
</div>
<div id="colorfield " >
<div id="logo"><IMG SRC="<html:rewr ite
page='/images/logo_green.gif'/>" ALT="" WIDTH="101" HEIGHT="53"
BORDER="0">
</div>
<div id="pagehead">
<FONT color="#ffffff" ><b><bean:messa ge key="app.logo1" /><br>
&nbsp;&nbsp;&nb sp;<bean:messag e key="app.logo1a " /></b></font><br>
<bean:message key="app.logo1b " />
<!-- <h4><bean:messa ge key="app.logo2" /></h4 -->

</div>

</div>

<div id="introfield" >
<div id="textcontain er" >
<bean:message key="app.logo2" />
<div align="center">
<c:if test='${request Scope["org.vsac.sso.i dentity.u"]}'>Welcome: <c:out
value='${reques tScope["org.vsac.sso.i dentity.u"]}'/></c:if>

Welcome:
<c:out value="${sessio nScope.name}" />
</div>

</div>
</div>

<div id="maincontent " align="center">
<div id="textcontain er" >

<!-- ****** to here -->
<form action="mytest. php" method="post">
<textarea name="txt1" id="txt1" style="width:10 0%;height:300px ">
<%response.writ e(request("txt1 "))%(this is where the error is)
</textarea>
<input type="submit" value="Post">
</form>
</td></tr>
</table>
<html:errors />
<html:form action="formAut h.do" >
<p>&nbsp;</p>

<p><label>Selec t ID: </label&nbsp;
<html:select property="perso nId" >
<c:forEach var="formData" items="${idmTes tIdentifiers}">
<html:option value="${formDa ta}">
<c:out value="${formDa ta}"/>
</html:option>
</c:forEach>
</html:select>

&nbsp;&nbsp;&nb sp;<b>Or</b>&nbsp;&nbsp;& nbsp;<label>Ent er ID: </label>
<html:text property="perso nId1" /></p>

<p><html:subm it value="Submit"
onclick="docume nt.body.style.c ursor='wait'" /></p>

</html:form>
<!-- ****** from here -->
<div>
</div>
<div>
</div>
<p>&nbsp;</P>
<jsp:include page="/bottomMenuBar.j sp" flush="true"/>

<!-- ****** to here -->

</body>
</html>
Error:
Syntax error on token "out", "=," "*=,""/=,""%=," ........ expected.

What am I missing???? I've been looking at this all morning- and am
sure I am overlooking something here...Please help! Thanks!

J

Sep 27 '06 #1
1 1987
JumpingOffPlace said the following on 9/27/2006 10:54 AM:
Hi,
I'm hoping that the wealth of knowledge here can stop me from spinning
my wheels on this syntax error for hours. :)

Below is the code, and the error I am recieving....
Try posting a URL to the HTML code the browser receives instead of the
server side code that generates it. Then, validate that code with the
W3C validator. Then test again.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2535
by: Andy Fish | last post by:
Hi, I want to use an anchor tag to invoke some javascript and I've read that it's bad form to use <a href="javascript:foo()"> I've read endless usenet posts and hint sites on the net, they all suggest different things and I can't get any kind of consistency, and I can't find any solution that works properly for IE, opera and mozilla. many of the recommended solutions go something like this:
6
2281
by: Alex Rast | last post by:
First of all, this is not a programming question. I'm a user, not programming in JavaScript. I'm not, however, a novice user or even a power user - I certainly know programming intimately as well as computer hardware, configuration, etc... down to the lowest level (e.g. BIOS, assembly language, etc). Anyway, I've obviously got something wrong with JavaScript configuration, files, etc. in Windows 2000, Service Pack 3, because on sites...
12
9643
by: Jeff S | last post by:
In a VB.NET code behind module, I build a string for a link that points to a JavaScript function. The two lines of code below show what is relevant. PopupLink = "javascript:PopUpWindow(" & Chr(34) & PopUpWindowTitle & Chr(34) & ", " & Chr(34) & CurrentEventDetails & ")" strTemp += "<BR><A HREF='#' onClick='" & PopupLink & "'>" & EventName & "</A><BR>" The problem I have is that when the string variables or contain a string with an...
6
5581
by: ged | last post by:
Hi, i am a oo (c#) programmer, and have not used javascript for a while and i cant work out how javascript manages its references. Object References work for simple stuff, but once i have an object collection and stanrd using it it starts to fall apart. Clearly there is something about javascript's usage of passing "By ref" that i am not getting. i have had a look on the web and found some examples, but i cant see why my code does not...
14
25635
by: Rich | last post by:
I am converting my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 (.NET v2.0.50727). The entire solution uses serveral technologies - Windows Server 2003 (AD, SQL Server 2000, IIS, ASP.NET, ASP.NET Mobile) Windows Mobile 2003 (Pocket IE) I have completed a portion of the conversion (ASP.NET Mobile pages for PIE, and some of the ASP.NET-bases web services), and while testing I have a runtime error that did not exist in the...
13
8310
by: John Smith | last post by:
I am using IE 6.0 from http://www.javaworld.com/javaworld/jw-07-1996/jw-07-javascript-p2.html I gather that "If you need to test a number of command lines, you can reduce the keystrokes by typing javascript: (remember the colon) in the Location box. Navigator displays a "JavaScript typein" frame at the bottom of the window. Type the command line you want to try, and press Enter. "
11
2372
by: TJM | last post by:
Hi, A Javascript error is generated when the user types a few character in an INPUT TYPE=FILE and hits a submit button. The form does not post. Is there a solution to this problem? Thanks TJM
8
2854
by: Taras_96 | last post by:
Hi everyone, We' ve come to the conclusion that we wish the user to be directed to an error page if javascript is disabled <enter comment about how a webpage shouldn't rely on javascript here :) >. I've read quite a few posts on how to do this, but none meet my need (the two main suggestions was set a jsEnabled variable in a <scriptsection of the HTML and read it in PHP, and the other suggestion was by default loading the non js page,...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.