Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: JavaScripts in asp pages


Message #1 by "Hanako Matarai" <hanako_m@h...> on Mon, 22 Jul 2002 14:39:32 -0700
Yes. My code is like that:

<script language=javascript>
function funcname()
{
    ...
}
</script>
<table border="0">
  <tr>
    <td>
      <form id="FORM1" name="FORM1" action="asppage.asp" method="post" 
onsubmit="return funcname()">
      ...
<%asp code%>
      ...
        <input id="submit1" type="submit" value="SUBMIT" name="submit1">
      </form>
    </td>
  </tr>
</table>

but, it doesn't work...wired
any idea?
Thanks a lot.
Hanako
 

> This message is in MIME format. Since your mail reader does not 
understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C231CD.1FC62050
Content-Type: text/plain;
	charset="windows-1252"

where did you put the javascript code?
one way is to put them in
<script language=javascript>
function funcname()
{
    ...
}
</script>

-----Original Message-----
From: Hanako Matarai [mailto:hanako_m@h...]
Sent: Monday, July 22, 2002 2:40 PM
To: javascript
Subject: [javascript] JavaScripts in asp pages


Hi,
 
I have a problem making JavaScripts work in asp pages. I'm even not sure
about why JavaScripts sometimes do not work in asp pages because I am sure
there is no syntax error in the scripts.
 
Has anyone had similar problems? Does anybody know why?
 
I will very appreciate for any answers, comments or suggestions since I
don't know where to start fixing the problem.
 
Thanks a lot in advance.
Hanako  <mailto:lyris-confirm-1148195K@p...> 
--- Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20 --- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  


------_=_NextPart_001_01C231CD.1FC62050
Content-Type: text/html;
	charset="windows-1252"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">


<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=788260922-22072002><FONT face=Arial color=#0000ff 
size=2>where 
did you put the javascript code?</FONT></SPAN></DIV>
<DIV><SPAN class=788260922-22072002><FONT face=Arial color=#0000ff 
size=2>one 
way is to put them in</FONT></SPAN></DIV>
<DIV><SPAN class=788260922-22072002><FONT face=Arial color=#0000ff 
size=2>&lt;script language=javascript&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=788260922-22072002><FONT face=Arial color=#0000ff 
size=2>function funcname()</FONT></SPAN></DIV>
<DIV><SPAN class=788260922-22072002><FONT face=Arial color=#0000ff 
size=2>{</FONT></SPAN></DIV>
<DIV><SPAN class=788260922-22072002>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
color=#0000ff size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=788260922-22072002><FONT face=Arial color=#0000ff 
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=788260922-22072002><FONT face=Arial color=#0000ff 
size=2>&lt;/script&gt;</FONT></SPAN></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Hanako Matarai 
  [mailto:hanako_m@h...]<BR><B>Sent:</B> Monday, July 22, 2002 2:40 
  PM<BR><B>To:</B> javascript<BR><B>Subject:</B> [javascript] JavaScripts 
in asp 
  pages<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I have a problem making JavaScripts work in 
asp 
  pages. I'm even not sure about why JavaScripts sometimes do not work in 
asp 
  pages because I am sure there is no syntax error in the 
scripts.</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Has anyone had similar problems? Does 
anybody 
  know why?</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I will very appreciate for any answers, 
comments 
  or suggestions since I don't know where to start fixing the 
  problem.</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thanks a lot in advance.<BR>Hanako</FONT><A 
  href="mailto:lyris-confirm-1148195K@p..."></A></DIV>--- Improve 
your 
  web design skills with these new books from Glasshaus. Usable Web Menus 
  http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme 
r-20 
  Constructing Accessible Web Sites 
  http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme 
r-20 
  Practical JavaScript for the Usable Web 
  http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme 
r-20 
  --- Change your mail options at http://p2p.wrox.com/manager.asp or to 
  unsubscribe send a blank email to  
</BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C231CD.1FC62050--

  Return to Index