• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

How to use POST method without actually having a form?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,

I need to pass certain params to a 3rd party page for processing, which i'm currently doing using GET. However, i'd like to change the method to POST. But, i'm facing a challenge in doing it as my current jsp doesn't have a form, n i dont want to mess around with alignment issues in it. So please help me out with a solution regarding how, i'll be able to POST data without a form tag. I believe its possible to handle this in javascript. Thanks in advance!

Further, I tried using form tag (and struts form as well),n later tried out jQuery.post() but the effortless was fruitless

 
Sheriff
Posts: 67618
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

Sailesh Ganeshan wrote:later tried out jQuery.post() but the effortless was fruitless


Should be a piece of cake. What was the problem?

My suggestions would be to use an invisible form (alignment issues? pfff!) or Ajax (using jQuery).
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic