• 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

Form Value

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I want to use form without using any server side language.for example i want that if i submit form the values of text box and radio button should submit and it display all the values on next page only by using java script.actually i want that how to retrive value from url.for example www.url.com?var=10; and the value of 10 should display.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Raja,
Adding a target="_blank" attribute to the Form element should allow u to open the submitted results in a child window.
 
A GPuvathingal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am sorry ...my reply is meant for the topic-"parent-child windows stuff"
 
Ranch Hand
Posts: 449
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Raja,
The form element values can't be accessed onto another page without the intervention of Server. Reason being whenever you submit form all values go as a part of request object to the server. And to get them back you have to get them from some server object. Even if you pass these variables at the URL level, you need the server object to get access to the form elements. I hope you got my point by now.
So if you are using some kind of server page like JSP or Servlet or ASP, you have to get the values back at runtime from the response Object
Vijay
 
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
Not necessarily.
If your form is submitted to another html page, and the method of the form is GET, the form parameters will be placed on the URL as the query string.
There is a way to get the query string using javascript (though the exact details elude me at the moment). Then, you need to write a slew of javascript to parse the query string into its name/value pairs. It's a major pain in the butt, but it can be done.
hth,
bear
 
reply
    Bookmark Topic Watch Topic
  • New Topic