• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to get query result using Ajax  RSS feed

Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i've the below code in my Jsp

and the javascript i used is as below. and it also has Ajax included in it.

the submit page is as below.

Here actually when i select first drop down value as Yes, the second dropdown gets activated. and when i select Query in the second dropdown option, there is a textarea shown up. here when i enter text and hit enter, i want to see the query(written in submit.jsp), but here when i enter the text in textarea and hit an enter it is just making a newline within the text area and if i replace the below part with alert(params) it is showing the parameters correctly

please let me know how do i see this query string when i hit enter, so that i can use it for my form submition.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!