|
| |
|
|
jobboard
Posts: 3 Joined: 1/10/2008 Status: offline
|
Displaying HTTP POST response - 1/10/2008 8:03:15
Hi there, I have a website into which users key vacancies. It's a recruitment website. And I have another page where they can, at the click of a button, upload that job to another job board. It uses a form, with lots of hidden parameters, such as job title, job location, job desription etc etc. And it works fine. And when the user clicks the button it HTTP posts to the server of the destination job board. That server checks all the parameters etc and then either returns either 'success' or 'failure'. Again, that's fine, and works, but here's the thing. It looks rubbish, as it effectively 'refreshes' the page, and displays a completely white page with just the word 'success' or 'failure' at the top left hand side of the page. Is there a way of NOT making the page refresh, but still capture the response from the server, and maybe display it on the original page (but in text below my 'submit' button). I've seen it done on so many sites but don't know how it's done! Thanks all. Stuart
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: Displaying HTTP POST response - 1/10/2008 8:41:30
quote:
and displays a completely white page with just the word 'success' or 'failure' at the top left hand side of the page. Hi and Welcome to OutFront. Is that page generated on your server or the job board server? If it's on yours, you should be able to code a redirect or something. If it's on theirs, you may need to check wit those sites to see if they can post something back to your site. Either way, you need some kind of indicator flag to show that the page has returned. Once you have that indicator (POST value, etc.) You should be able to do something with it. Is that page yours or theirs? quote:
as it effectively 'refreshes' the page, It kinda boils down to that; does it actually refresh the page, just back up to the page, or post some value to the page? Hope that helps.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
jobboard
Posts: 3 Joined: 1/10/2008 Status: offline
|
RE: Displaying HTTP POST response - 1/10/2008 8:49:28
Hi, and thanks for your reply. The response is definitely on their side. I can tell because it becomes their URL in the browser. So what I need is some kind of component that does the post without refreshing the current page - which is displaying a page from my site - and then understands what it sees in the other servers page (ie success or failure) and then updates on either the current page or a new page generated by my site? Anyone have any ideas how that might work? thanks again. Stuart
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: Displaying HTTP POST response - 1/10/2008 9:38:40
Have you tried anything like this: <form action="theRemotePage.asp" method="post" target="_blank"> That would post in a new window. As to getting the response without anything done on the remote page, the only way I know of is 'screen scraping' or using XML. Either way is not trivial IMO. I only know how to screen scrape using ASP.NET and XML requires support at the remote site. How many different boards do you post to? Could they possibly POST back to you?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
jobboard
Posts: 3 Joined: 1/10/2008 Status: offline
|
RE: Displaying HTTP POST response - 1/10/2008 9:55:59
I wonder if AJAX might be the answer.
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: Displaying HTTP POST response - 1/10/2008 10:04:24
quote:
wonder if AJAX might be the answer. That is really just XML and JavaScript together. Yes, that would be an answer if the remote host supports the XML posting/parsing. The easiest way IMO would be to get the remotes to POST back to your server.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|