Note that there are some explanatory texts on larger screens.

plurals
  1. POReturn to the previous page with inputs
    primarykey
    data
    text
    <p>Really unsure about the title question. Feel free to suggest. :)</p> <p>Hi guys! I created a very simple code, that would represent my web.</p> <p>Here is my home page:</p> <pre><code>&lt;html&gt; &lt;script type="text/javascript"&gt; function getPage(linkPage,variables,divName){ $.get(linkPage + "?" + variables,function(data){$(divName).html(data);}); } function show(){ //functionName("path","data","idName"); getPage("AjaxPages/hi.php","","#container"); } &lt;/script&gt; &lt;body&gt; &lt;div id="container"&gt; First Name&lt;input type="text" /&gt; &lt;input type="button" value="next" onClick="show();"/&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Basically, it ask for information, Name for example. When the button NEXT is click it will call a javascript function that will call a certain page or the NEXT PAGE that will load on the div with the Id Container.</p> <p><strong>NEXT PAGE</strong></p> <p>On the next page, it will then ask another question, like Last Name for example. But then, I want to go back to the previous page to make same changes.</p> <p>HERE is the code:</p> <pre><code>&lt;script type="text/javascript"&gt; function show(){ ajaxgetdata("index.php","","#container1"); } &lt;/script&gt; &lt;div id="container"&gt; Last Name&lt;input type="text" /&gt; what to make changes on the previous page?&lt;input type="button" value="back" onClick="show();"/&gt; &lt;/div&gt; </code></pre> <p>When button back is clicked, it will just call the previous page, but will not include the text that you input on the textbox.</p> <p>I know that it happens because it just call the page.. </p> <p>Is there a way? that when back button is clicked, it will reload the previous page, with all the contents/inputs.</p> <p>:) :( :'( :/ :|</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload