• 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

Display the message in same page using submit button

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the form I have table, In first row textfield is there and
in second row submit button is there.

After clciking submit button,if text field is empty the resultant message should be displayed in third row of same page...

I did this scenario by making style of the third row beginning hidden and then visible after clciking.


But problem is as and when I click the button the third row is appears and immmediatley disappears along with the message. I mean refrshng the page again.


How can I resolve this issue without using normal button...
Is there any way to write something in the form ?

If anybody could favour that will be appreciated.

Thanks in advance.

Thanks,
Yeshwant
 
Sheriff
Posts: 67746
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
If you don't want the page refreshed then you should look into Ajax to perform the submission behind the scenes without the need for a refresh. If the page refresh is necessary, then your server-side templating engine (JSP? php?) needs to handle adding the additional info.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic