473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

JavaScript Error

17
The following code returns an error at the javascript line:

Expand|Select|Wrap|Line Numbers
  1.  
  2. </TABLE>
  3. <P><B><FONT size="+1" color="red"></FONT></B></P>
  4. <P></P><FORM target="_blank" action="/DrawingInquiry/ViewDrawing" name="myForm1" method="get"><INPUT type="submit" value="View Drawing"></FORM>
  5. <FORM action="/DrawingInquiry/ViewDrawing2"><INPUT type="submit" value="View Drawing 2"></FORM>
  6. <FORM action="/DrawingInquiry/GetMainPageServlet"><INPUT type="submit" name="anotherDrawing" value="Look Up Another Drawing"></FORM>
  7. <FORM action="/DrawingInquiry/DrawingInquiryBaseServlet" name="testthis"><INPUT
  8.     type="submit" name="anotherDrawing0" value="Look Up Another Drawing"><INPUT
  9.     type="text" name="dwgnobase" size="25">
  10.     <jsp:useBean id="dwgnoget" scope="session" type="com.ibm.drawinginquiry.rational.Drawing"></jsp:useBean><jsp:getProperty
  11.     name="dwgnoget" property="dwgName" /></FORM>
  12.  
  13.     <script type="text/javascript"><!--
  14.  
  15.     document.testthis.dwgnobase.value = document.testthis.dwgnoget.dwgName;
  16.     //--></script>
  17.  
  18. </BODY>
  19.  
  20.  
How can I qualify the dynamic value portion?

Message was edited by:
SLDyke
Mar 23 '07 #1
4 1001
dmjpro
2,476 2GB
i never did jsp:usebean or jsp:property like these things ......

i don't know if these tags r used then are they added to JS-DOM..??????

plz varify it......best of luck
Mar 24 '07 #2
acoder
16,027 Expert Mod 8TB
I'm not too familiar with JSP. How does this turn out in HTML?
Mar 24 '07 #3
ssh
6
The following code returns an error at the javascript line:

Expand|Select|Wrap|Line Numbers
  1.  
  2. </TABLE>
  3. <P><B><FONT size="+1" color="red"></FONT></B></P>
  4. <P></P><FORM target="_blank" action="/DrawingInquiry/ViewDrawing" name="myForm1" method="get"><INPUT type="submit" value="View Drawing"></FORM>
  5. <FORM action="/DrawingInquiry/ViewDrawing2"><INPUT type="submit" value="View Drawing 2"></FORM>
  6. <FORM action="/DrawingInquiry/GetMainPageServlet"><INPUT type="submit" name="anotherDrawing" value="Look Up Another Drawing"></FORM>
  7. <FORM action="/DrawingInquiry/DrawingInquiryBaseServlet" name="testthis"><INPUT
  8.     type="submit" name="anotherDrawing0" value="Look Up Another Drawing"><INPUT
  9.     type="text" name="dwgnobase" size="25">
  10.     <jsp:useBean id="dwgnoget" scope="session" type="com.ibm.drawinginquiry.rational.Drawing"></jsp:useBean><jsp:getProperty
  11.     name="dwgnoget" property="dwgName" /></FORM>
  12.  
  13.     <script type="text/javascript"><!--
  14.  
  15.     document.testthis.dwgnobase.value = document.testthis.dwgnoget.dwgName;
  16.     //--></script>
  17.  
  18. </BODY>
  19.  
  20.  
How can I qualify the dynamic value portion?

Message was edited by:
SLDyke
hi!

Just check the code,
<script type="text/javascript"><!--

document.testthis.dwgnobase.value = document.testthis.dwgnoget.dwgName;
//--></script>

remove it (since it is commented already), or use <script type="text/javascript"></script>


Regards,
ssh
Mar 24 '07 #4
acoder
16,027 Expert Mod 8TB
hi!

Just check the code,
<script type="text/javascript"><!--

document.testthis.dwgnobase.value = document.testthis.dwgnoget.dwgName;
//--></script>

remove it (since it is commented already), or use <script type="text/javascript"></script>


Regards,
ssh
Doesn't that render it useless? I think that line is needed although the code should be re-written as:
[HTML]<script type="text/javascript">
<!--
document.testthis.dwgnobase.value = document.testthis.dwgnoget.dwgName;
//-->
</script>[/HTML] Those comment lines are only there to provide support for older browsers that are no longer (or hardly) used.
Mar 26 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.