Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Scenario:

I have a report.html file with some Html and JavaScript code in it. For all the further operation the user should never navigate from this page, the URL should not change to avoid confusion to the user. However when user clicks a button on report.html, the JavaScript function in this report.html will parse the report name and will send to a Process.php file and that Process.php file should send a piece of information back saying done or error.

According to my knowledge, I know this can be done by using, Ajax, XMLHTTPREQUEST and JQuery etc... these are all asynchronous ways. To send a request and wait for a response but still staying on the same page type of operations.

My questions are:

1.)Is there any synchronous way of doing this without using XMLHTTPREQUEST or ActiveX or JQuery etc but still not navigating from report.html(i can do self post to the same php page or reload the same page) and still receiving a piece of information back from Process.php?

2.) I know core functions of PHP, GET and POST, does a page should always reload to the same page or navigate to process.php if i use these methods?

3.) Is there any synchronous method i am missing in php like GET and POST that sends a request to a new page process.php and waits on the same page without navigating away and continue the process after receiving response from process.php?
Posted
Updated 20-Oct-11 11:33am
v3

1 solution


  1. Yes
  2. Yes
  3. Yes


—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900