• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

howto return a value to a textField (on the jsp page)?-action invoked from javascript

 
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My JSP page has the following properties:




when the user clicks a letter on the textField - he receives 'suggestions', those suggestions are in a html table with links, when he click the desired suggestion - he invokes an action (ajaxLookup)

I would like this action to return the desired suggestion into the textField. I've tried numerous variations on the action but nothing worked out for me.

the code below - returns an XML page?!?!?!



thanks for any pointers!
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
are you shure you are updating the text field on the ajax call ???....because the only thing you have to do is to set the fare propertie of the action.

_theForm.setFare('suggestion');

and then if you are updating the textfield the propertie fare should have the new value and show it on the text.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic