i am stuck up

Reply

Join Date: Apr 2008
Posts: 3
Reputation: sandeep_2482 is an unknown quantity at this point 
Solved Threads: 0
sandeep_2482 sandeep_2482 is offline Offline
Newbie Poster

i am stuck up

 
0
  #1
Apr 4th, 2008
I tried this if i select abc i should get rrr or if i click wer i should get sky in two list boxes
please help me out

  1. <%@ page import="java.sql.*" %>
  2. <html>
  3. <script >
  4.  
  5. function fun()
  6. {
  7. f1.Server.length=9;
  8.  
  9. f1.Server[0].value='abc';
  10. f1.Server[0].innerText='abc';
  11.  
  12. f1.Server[1].value='wer';
  13. f1.Server[1].innerText='wer';
  14.  
  15.  
  16. }
  17.  
  18. function myCodebaseList()
  19. {
  20. if(f1.Server.value=="abc")
  21. {
  22. f1.Codebase.disabled=false;
  23. f1.Codebase.length=3;
  24.  
  25. f1.Codebase[0].value="rrr";
  26. f1.Codebase[0].innerText="rrr";
  27. f1.Codebase[0].selected=true;
  28.  
  29.  
  30. }
  31. else
  32. if(f1.Server.value=="wer")
  33. {
  34. f1.Codebase.length=4;
  35. f1.Codebase.disabled=false;
  36.  
  37. f1.Codebase[0].value='[Select One]';
  38. f1.Codebase[0].innerText='[Select One]';
  39. f1.Codebase[0].selected=true;
  40.  
  41. f1.Codebase[1].value='Sky';
  42. f1.Codebase[1].innerText='Sky';
  43.  
  44.  
  45. }
  46.  
  47.  
  48. </script>
  49.  
  50. <body bgcolor=#99CCFF onLoad="fun()">
  51. <form>
  52.  
  53. Server
  54. <select name=Server id=Server onFocus='myCodebaseList()' style="WIDTH: 140px">
  55. <option value="-" selected>-</option>
  56.  
  57. </select>
  58.  
  59. <br>
  60. Codebase
  61.  
  62. <select name=Codebase id=CodebaseType disabled style="WIDTH: 278px">
  63. <option value="-" selected></option>
  64. </select>
  65. <br>
  66.  
  67. <tr>
  68. <td>
  69. Build Date: <input type="text" name="build_date" /><br>
  70. Upload : <input type="text" name="upload" /><br>
  71. <input type="submit" value="fupload"/>
  72. <input type="hidden" name="mode" value="save" />
  73.  
  74. </td>
  75. </tr>
  76. </table>
  77. </form>
  78. </body>
  79. </html>
Last edited by peter_budo; Apr 4th, 2008 at 5:12 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,265
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 493
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: i am stuck up

 
0
  #2
Apr 4th, 2008
What relevance has this to java besides the first line of the code?
You are using some scripting language that you did not even declare in script tag, which I presume is JavaScript. JavaScript beside name similarity has nothing to do with Java...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: i am stuck up

 
0
  #3
Apr 4th, 2008
Ha! I'm sorry, but do you know what the "common" meaning of the phrase "stuck up" means?

It means someone who acts and/or thinks as though they are better than everyone else, i.e. arrogant in the most irratating and annoying way.

Just thought you might like to know, since you titled your thread "I am stuck up".
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 7
Reputation: panther786 is an unknown quantity at this point 
Solved Threads: 0
panther786 panther786 is offline Offline
Newbie Poster

Re: i am stuck up

 
0
  #4
Apr 10th, 2008
You are using some scripting language. debugging is more hard than writing .
so write again <URL snipped>
Last edited by peter_budo; Apr 11th, 2008 at 10:12 am. Reason: Keep It Spam-Free - Do not spam, advertise, plug your website, or engage in any other type of self promotion.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JSP Forum


Views: 1082 | Replies: 3
Thread Tools Search this Thread



Tag cloud for JSP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC