Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display New Page using ajax

 
Saurabh Naik
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on any action I want directly call any jsp or html..(through AJAX) or servlet.. and that response should be in the new page or same page fully .
so what should I write in responsehtml to display response as a new page
 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can directly call new Jsp or html in action,
why you want to call it from Ajax?
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Shail esh " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
 
Saurabh Naik
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes I know I can call directly in Action.

but suppose I want to display page on onclick or onchange event.. is this possible ? how ?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
call you Ajax function with the onclick or onchange event?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic