• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Display an image when the request is processing

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Situation:
I have a form in the JSP page. This form submits data to an Action which takes some time to process the reqest and get back with the result. (this takes 40 secs ). While this is going on I would like to have some 'processing request' image in the result division of the JSP page where results are expected.

Proposed Solution:
Im calling a javascript function on the onsubmit button. Now this function will display the image in the div tag where the results will be displayed. Once the results are out, the results will override the image.

Problem:
I'm calling the function and the form is submitted. But, when i try to have the image printed in the desired div tag, it doesnt work ....



here 'x' is the div id. Is my statement wrong or am i overlooking something ?
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no write() method on DOM elements. What made you think that there was? Explore innerHTML or DOM manipulation.
[ April 22, 2008: Message edited by: Bear Bibeault ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic