• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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: 67750
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.
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic