aspose file tools*
The moose likes Servlets and the fly likes I need help!  trying to post to a page w/o opening the page.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "I need help!  trying to post to a page w/o opening the page.." Watch "I need help!  trying to post to a page w/o opening the page.." New topic
Author

I need help! trying to post to a page w/o opening the page..

darren schild
Ranch Hand

Joined: May 31, 2002
Posts: 32
Howdy all!
I am trying to post to a web page but I don't want the page to open, either in the current window or a new one. Is this possibly???
What I am trying to do is:
1 have a user enter contact info
2 upon hitting submit, post the info to a url
3 not have the url open (in a page of the window)
4 automatically submit on the "posted" url
<FORM NAME="submitToCell" METHOD=POST ACTION="HREF=http://66.77.1.123/index.php?number=3193211010&message=testing&Send=submit">
Am I way off on this one?!?
Any help for this newbie would be much appreciated!!!
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
This question would fit better on the HTML/JavaScript board. Please post it there. Also, you are more likely to get an answer since the people there deal with these kinds of issues.
Layne


Java API Documentation
The Java Tutorial
darren schild
Ranch Hand

Joined: May 31, 2002
Posts: 32
thanks layne, I'll do that...
darren schild
Ranch Hand

Joined: May 31, 2002
Posts: 32
Layne (or anyone) would there be another way to do it?!? Maybe using java? a servlet perhaps?
I'll take any suggestions on alternative methods...
thanks
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
The HTML and JavaScript version of this conversation is here.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moved from The Beginner's Forum.
Dave Comeau
Greenhorn

Joined: Jun 14, 2002
Posts: 27
POST your form to a page that outputs this header to the browser
HTTP/1.0 204 No Content
I believe the user will remain on the page that sent the POST vars.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I need help! trying to post to a page w/o opening the page..
 
Similar Threads
I need help! trying to post to a page w/o opening the page..
How to persist data of child window form
Javascript help : Please
how will we move from one page to another within the same window in Swing?
Child window accessing parent window error