Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Javascript JSP Question.
- From: javascript@xxxxxxxxxx (Filipiak, Bob (Contractor))
- Subject: [Javascript] Javascript JSP Question.
- Date: Wed, 30 May 2001 15:59:41 -0400
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_01C0E943.10889100 Content-Type: text/plain; charset="iso-8859-1" Look at the page source in your browser and see what is actually sent to the browser. Bob Filipiak (Contractor) MCP -----Original Message----- From: Jan_Brusevold@xxxxxxxxx [mailto:Jan_Brusevold@xxxxxxxxx] Sent: Wednesday, May 30, 2001 3:35 PM To: javascript@xxxxxxxxxx Subject: [Javascript] Javascript JSP Question. For some reason one of my pages refuses to navigate to the next if done a certain way in netscape. Below is the code. I've placed alert boxes before and after the frm.action tag, but for some reason it doesn't want to perform it. The function is called through an href tag wrapped around a graphic. This is a JSP page hence the embedded Java. The action string is simply the name of the next page that the application should go to. This only happens in Netscape. Does anyone have any insight into what the problem might be? Thanks- jan function SubmitForm(ID){ var frm= document.ListForm; actionString = "<%= actionString %>?id=" + <%=ID %>; frm.action= actionString; frm.submit(); } Here's the code that calls the function: <td class="tldOdd" align="center"> <a href="javascript:SubmitForm('<%=locations.getLocationID()%>')"> <IMG src="<%= imagePath %>details.gif" ALT="Modify" border="0"> </a> </td> _______________________________________________ Javascript mailing list Javascript@xxxxxxxxxx http://www.LaTech.edu/mailman/listinfo/javascript ------_=_NextPart_001_01C0E943.10889100 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2652.35"> <TITLE>RE: [Javascript] Javascript JSP Question.</TITLE> </HEAD> <BODY> <P><FONT SIZE=3D2>Look at the page source in your browser and see what = is actually sent to the browser.</FONT> </P> <P><FONT SIZE=3D2>Bob Filipiak (Contractor)</FONT> <BR><FONT SIZE=3D2>MCP </FONT> </P> <P><FONT SIZE=3D2>-----Original Message-----</FONT> <BR><FONT SIZE=3D2>From: Jan_Brusevold@xxxxxxxxx [<A = HREF=3D"mailto:Jan_Brusevold@xxxxxxxxx">mailto:Jan_Brusevold@xxxxxxxxx</= A>]</FONT> <BR><FONT SIZE=3D2>Sent: Wednesday, May 30, 2001 3:35 PM</FONT> <BR><FONT SIZE=3D2>To: javascript@xxxxxxxxxx</FONT> <BR><FONT SIZE=3D2>Subject: [Javascript] Javascript JSP = Question.</FONT> </P> <BR> <P><FONT SIZE=3D2>For some reason one of my pages refuses to navigate = to the next if done a</FONT> <BR><FONT SIZE=3D2>certain way in netscape. Below is the = code. I've placed alert boxes</FONT> <BR><FONT SIZE=3D2>before and after the frm.action tag, but for some = reason it doesn't want to</FONT> <BR><FONT SIZE=3D2>perform it. The function is called = through an href tag wrapped around a</FONT> <BR><FONT SIZE=3D2>graphic. This is a JSP page hence the embedded = Java. The action string is</FONT> <BR><FONT SIZE=3D2>simply the name of the next page that the = application should go to. This</FONT> <BR><FONT SIZE=3D2>only happens in Netscape.</FONT> </P> <P><FONT SIZE=3D2>Does anyone have any insight into what the problem = might be?</FONT> </P> <P><FONT SIZE=3D2>Thanks- jan</FONT> </P> <BR> <P><FONT SIZE=3D2>function SubmitForm(ID){</FONT> <BR><FONT SIZE=3D2> var frm=3D = document.ListForm;</FONT> <BR><FONT SIZE=3D2> actionString =3D = "<%=3D actionString %>?id=3D" + <%=3DID = %>;</FONT> <BR><FONT SIZE=3D2> frm.action=3D = actionString;</FONT> <BR><FONT SIZE=3D2> frm.submit();</FONT> <BR><FONT SIZE=3D2>}</FONT> </P> <BR> <P><FONT SIZE=3D2>Here's the code that calls the function:</FONT> </P> <BR> <P><FONT SIZE=3D2><td class=3D"tldOdd" = align=3D"center"></FONT> <BR><FONT SIZE=3D2> <a = href=3D"javascript:SubmitForm('<%=3Dlocations.getLocationID()%&g= t;')"></FONT> <BR><FONT = SIZE=3D2> <IMG = src=3D"<%=3D imagePath %>details.gif" = ALT=3D"Modify" border=3D"0"></FONT> <BR><FONT SIZE=3D2> </a></FONT> <BR><FONT SIZE=3D2></td></FONT> </P> <BR> <P><FONT = SIZE=3D2>_______________________________________________</FONT> <BR><FONT SIZE=3D2>Javascript mailing list</FONT> <BR><FONT SIZE=3D2>Javascript@xxxxxxxxxx</FONT> <BR><FONT SIZE=3D2><A = HREF=3D"http://www.LaTech.edu/mailman/listinfo/javascript" = TARGET=3D"_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A><= /FONT> </P> </BODY> </HTML> ------_=_NextPart_001_01C0E943.10889100--
- Prev by Date: [Javascript] Javascript JSP Question.
- Next by Date: [Javascript] Javascript JSP Question.
- Previous by thread: [Javascript] Javascript JSP Question.
- Next by thread: [Javascript] Javascript JSP Question.
- Index(es):