User Profile

Collapse

Profile Sidebar

Collapse
colyn7
colyn7
Last Activity: Aug 27 '08, 07:52 AM
Joined: Aug 25 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • colyn7
    replied to Submit onchange doesn't work
    i've researched on this and found out its not possible... and here's a given tip from another forum..

    Call your JSP that creates or executes the JavaScript script that puts a value into the JS Variable, something like this:

    "page.jsp"

    Code:
    <script> ...  
    var toJSPVar = doSomething(parameters);   document.location.href="pageAux.jsp?jspVAR=" + toJSPVar; ...
    </script>
    ...
    See more | Go to post

    Leave a comment:


  • colyn7
    replied to Submit onchange doesn't work
    i was able to retrieve the data from the 1st combo box.. thru Javascript, now my problem is how to pass that variable from Javascript to JSP...

    like..
    Code:
    function getFirstData(theValue) 		
    { 			
      var firstComboValue = theValue; 
      alert(firstComboValue); 		
    }
    how can i pass the variable firstComboValue to JSP codes?
    See more | Go to post

    Leave a comment:


  • colyn7
    replied to Submit onchange doesn't work
    i was able to solve that problem ablready.. the problem lies on the second combo box.. what could be something wrong in it.. i think it has something to do with the conditional clause...
    See more | Go to post

    Leave a comment:


  • colyn7
    replied to Submit onchange doesn't work
    thanks for the help.. the submit() seems to work but there seems to be an error still..

    here is my code:
    Code:
    		 <form name="regExaminee" method="post" action="regExaminee.jsp" >   			   
    <!--Start of Registration Form-->         
    <% 			String testCenter = request.getParameter("ddlTestCenter"); 			
    String driver = "com.mysql.jdbc.Driver";
    ...
    See more | Go to post

    Leave a comment:


  • colyn7
    replied to Submit onchange doesn't work
    hmm.. thank you very much for the suggestion..

    regarding the functions.. those are the functions i've tried calling onChange at select options.. but it didn't seem to work out..

    On our project, the second option is dependent on the first selection..

    that's why I have to submit the first selection for the second selection to appear...

    But I can't submit it so far.. the page should reload...
    See more | Go to post

    Leave a comment:


  • colyn7
    replied to Submit onchange doesn't work
    thanks a lot.. am still a newbie here.. Thanks......
    See more | Go to post

    Leave a comment:


  • colyn7
    replied to Submit onchange doesn't work
    thanks but it still didn't work..

    Do I still need a helper of some class.. cause i kinda receive an error that there is a missing file in cgi-bin...

    what could it be? am not using any tool in web app cause my pc is rather slow.. 512mb only, am using notepad++.. it would have been much easier if i'm using eclipse or netbeans cause it has some helper...

    please.. anyone.. I was able to see the page.. but...
    See more | Go to post

    Leave a comment:


  • colyn7
    started a topic Submit onchange doesn't work

    Submit onchange doesn't work

    I really can't see what's wrong in my code... the submit() onChange doesn't work..

    I've tried..

    Code:
    <select name="ddlTestCenter" id="ddlTestCenter" style="width:180px" onChange="this.form.submit();">
    it doesn't work...

    Code:
    <input type="hidden" name="hiddenopt" value="secret"> <select name="list" onC
    ...
    See more | Go to post
    Last edited by acoder; Aug 25 '08, 09:22 AM. Reason: Added [code] tags
No activity results to display
Show More
Working...