• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

How to use POST method without actually having a form?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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

 
Marshal
Posts: 67496
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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).
 
Well THAT's new! Comfort me, reliable 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