I joined Stack overflow today, it's my first time here! I'm hoping I'll get my answer. My Questions is simply this: How do I stop a php Page from Refreshing When Navigating away to another php page using AJAX. (please note im not as good as I am in php compared to Ajax, so im a Ajax beginner)
For example this is my coding on my home page: on home.php:
(A: I don't want this php file to refresh no matter where I navigate too, unless I'm navigating to a page where doesn't include this file)
(Same as above 'A')
Coding inside those php files: see below: vis1.inc.php
<!doctype html> <html> <head> <div id="vinfo"> <meta name="description" content="blah"> <title>blah</title> <link type="text/css" rel="stylesheet" href="style/style.css"> <div id="wrapper"> <div id="fileWrapper" class="file_wrapper"> <div id="info"> </div> <label for="uploadedFile"> Drag & drop </label> <input type="file" id="uploadedFile"> </input> </div> </div> </div> </head> </html>
Code for: vis.inc.php
<!doctype html> <html> <footer> <link type="text/css" rel="stylesheet" href="style/style.css"> <div id="v_wrapper"> <canvas id='canvas' width="1950" height="800"><script type="text/javascript" src="js/hav.js"></script> </canvas> </div> <div id="c2"> <small>random info<a href="website name" target="_blank">website name - Owner</a></small> </div> </footer> </html>
That's all. Thank you. I hope I my question wasn't too vague. Thanks again.
Aucun commentaire:
Enregistrer un commentaire