• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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: 67595
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