[thelist] Help Finding & Fixing VBScript Error... Continued
Ken Schaefer
Ken at adOpenStatic.com
Thu Mar 10 18:21:55 CST 2005
For your server-side script blocks use:
<script language="vbscript" runat="server">
</script>
For your client-side script blocks use:
<script type="text/javascript">
</script>
Alternatively (and this is my recommendation), use <% %> delimiters for your
server-side script, eg:
<%
' Server Side Code goes here
%>
<script type="text/javascript">
// client-side script goes here
</script>
Cheers
Ken
: -----Original Message-----
: From: thelist-bounces at lists.evolt.org [mailto:thelist-
: bounces at lists.evolt.org] On Behalf Of Administrative HQ
: Sent: Friday, 11 March 2005 7:17 AM
: To: thelist at lists.evolt.org
: Subject: RE: [thelist] Help Finding & Fixing VBScript Error... Continued
:
: Hello.
:
: Thanks for answering.
:
: Barry wrote:
: >159 function window_onload()
: >160
: document.getElementById("UsrId").value=document.getElementById("cust").val
: ue
: > > 161
: > > 162
: > //alert(document.getElementById("UsrId").value);
: > > 163 }
: > > 164
: > > 165 function snd_onclick() {
: > > 166 document.getElementById("snd").disabled=true;
: > > 167 var dosub=true;
: > > 168
: > > 169 if (document.getElementById...Etc., Etc.
: > > ********************
: > Could it be that line 163 has } and there is no
: > corresponding { before it,
: > ie on line 159 ? So line 159 should be:
: > Function window_onload() {
:
: The same error returns with or without the {.
:
: >Peter wrote:
:
: > Offhand, it looks like you're trying to run a
: >Javascript function
: >in a VBScript environment. Are you missing a %> tag?
:
: I think that mught be the problem, but don't know how
: to fix it. I checked the original page and it DOES say
: javascript. So I tried putting:
:
: </SCRIPT>
:
: and then
:
: </SCRIPT>
: <script language="JavaScript">
:
: and then
:
:
: </SCRIPT>
: <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
:
: just before line 159 (where the trouble seems to
: start). But both return the same thing:
: *******************
: Microsoft VBScript compilation error '800a0400'
:
: Expected statement
:
: /pay_paypal.asp, line 155
:
: </SCRIPT>
: ^
: ********************
:
: If the problem really is switching script, isn't one
: of the above supposed to fix it?
:
: If, as Peter suggests, an %> tag would help, does
: anybody know where it should go?
:
: Thanks very much.
: David
More information about the thelist
mailing list